aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorKévin Le Gouguec2025-02-20 22:37:13 +0100
committerKévin Le Gouguec2025-03-08 17:29:34 +0100
commitf23ee932509e0a67aaafc499f0cd6b25535e4b95 (patch)
tree4d9127f6b4b6813c11d9c95c461af30c41e66f37 /java
parent269d337f9191cb58e70f93f8aae47a9bd8d635f9 (diff)
downloademacs-f23ee932509e0a67aaafc499f0cd6b25535e4b95.tar.gz
emacs-f23ee932509e0a67aaafc499f0cd6b25535e4b95.zip
Prevent button.el from clearing help-echo strings
In order to fix one of the issues discussed in bug#61413, i.e. 'buttonize' clobbering the help-echo property set by 'icon-string'. This is a reasonable interpretation of the button.el docstrings - "if HELP-ECHO, use that as the `help-echo' property"; conversely, if not HELP-ECHO, then do not do anything, preserving existing values for that property. * lisp/button.el (button--properties): Only add a help-echo property if HELP-ECHO is non-nil. Add an additional property for bookkeeping. (unbuttonize-region): Check for that bookkeeping property before clearing help-echo. * test/lisp/button-tests.el (button--preserve-help-echo): Validate these changes.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions