aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorEric S. Raymond1992-08-03 21:49:55 +0000
committerEric S. Raymond1992-08-03 21:49:55 +0000
commitc3aef0199599851271196aa96072681ed231d1be (patch)
treebc17f33e05200e4ec279c5be08a75e4b8ecb24b5 /lisp
parent573cd9243973d16c0d4807d9c5c220fa5df0efad (diff)
downloademacs-c3aef0199599851271196aa96072681ed231d1be.tar.gz
emacs-c3aef0199599851271196aa96072681ed231d1be.zip
*** empty log message ***
Diffstat (limited to 'lisp')
-rw-r--r--lisp/dired-aux.el2
-rw-r--r--lisp/ebuff-menu.el5
-rw-r--r--lisp/help.el11
-rw-r--r--lisp/hexl.el4
4 files changed, 11 insertions, 11 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index eea28769d93..d94285f7544 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -539,7 +539,7 @@ and use this command with a prefix argument (the value does not matter)."
539 ;; Query user and return nil or t. 539 ;; Query user and return nil or t.
540 ;; Store answer in symbol VAR (which must initially be bound to nil). 540 ;; Store answer in symbol VAR (which must initially be bound to nil).
541 ;; Format PROMPT with ARGS. 541 ;; Format PROMPT with ARGS.
542 ;; Binding variable help-form will help the user who types C-h. 542 ;; Binding variable help-form will help the user who types the help key.
543 (let* ((char (symbol-value qs-var)) 543 (let* ((char (symbol-value qs-var))
544 (action (cdr (assoc char dired-query-alist)))) 544 (action (cdr (assoc char dired-query-alist))))
545 (cond ((eq 'yes action) 545 (cond ((eq 'yes action)
diff --git a/lisp/ebuff-menu.el b/lisp/ebuff-menu.el
index de244ee026b..5a199d5a58e 100644
--- a/lisp/ebuff-menu.el
+++ b/lisp/ebuff-menu.el
@@ -29,9 +29,6 @@
29 29
30(require 'electric) 30(require 'electric)
31 31
32(defvar help-key "\C-h"
33 "*Key used to invoke electric help.")
34
35;; this depends on the format of list-buffers (from src/buffer.c) and 32;; this depends on the format of list-buffers (from src/buffer.c) and
36;; on stuff in lisp/buff-menu.el 33;; on stuff in lisp/buff-menu.el
37 34
@@ -159,7 +156,7 @@ electric-buffer-menu-mode-hook if it is non-nil."
159 (fillarray (lookup-key map "\e") 'Electric-buffer-menu-undefined) 156 (fillarray (lookup-key map "\e") 'Electric-buffer-menu-undefined)
160 (define-key map "\C-z" 'suspend-emacs) 157 (define-key map "\C-z" 'suspend-emacs)
161 (define-key map "v" 'Electric-buffer-menu-mode-view-buffer) 158 (define-key map "v" 'Electric-buffer-menu-mode-view-buffer)
162 (define-key map help-key 'Helper-help) 159 (define-key map help-char 'Helper-help)
163 (define-key map "?" 'Helper-describe-bindings) 160 (define-key map "?" 'Helper-describe-bindings)
164 (define-key map "\C-c" nil) 161 (define-key map "\C-c" nil)
165 (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/help.el b/lisp/help.el
index 0ff43dad72b..34b3db6882b 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -26,10 +26,13 @@
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(define-key global-map "\C-h" 'help-command) 29(defvar help-key "\C-h"
30 "*Key used to invoke electric help.")
31
32(define-key global-map help-key 'help-command)
30(fset 'help-command help-map) 33(fset 'help-command help-map)
31 34
32(define-key help-map "\C-h" 'help-for-help) 35(define-key help-map help-key 'help-for-help)
33(define-key help-map "?" 'help-for-help) 36(define-key help-map "?" 'help-for-help)
34 37
35(define-key help-map "\C-c" 'describe-copying) 38(define-key help-map "\C-c" 'describe-copying)
@@ -200,7 +203,7 @@ describes the minor mode."
200 (print-help-return-message))) 203 (print-help-return-message)))
201 204
202(defun help-for-help () 205(defun help-for-help ()
203 "You have typed C-h, the help character. Type a Help option: 206 "You have typed \\[help-for-help], the help character. Type a Help option:
204 207
205A command-apropos. Give a substring, and see a list of commands 208A command-apropos. Give a substring, and see a list of commands
206 (functions interactively callable) that contain 209 (functions interactively callable) that contain
@@ -228,7 +231,7 @@ C-n print news of recent Emacs changes.
228C-w print information on absence of warranty for GNU Emacs." 231C-w print information on absence of warranty for GNU Emacs."
229 (interactive) 232 (interactive)
230 (message 233 (message
231 "A B C F I K L M N S T V W C-c C-d C-n C-w. Type C-h again for more help: ") 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: ")
232 (let ((char (read-char))) 235 (let ((char (read-char)))
233 (if (or (= char ?\C-h) (= char ??)) 236 (if (or (= char ?\C-h) (= char ??))
234 (save-window-excursion 237 (save-window-excursion
diff --git a/lisp/hexl.el b/lisp/hexl.el
index e5a2b1e0e0e..dce544dcb84 100644
--- a/lisp/hexl.el
+++ b/lisp/hexl.el
@@ -589,8 +589,8 @@ You may also type up to 3 octal digits, to insert a character with that code"
589 (define-key hexl-mode-map "\C-e" 'hexl-end-of-line) 589 (define-key hexl-mode-map "\C-e" 'hexl-end-of-line)
590 (define-key hexl-mode-map "\C-f" 'hexl-forward-char) 590 (define-key hexl-mode-map "\C-f" 'hexl-forward-char)
591 591
592 (if (not (eq (key-binding help-key) 'help-command)) 592 (if (not (eq (key-binding help-char) 'help-command))
593 (define-key hexl-mode-map help-key 'undefined)) 593 (define-key hexl-mode-map help-char 'undefined))
594 594
595 (define-key hexl-mode-map "\C-i" 'hexl-self-insert-command) 595 (define-key hexl-mode-map "\C-i" 'hexl-self-insert-command)
596 (define-key hexl-mode-map "\C-j" 'hexl-self-insert-command) 596 (define-key hexl-mode-map "\C-j" 'hexl-self-insert-command)