]> code.delx.au - gnu-emacs/blobdiff - lisp/ehelp.el
Fix typo in previous change.
[gnu-emacs] / lisp / ehelp.el
index baa2a052181fd56c80b1ce1bec045f466584f5b1..1dc181e198e859c068ff325ed0e635580753ebe6 100644 (file)
@@ -26,7 +26,7 @@
 ;; This package provides a pre-packaged `Electric Help Mode' for
 ;; browsing on-line help screens.  There is one entry point,
 ;; `with-electric-help'; All you have to give it is a no-argument
-;; function that generates the actual text of the help into the urrent
+;; function that generates the actual text of the help into the current
 ;; buffer.
 
 ;;; Code:
@@ -127,7 +127,8 @@ BUFFER is put into `default-major-mode' (or `fundamental-mode') when we exit"
   (catch 'exit
     (if (pos-visible-in-window-p (point-max))
        (progn (message "<<< Press Space to bury the help buffer >>>")
-              (if (eq (setq unread-command-events (list (read-event))) ?\  )
+              (if (equal (setq unread-command-events (list (read-event)))
+                         '(?\ ))
                   (progn (setq unread-command-events nil)
                          (throw 'exit t)))))
     (let (up down both neither