]> git.eshelyaron.com Git - emacs.git/commitdiff
; Stop advertising obsolete 'help-follow{,-mouse}'
authorEshel Yaron <me@eshelyaron.com>
Wed, 10 Jan 2024 17:32:52 +0000 (18:32 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 10 Jan 2024 17:32:52 +0000 (18:32 +0100)
* lisp/faces.el (list-faces-display)
* lisp/international/mule-diag.el (list-character-sets): Suggest
'push-button' instead of 'help-follow' and 'help-follow-mouse'.

lisp/faces.el
lisp/international/mule-diag.el

index b774070c6133712170c65cf16fc3845e70f3abca..a85ffa212998ec02002a4cfb3d6008ddbb342192 100644 (file)
@@ -1479,7 +1479,8 @@ argument, prompt for a regular expression using `read-regexp'."
                (mapcar (lambda (f)
                          (let ((s (symbol-name f)))
                            (when (or all-faces (string-match-p regexp s))
-                             (setq max-length (max (length s) max-length))
+                             (setq max-length (max (string-width s)
+                                                    max-length))
                              f)))
                        (sort (face-list) #'string-lessp))))
     (unless faces
@@ -1489,13 +1490,12 @@ argument, prompt for a regular expression using `read-regexp'."
     (with-help-window "*Faces*"
       (with-current-buffer standard-output
        (setq truncate-lines t)
-       (insert
-        (substitute-command-keys
-         (concat
-          "\\<help-mode-map>Use "
-          (if (display-mouse-p) "\\[help-follow-mouse] or ")
-          "\\[help-follow] on a face name to customize it\n"
-          "or on its sample text for a description of the face.\n\n")))
+        (insert (format line-format
+                        (substitute-command-keys
+                         "Face (\\<button-map>\\[push-button] for details)"))
+                "Sample\n"
+                (make-string (1- max-length) ?-) " "
+                (make-string (string-width list-faces-sample-text) ?-) "\n")
        (setq help-xref-stack nil)
        (dolist (face faces)
          (setq face-name (symbol-name face))
index e8556119995daabc8df0fb05e248dad959fcae83..e195354a2a99730b53d6a1b94fc710a315aa3a5b 100644 (file)
@@ -75,10 +75,7 @@ but still shows the full information."
        ;; Insert header.
        (insert "Supplementary character sets are shown below.\n")
        (insert
-        (substitute-command-keys
-         (concat "Use "
-                 (if (display-mouse-p) "\\[help-follow-mouse] or ")
-                 "\\[help-follow]:\n")))
+        (substitute-command-keys "Use \\<button-map>\\[push-button]:\n"))
        (insert "  on a column title to sort by that title,")
        (indent-to 48)
        (insert "+----DIMENSION\n")