]> git.eshelyaron.com Git - emacs.git/commitdiff
Bind "home"/"end" in help-for-help
authorStefan Kangas <stefankangas@gmail.com>
Sun, 16 Oct 2022 11:01:00 +0000 (13:01 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Sun, 16 Oct 2022 11:03:59 +0000 (13:03 +0200)
* lisp/help-macro.el (make-help-screen): Bind "home"/"end" keys to
scrolling up/down.

lisp/help-macro.el

index 687d6fbb4eb5944da7f2beb9df25dbc7a14b1127..962bc5a8d87556bca837fcf0ae2b025aa3d6e65b 100644 (file)
@@ -147,16 +147,16 @@ and then returns."
                  (while (or (memq char (append help-event-list
                                                (cons help-char '( ?? ?\C-v ?\s ?\177 ?\M-v ?\S-\s
                                                                   deletechar backspace vertical-scroll-bar
-                                                                  next prior up down))))
+                                                                  home end next prior up down))))
                             (eq (car-safe char) 'switch-frame)
                             (equal key "\M-v"))
                    (condition-case nil
                        (cond
                         ((eq (car-safe char) 'switch-frame)
                          (handle-switch-frame char))
-                        ((memq char '(?\C-v ?\s next))
+                        ((memq char '(?\C-v ?\s next end))
                          (scroll-up))
-                        ((or (memq char '(?\177 ?\M-v ?\S-\s deletechar backspace prior))
+                        ((or (memq char '(?\177 ?\M-v ?\S-\s deletechar backspace prior home))
                              (equal key "\M-v"))
                          (scroll-down))
                         ((memq char '(down))