Fix the handling of the Delete key in help screens.

* lisp/help-macro.el (make-help-screen): Handle the Delete key
in help screens as in Emacs 23 and earlier.

Copyright-paperwork-exempt: yes
This commit is contained in:
Gregory Heytings 2021-04-25 13:30:15 +00:00 committed by Eli Zaretskii
parent 13a248f7e7
commit a6d40a289e

View 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))