1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-28 10:51:29 -08:00

Fix return value problem for make-text-button

Apparently in versions before 24.5 the return value was not always the
button itself when a string was used as the argument
This commit is contained in:
justbur 2015-11-30 18:43:09 -05:00
parent d4b4bad88a
commit 7a30f4d443

View file

@ -1237,7 +1237,8 @@ ORIGINAL-DESCRIPTION is the description given by
(max (floor (* (frame-width) 0.8))))
(if (> (length str) max)
(concat (substring str 0 max) "...")
str)))))))))
str)))))))
desc))
(defun which-key--format-and-replace (unformatted)
"Take a list of (key . desc) cons cells in UNFORMATTED, add