]> code.delx.au - gnu-emacs/commitdiff
(make-help-screen): Explicitly translate key thru function-key-map.
authorRichard M. Stallman <rms@gnu.org>
Thu, 13 Apr 1995 17:07:03 +0000 (17:07 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 13 Apr 1995 17:07:03 +0000 (17:07 +0000)
lisp/help-macro.el

index 886eaa52b7ae916c49552ad3d40e576a6e23caa1..bd129a8aed84b0e9660032754163babeae6dc444 100644 (file)
@@ -104,9 +104,13 @@ and then returns."
                     (setcdr local-map (, helped-map))
                     (define-key local-map [t] 'undefined)
                     (if three-step-help
-                        (setq key (let ((overriding-local-map local-map))
-                                    (read-key-sequence nil))
-                              char (aref key 0))
+                        (progn
+                          (setq key (let ((overriding-local-map local-map))
+                                    (read-key-sequence nil)))
+                          ;; Make the HELP key translate to C-h.
+                          (if (lookup-key function-key-map key)
+                              (setq key (lookup-key function-key-map key)))
+                          (setq char (aref key 0)))
                       (setq char ??))
                     (if (or (eq char ??) (eq char help-char))
                         (progn