diff options
| author | Richard M. Stallman | 1995-05-02 03:57:27 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-05-02 03:57:27 +0000 |
| commit | 0f21f770b236bfac27efd2a523a024b938c42e0c (patch) | |
| tree | b5096859eab7a17e5cf3dc74f66e516e0ee3b0cc | |
| parent | 73031603697d8f47a95a3e33dd222ba480795324 (diff) | |
| download | emacs-0f21f770b236bfac27efd2a523a024b938c42e0c.tar.gz emacs-0f21f770b236bfac27efd2a523a024b938c42e0c.zip | |
(hide-ifdef-mode-prefix-key): Change to C-c @.
(hide-ifdef-mode-submap): Get rid of \e from all bindings.
| -rw-r--r-- | lisp/progmodes/hideif.el | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lisp/progmodes/hideif.el b/lisp/progmodes/hideif.el index 2b6917eaca8..a28c43a106e 100644 --- a/lisp/progmodes/hideif.el +++ b/lisp/progmodes/hideif.el | |||
| @@ -32,7 +32,7 @@ | |||
| 32 | ;;; has a value. To explicitly hide ifdefs using a buffer-local | 32 | ;;; has a value. To explicitly hide ifdefs using a buffer-local |
| 33 | ;;; define list (default empty), type | 33 | ;;; define list (default empty), type |
| 34 | ;;; | 34 | ;;; |
| 35 | ;;; M-x hide-ifdefs or C-c h | 35 | ;;; M-x hide-ifdefs or C-c @ h |
| 36 | ;;; | 36 | ;;; |
| 37 | ;;; Hide-ifdef suppresses the display of code that the preprocessor wouldn't | 37 | ;;; Hide-ifdef suppresses the display of code that the preprocessor wouldn't |
| 38 | ;;; pass through. The support of constant expressions in #if lines is | 38 | ;;; pass through. The support of constant expressions in #if lines is |
| @@ -46,14 +46,14 @@ | |||
| 46 | ;;; selective-display-ellipses to nil. But this can be dangerous. | 46 | ;;; selective-display-ellipses to nil. But this can be dangerous. |
| 47 | ;;; You can make your buffer read-only while hide-ifdef-hiding by setting | 47 | ;;; You can make your buffer read-only while hide-ifdef-hiding by setting |
| 48 | ;;; hide-ifdef-read-only to a non-nil value. You can toggle this | 48 | ;;; hide-ifdef-read-only to a non-nil value. You can toggle this |
| 49 | ;;; variable with hide-ifdef-toggle-read-only (C-c C-q). | 49 | ;;; variable with hide-ifdef-toggle-read-only (C-c @ C-q). |
| 50 | ;;; | 50 | ;;; |
| 51 | ;;; You can undo the effect of hide-ifdefs by typing | 51 | ;;; You can undo the effect of hide-ifdefs by typing |
| 52 | ;;; | 52 | ;;; |
| 53 | ;;; M-x show-ifdefs or C-c s | 53 | ;;; M-x show-ifdefs or C-c @ s |
| 54 | ;;; | 54 | ;;; |
| 55 | ;;; Use M-x hide-ifdef-define (C-c d) to define a symbol. | 55 | ;;; Use M-x hide-ifdef-define (C-c @ d) to define a symbol. |
| 56 | ;;; Use M-x hide-ifdef-undef (C-c u) to undefine a symbol. | 56 | ;;; Use M-x hide-ifdef-undef (C-c @ u) to undefine a symbol. |
| 57 | ;;; | 57 | ;;; |
| 58 | ;;; If you define or undefine a symbol while hide-ifdef-mode is in effect, | 58 | ;;; If you define or undefine a symbol while hide-ifdef-mode is in effect, |
| 59 | ;;; the display will be updated. Only the define list for the current | 59 | ;;; the display will be updated. Only the define list for the current |
| @@ -75,7 +75,7 @@ | |||
| 75 | ;;; (hide-ifdef-use-define-alist 'list2) ; use list2 by default | 75 | ;;; (hide-ifdef-use-define-alist 'list2) ; use list2 by default |
| 76 | ;;; )) | 76 | ;;; )) |
| 77 | ;;; | 77 | ;;; |
| 78 | ;;; You can call hide-ifdef-use-define-alist (C-c u) at any time to specify | 78 | ;;; You can call hide-ifdef-use-define-alist (C-c @ u) at any time to specify |
| 79 | ;;; another list to use. | 79 | ;;; another list to use. |
| 80 | ;;; | 80 | ;;; |
| 81 | ;;; To cause ifdefs to be hidden as soon as hide-ifdef-mode is called, | 81 | ;;; To cause ifdefs to be hidden as soon as hide-ifdef-mode is called, |
| @@ -115,20 +115,20 @@ | |||
| 115 | (defvar hide-ifdef-mode-map nil | 115 | (defvar hide-ifdef-mode-map nil |
| 116 | "Keymap used with Hide-Ifdef mode.") | 116 | "Keymap used with Hide-Ifdef mode.") |
| 117 | 117 | ||
| 118 | (defconst hide-ifdef-mode-prefix-key "\C-c" | 118 | (defconst hide-ifdef-mode-prefix-key "\C-c@" |
| 119 | "Prefix key for all Hide-Ifdef mode commands.") | 119 | "Prefix key for all Hide-Ifdef mode commands.") |
| 120 | 120 | ||
| 121 | ;; Set up the submap that goes after the prefix key. | 121 | ;; Set up the submap that goes after the prefix key. |
| 122 | (if hide-ifdef-mode-submap | 122 | (if hide-ifdef-mode-submap |
| 123 | () ; dont redefine it. | 123 | () ; dont redefine it. |
| 124 | (setq hide-ifdef-mode-submap (make-sparse-keymap)) | 124 | (setq hide-ifdef-mode-submap (make-sparse-keymap)) |
| 125 | (define-key hide-ifdef-mode-submap "\ed" 'hide-ifdef-define) | 125 | (define-key hide-ifdef-mode-submap "d" 'hide-ifdef-define) |
| 126 | (define-key hide-ifdef-mode-submap "\eu" 'hide-ifdef-undef) | 126 | (define-key hide-ifdef-mode-submap "u" 'hide-ifdef-undef) |
| 127 | (define-key hide-ifdef-mode-submap "\eD" 'hide-ifdef-set-define-alist) | 127 | (define-key hide-ifdef-mode-submap "D" 'hide-ifdef-set-define-alist) |
| 128 | (define-key hide-ifdef-mode-submap "\eU" 'hide-ifdef-use-define-alist) | 128 | (define-key hide-ifdef-mode-submap "U" 'hide-ifdef-use-define-alist) |
| 129 | 129 | ||
| 130 | (define-key hide-ifdef-mode-submap "\eh" 'hide-ifdefs) | 130 | (define-key hide-ifdef-mode-submap "h" 'hide-ifdefs) |
| 131 | (define-key hide-ifdef-mode-submap "\es" 'show-ifdefs) | 131 | (define-key hide-ifdef-mode-submap "s" 'show-ifdefs) |
| 132 | (define-key hide-ifdef-mode-submap "\C-d" 'hide-ifdef-block) | 132 | (define-key hide-ifdef-mode-submap "\C-d" 'hide-ifdef-block) |
| 133 | (define-key hide-ifdef-mode-submap "\C-s" 'show-ifdef-block) | 133 | (define-key hide-ifdef-mode-submap "\C-s" 'show-ifdef-block) |
| 134 | 134 | ||