diff options
| author | Eric S. Raymond | 1992-08-03 22:05:14 +0000 |
|---|---|---|
| committer | Eric S. Raymond | 1992-08-03 22:05:14 +0000 |
| commit | 8892e83c7c27d449031dd7939dcc7dee3524f49c (patch) | |
| tree | 34a8d08fbc5a5a1e85cac9bad1dad0790eac6b98 | |
| parent | c3aef0199599851271196aa96072681ed231d1be (diff) | |
| download | emacs-8892e83c7c27d449031dd7939dcc7dee3524f49c.tar.gz emacs-8892e83c7c27d449031dd7939dcc7dee3524f49c.zip | |
*** empty log message ***
| -rw-r--r-- | lisp/ebuff-menu.el | 2 | ||||
| -rw-r--r-- | lisp/echistory.el | 4 | ||||
| -rw-r--r-- | lisp/help.el | 13 | ||||
| -rw-r--r-- | lisp/hexl.el | 3 |
4 files changed, 8 insertions, 14 deletions
diff --git a/lisp/ebuff-menu.el b/lisp/ebuff-menu.el index 5a199d5a58e..f9bb8adf3b6 100644 --- a/lisp/ebuff-menu.el +++ b/lisp/ebuff-menu.el | |||
| @@ -156,7 +156,7 @@ electric-buffer-menu-mode-hook if it is non-nil." | |||
| 156 | (fillarray (lookup-key map "\e") 'Electric-buffer-menu-undefined) | 156 | (fillarray (lookup-key map "\e") 'Electric-buffer-menu-undefined) |
| 157 | (define-key map "\C-z" 'suspend-emacs) | 157 | (define-key map "\C-z" 'suspend-emacs) |
| 158 | (define-key map "v" 'Electric-buffer-menu-mode-view-buffer) | 158 | (define-key map "v" 'Electric-buffer-menu-mode-view-buffer) |
| 159 | (define-key map help-char 'Helper-help) | 159 | (define-key map (char-to-string help-char) 'Helper-help) |
| 160 | (define-key map "?" 'Helper-describe-bindings) | 160 | (define-key map "?" 'Helper-describe-bindings) |
| 161 | (define-key map "\C-c" nil) | 161 | (define-key map "\C-c" nil) |
| 162 | (define-key map "\C-c\C-c" 'Electric-buffer-menu-quit) | 162 | (define-key map "\C-c\C-c" 'Electric-buffer-menu-quit) |
diff --git a/lisp/echistory.el b/lisp/echistory.el index 840244813c3..80e8bed764b 100644 --- a/lisp/echistory.el +++ b/lisp/echistory.el | |||
| @@ -63,7 +63,7 @@ With prefix arg NOCONFIRM, execute current line as-is without editing." | |||
| 63 | (define-key electric-history-map "\C-c\C-c" 'Electric-history-quit) | 63 | (define-key electric-history-map "\C-c\C-c" 'Electric-history-quit) |
| 64 | (define-key electric-history-map "\C-]" 'Electric-history-quit) | 64 | (define-key electric-history-map "\C-]" 'Electric-history-quit) |
| 65 | (define-key electric-history-map "\C-z" 'suspend-emacs) | 65 | (define-key electric-history-map "\C-z" 'suspend-emacs) |
| 66 | (define-key electric-history-map "\C-h" 'Helper-help) | 66 | (define-key electric-history-map help-char 'Helper-help) |
| 67 | (define-key electric-history-map "?" 'Helper-describe-bindings) | 67 | (define-key electric-history-map "?" 'Helper-describe-bindings) |
| 68 | (define-key electric-history-map "\e>" 'end-of-buffer) | 68 | (define-key electric-history-map "\e>" 'end-of-buffer) |
| 69 | (define-key electric-history-map "\e<" 'beginning-of-buffer) | 69 | (define-key electric-history-map "\e<" 'beginning-of-buffer) |
| @@ -131,7 +131,7 @@ The Command History listing is recomputed each time this mode is invoked." | |||
| 131 | (defun Electric-history-undefined () | 131 | (defun Electric-history-undefined () |
| 132 | (interactive) | 132 | (interactive) |
| 133 | (ding) | 133 | (ding) |
| 134 | (message "Type C-h for help, ? for commands, C-c to quit, Space to execute") | 134 | (message (substitute-command-keys "Type \\[Help-for-help] for help, ? for commands, C-c to quit, Space to execute")) |
| 135 | (sit-for 4)) | 135 | (sit-for 4)) |
| 136 | 136 | ||
| 137 | (defun Electric-history-quit () | 137 | (defun Electric-history-quit () |
diff --git a/lisp/help.el b/lisp/help.el index 34b3db6882b..29cf96e42fc 100644 --- a/lisp/help.el +++ b/lisp/help.el | |||
| @@ -26,13 +26,10 @@ | |||
| 26 | (defvar help-map (make-sparse-keymap) | 26 | (defvar help-map (make-sparse-keymap) |
| 27 | "Keymap for characters following the Help key.") | 27 | "Keymap for characters following the Help key.") |
| 28 | 28 | ||
| 29 | (defvar help-key "\C-h" | ||
| 30 | "*Key used to invoke electric help.") | ||
| 31 | |||
| 32 | (define-key global-map help-key 'help-command) | 29 | (define-key global-map help-key 'help-command) |
| 33 | (fset 'help-command help-map) | 30 | (fset 'help-command help-map) |
| 34 | 31 | ||
| 35 | (define-key help-map help-key 'help-for-help) | 32 | (define-key help-map help-char 'help-for-help) |
| 36 | (define-key help-map "?" 'help-for-help) | 33 | (define-key help-map "?" 'help-for-help) |
| 37 | 34 | ||
| 38 | (define-key help-map "\C-c" 'describe-copying) | 35 | (define-key help-map "\C-c" 'describe-copying) |
| @@ -230,17 +227,17 @@ C-d print Emacs ordering information. | |||
| 230 | C-n print news of recent Emacs changes. | 227 | C-n print news of recent Emacs changes. |
| 231 | C-w print information on absence of warranty for GNU Emacs." | 228 | C-w print information on absence of warranty for GNU Emacs." |
| 232 | (interactive) | 229 | (interactive) |
| 233 | (message | 230 | (message (substitute-command-keys |
| 234 | "A B C F I K L M N S T V W C-c C-d C-n C-w. Type \\[help-for-help] again for more help: ") | 231 | "A B C F I K L M N S T V W C-c C-d C-n C-w. Type \\[help-for-help] again for more help: ")) |
| 235 | (let ((char (read-char))) | 232 | (let ((char (read-char))) |
| 236 | (if (or (= char ?\C-h) (= char ??)) | 233 | (if (or (= char help-char) (= char ??)) |
| 237 | (save-window-excursion | 234 | (save-window-excursion |
| 238 | (switch-to-buffer "*Help*") | 235 | (switch-to-buffer "*Help*") |
| 239 | (delete-other-windows) | 236 | (delete-other-windows) |
| 240 | (erase-buffer) | 237 | (erase-buffer) |
| 241 | (insert (documentation 'help-for-help)) | 238 | (insert (documentation 'help-for-help)) |
| 242 | (goto-char (point-min)) | 239 | (goto-char (point-min)) |
| 243 | (while (memq char '(?\C-h ?? ?\C-v ?\ ?\177 ?\M-v)) | 240 | (while (memq char (cons help-char '(?? ?\C-v ?\ ?\177 ?\M-v))) |
| 244 | (if (memq char '(?\C-v ?\ )) | 241 | (if (memq char '(?\C-v ?\ )) |
| 245 | (scroll-up)) | 242 | (scroll-up)) |
| 246 | (if (memq char '(?\177 ?\M-v)) | 243 | (if (memq char '(?\177 ?\M-v)) |
diff --git a/lisp/hexl.el b/lisp/hexl.el index dce544dcb84..13ce5f5259f 100644 --- a/lisp/hexl.el +++ b/lisp/hexl.el | |||
| @@ -67,9 +67,6 @@ and \"-de\" when dehexlfying a buffer.") | |||
| 67 | (defvar hexl-max-address 0 | 67 | (defvar hexl-max-address 0 |
| 68 | "Maximum offset into hexl buffer.") | 68 | "Maximum offset into hexl buffer.") |
| 69 | 69 | ||
| 70 | (defvar help-key "\C-h" | ||
| 71 | "*Key used to invoke electric help.") | ||
| 72 | |||
| 73 | (defvar hexl-mode-map nil) | 70 | (defvar hexl-mode-map nil) |
| 74 | 71 | ||
| 75 | ;; routines | 72 | ;; routines |