]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix the handling of the Delete key in help screens.
authorGregory Heytings <gregory@heytings.org>
Sun, 25 Apr 2021 13:30:15 +0000 (13:30 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sun, 25 Apr 2021 13:43:44 +0000 (16:43 +0300)
* lisp/help-macro.el (make-help-screen): Handle the Delete key
in help screens as in Emacs 23 and earlier.

Copyright-paperwork-exempt: yes

lisp/help-macro.el

index 96edeaf4660dd4b660eaf3e7c32a3f482b08acc4..7fc128c73a9620f45c070cad0ae4ec9f77941336 100644 (file)
@@ -148,7 +148,7 @@ and then returns."
                    (setq new-minor-mode-map-alist minor-mode-map-alist))
                  (goto-char (point-min))
                  (while (or (memq char (append help-event-list
-                                               (cons help-char '(?? ?\C-v ?\s ?\177 delete backspace vertical-scroll-bar ?\M-v))))
+                                               (cons help-char '(?? ?\C-v ?\s ?\177 deletechar backspace vertical-scroll-bar ?\M-v))))
                             (eq (car-safe char) 'switch-frame)
                             (equal key "\M-v"))
                    (condition-case nil
@@ -157,7 +157,7 @@ and then returns."
                          (handle-switch-frame char))
                         ((memq char '(?\C-v ?\s))
                          (scroll-up))
-                        ((or (memq char '(?\177 ?\M-v delete backspace))
+                        ((or (memq char '(?\177 ?\M-v deletechar backspace))
                              (equal key "\M-v"))
                          (scroll-down)))
                      (error nil))