diff lisp/progmodes/compile.el @ 2760:1c7595e3089b

(Setting minor-mode-map-alist): Put the map directly in the alist, not a variable name.
author Richard M. Stallman <rms@gnu.org>
date Thu, 13 May 1993 03:14:07 +0000
parents f80a342fd945
children 539e7c93f8fa
line wrap: on
line diff
--- a/lisp/progmodes/compile.el	Thu May 13 03:00:51 1993 +0000
+++ b/lisp/progmodes/compile.el	Thu May 13 03:14:07 1993 +0000
@@ -31,7 +31,7 @@
 
 ;;;###autoload
 (defvar compilation-mode-hook nil
-  "*List of hook functions run by compilation-mode (see `run-hooks').")
+  "*List of hook functions run by `compilation-mode' (see `run-hooks').")
 
 ;;;###autoload
 (defconst compilation-window-height nil
@@ -336,7 +336,7 @@
     (define-key map "\M-{" 'compilation-previous-file)
     (define-key map "\M-}" 'compilation-next-file)
     map)
-  "Keymap for compilation-minor-mode.")
+  "Keymap for `compilation-minor-mode'.")
 
 (defvar compilation-mode-map
   (let ((map (cons 'keymap compilation-minor-mode-map)))
@@ -344,7 +344,7 @@
     (define-key map "\^?" 'scroll-down)
     map)
   "Keymap for compilation log buffers.
-compilation-minor-mode-map is a cdr of this.")
+`compilation-minor-mode-map' is a cdr of this.")
 
 (defun compilation-mode ()
   "Major mode for compilation log buffers.
@@ -380,8 +380,8 @@
     (setq minor-mode-alist (cons '(compilation-minor-mode " Compilation")
 				 minor-mode-alist)))
 (or (assq 'compilation-minor-mode minor-mode-map-alist)
-    (setq minor-mode-map-alist (cons '(compilation-minor-mode
-				       . compilation-minor-mode-map)
+    (setq minor-mode-map-alist (cons (cons 'compilation-minor-mode
+					   compilation-minor-mode-map)
 				     minor-mode-map-alist)))
 
 (defun compilation-minor-mode (&optional arg)
@@ -441,7 +441,7 @@
 
 (defun compilation-filter (proc string)
   "Process filter for compilation buffers.
-Just inserts the text, but uses insert-before-markers."
+Just inserts the text, but uses `insert-before-markers'."
   (save-excursion
     (set-buffer (process-buffer proc))
     (let ((buffer-read-only nil))