diff options
| author | Richard M. Stallman | 1993-07-22 05:47:10 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-07-22 05:47:10 +0000 |
| commit | ac29eb79ce6c4d576005332d61c0ffc785fe1bed (patch) | |
| tree | 184c02a6c32ad939673241d5ffac6de5fc07f09b | |
| parent | c52e4104a10c45487fa45520c8bcccf05a4b4078 (diff) | |
| download | emacs-ac29eb79ce6c4d576005332d61c0ffc785fe1bed.tar.gz emacs-ac29eb79ce6c4d576005332d61c0ffc785fe1bed.zip | |
(completion-list-mode): Renamed from completion-mode.
(completion-list-mode-map): Likewise.
| -rw-r--r-- | lisp/simple.el | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 3eb8c847435..1739c393945 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -2197,29 +2197,29 @@ it were the arg to `interactive' (which see) to interactively read the value." | |||
| 2197 | 2197 | ||
| 2198 | ;; Define the major mode for lists of completions. | 2198 | ;; Define the major mode for lists of completions. |
| 2199 | 2199 | ||
| 2200 | (defvar completion-mode-map nil) | 2200 | (defvar completion-list-mode-map nil) |
| 2201 | (or completion-mode-map | 2201 | (or completion-list-mode-map |
| 2202 | (let ((map (make-sparse-keymap))) | 2202 | (let ((map (make-sparse-keymap))) |
| 2203 | (define-key map [mouse-2] 'mouse-choose-completion) | 2203 | (define-key map [mouse-2] 'mouse-choose-completion) |
| 2204 | (setq completion-mode-map map))) | 2204 | (setq completion-list-mode-map map))) |
| 2205 | 2205 | ||
| 2206 | ;; Completion mode is suitable only for specially formatted data. | 2206 | ;; Completion mode is suitable only for specially formatted data. |
| 2207 | (put 'completion-mode 'mode-class 'special) | 2207 | (put 'completion-list-mode 'mode-class 'special) |
| 2208 | 2208 | ||
| 2209 | (defun completion-mode () | 2209 | (defun completion-list-mode () |
| 2210 | "Major mode for buffers showing lists of possible completions. | 2210 | "Major mode for buffers showing lists of possible completions. |
| 2211 | Type \\<completion-mode-map>\\[mouse-choose-completion] to select | 2211 | Type \\<completion-list-mode-map>\\[mouse-choose-completion] to select |
| 2212 | a completion with the mouse." | 2212 | a completion with the mouse." |
| 2213 | (interactive) | 2213 | (interactive) |
| 2214 | (kill-all-local-variables) | 2214 | (kill-all-local-variables) |
| 2215 | (use-local-map completion-mode-map) | 2215 | (use-local-map completion-list-mode-map) |
| 2216 | (setq mode-name "Completion") | 2216 | (setq mode-name "Completion List") |
| 2217 | (setq major-mode 'completion-mode) | 2217 | (setq major-mode 'completion-list-mode) |
| 2218 | (run-hooks 'completion-mode-hook)) | 2218 | (run-hooks 'completion-list-mode-hook)) |
| 2219 | 2219 | ||
| 2220 | (defun completion-setup-function () | 2220 | (defun completion-setup-function () |
| 2221 | (save-excursion | 2221 | (save-excursion |
| 2222 | (completion-mode) | 2222 | (completion-list-mode) |
| 2223 | (goto-char (point-min)) | 2223 | (goto-char (point-min)) |
| 2224 | (if window-system | 2224 | (if window-system |
| 2225 | (insert (substitute-command-keys | 2225 | (insert (substitute-command-keys |