From: Stefan Kangas Date: Mon, 4 Jul 2022 13:06:52 +0000 (+0200) Subject: Fix scrolling backwards in Helper-help X-Git-Tag: emacs-29.0.90~1447^2~1200 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c933f988254168ae537301f37841e1f1ebeb42e9;p=emacs.git Fix scrolling backwards in Helper-help * lisp/emacs-lisp/helper.el (Helper-help-scroller): Fix scrolling backwards. --- diff --git a/lisp/emacs-lisp/helper.el b/lisp/emacs-lisp/helper.el index 930dbfe6c49..cbc0afc3a72 100644 --- a/lisp/emacs-lisp/helper.el +++ b/lisp/emacs-lisp/helper.el @@ -77,9 +77,11 @@ (setq continue (read-event)) (cond ((and (memq continue '(?\s ?\C-v)) (< state 2)) (scroll-up)) - ((= continue ?\C-l) + ((eq continue ?\C-l) (recenter)) - ((and (= continue ?\177) (zerop (% state 2))) + ((and (or (eq continue 'backspace) + (eq continue ?\177)) + (zerop (% state 2))) (scroll-down)) (t (setq continue nil))))))))