changeset 20029:857e1ce3f14b

(make-help-screen): Make scroll bar work normally.
author Richard M. Stallman <rms@gnu.org>
date Sat, 11 Oct 1997 03:31:06 +0000
parents a5846414f380
children 4e45c8db30cb
files lisp/help-macro.el
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/help-macro.el	Thu Oct 09 09:24:50 1997 +0000
+++ b/lisp/help-macro.el	Sat Oct 11 03:31:06 1997 +0000
@@ -105,6 +105,9 @@
 		   (progn
 		     (setcdr local-map (, helped-map))
 		     (define-key local-map [t] 'undefined)
+		     ;; Make the scroll bar keep working normally.
+		     (define-key local-map [vertical-scroll-bar]
+		       (lookup-key global-map [vertical-scroll-bar]))
 		     (if three-step-help
 			 (progn
 			   (setq key (let ((overriding-local-map local-map))
@@ -130,7 +133,7 @@
 			   (help-mode)
 			   (goto-char (point-min))
 			   (while (or (memq char (append help-event-list
-							 (cons help-char '(?? ?\C-v ?\ ?\177 delete backspace ?\M-v))))
+							 (cons help-char '(?? ?\C-v ?\ ?\177 delete backspace vertical-scroll-bar ?\M-v))))
 				      (eq (car-safe char) 'switch-frame)
 				      (equal key "\M-v"))
 			     (condition-case nil
@@ -151,7 +154,11 @@
 						  (if (pos-visible-in-window-p
 						       (point-max))
 						      "" " or Space to scroll")))
-				     char (aref key 0))))))
+				     char (aref key 0)))
+
+			     ;; If this is a scroll bar command, just run it.
+			     (when (eq char 'vertical-scroll-bar)
+			       (command-execute (lookup-key local-map key) nil key)))))
 		     ;; We don't need the prompt any more.
 		     (message "")
 		     ;; Mouse clicks are not part of the help feature,