aboutsummaryrefslogtreecommitdiffstats
path: root/java/org/gnu
diff options
context:
space:
mode:
authorDavid Ponce2024-08-22 16:56:11 +0200
committerEli Zaretskii2024-08-31 11:23:23 +0300
commitdffdbc1f1fd6569c518e2e3b5e771a54e9e9483f (patch)
tree012286f6534bc881ddc573b9e3caff3025d1656b /java/org/gnu
parentb930a698f2ba4e8b5878a4b604098e1201796b7f (diff)
downloademacs-dffdbc1f1fd6569c518e2e3b5e771a54e9e9483f.tar.gz
emacs-dffdbc1f1fd6569c518e2e3b5e771a54e9e9483f.zip
Use 'with-work-macro' in 'string-pixel-width'
Tweak the implementation of 'string-pixel-width' to run faster and use less memory. Also cater for the case where this function is called in parallel (bug#72689). * lisp/emacs-lisp/subr-x.el (string-pixel-width): Use `with-work-macro'. Prefer `remove-text-properties' to `propertize' to avoid creating a new string on each call.
Diffstat (limited to 'java/org/gnu')
0 files changed, 0 insertions, 0 deletions