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:
parent
d4b4bad88a
commit
7a30f4d443
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue