]> git.eshelyaron.com Git - emacs.git/commitdiff
Clarify which-function tooltip text
authorStefan Kangas <stefan@marxist.se>
Thu, 23 Sep 2021 11:20:55 +0000 (13:20 +0200)
committerStefan Kangas <stefan@marxist.se>
Thu, 23 Sep 2021 11:23:29 +0000 (13:23 +0200)
* lisp/progmodes/which-func.el (which-func-format): Clarify tooltip
text.

lisp/progmodes/which-func.el

index eb170baa5d89300f0f60fbcd8c932ed9af9f05c3..8946e2c3f4258c4d614592e17391f884de480681 100644 (file)
@@ -141,12 +141,14 @@ Zero means compute the Imenu menu regardless of size."
                 local-map ,which-func-keymap
                 face which-func
                 mouse-face mode-line-highlight
-                help-echo "mouse-1: go to beginning\n\
-mouse-2: toggle rest visibility\n\
-mouse-3: go to end")
+                 help-echo ,(concat
+                             "Current function\n"
+                             "mouse-1: go to beginning\n"
+                             "mouse-2: toggle rest visibility\n"
+                             "mouse-3: go to end"))
     "]")
   "Format for displaying the function in the mode line."
-  :version "24.2"                  ; added mouse-face; 24point2 is correct
+  :version "28.1"
   :type 'sexp)
 ;;;###autoload (put 'which-func-format 'risky-local-variable t)