[ ] You may also try reproduce the issue using clean environment and minimal configurations with
the command emacs -Q.
Bug description
8276548 defines string-pixel-width if not defined (<29) returning a value of type float.
Other packages (dashboard for example) optionally uses this new function expecting an int.
I don't know whether this should be a bug report for dashboard but it does seem wrong to shadow an upcoming builtin?
From dashboard-widgets.el:
(defun dashboard-string-pixel-width (str)
"Return the width of STR in pixels."
(if (fboundp #'string-pixel-width)
(string-pixel-width str)
(require 'shr)
(shr-string-pixel-width str)))
Thank you for the bug report
doom-modeline
related packages.emacs -Q
.Bug description
8276548 defines
string-pixel-width
if not defined (<29) returning a value of typefloat
. Other packages (dashboard for example) optionally uses this new function expecting an int.I don't know whether this should be a bug report for dashboard but it does seem wrong to shadow an upcoming builtin?
From
dashboard-widgets.el
:Steps to reproduce
Expected behavior
Both packages deal with optionally defined
string-pixel-width
.OS
Linux
Emacs Version
28
Emacs Configurations
No response
Error callstack
Anything else
No response