# HG changeset patch # User Thien-Thi Nguyen # Date 1094642476 0 # Node ID 08b8e6f0fa2ca6cb6d9b08cebe70c7cde14ee490 # Parent d1239130736d7524fa1a2f24e676affbdb0b5d26 (grep-mode): Use normal autoload cookie. diff -r d1239130736d -r 08b8e6f0fa2c lisp/progmodes/grep.el --- a/lisp/progmodes/grep.el Wed Sep 08 11:17:00 2004 +0000 +++ b/lisp/progmodes/grep.el Wed Sep 08 11:21:16 2004 +0000 @@ -500,7 +500,17 @@ command-args) 'grep-mode nil highlight-regexp))) -;;;###autoload (autoload 'grep-mode "grep" nil t) +;;; This doesn't work: +;;; ###autoload (autoload 'grep-mode "grep" nil t) +;;; The ostensibly correct result is nonetheless opaque to the accounting +;;; done in `generate-file-autoloads'; in loaddefs.el, the generated elisp is +;;; correct but the generated header comment for grep.el lacks `grep-mode'. +;;; This approach also doesn't help other users of `define-compilation-mode' +;;; who wish to autoload. +;;; +;;; Better to extend autoload.el to grok `define-compilation-mode'. + +;;;###autoload (define-compilation-mode grep-mode "Grep" "Sets `grep-last-buffer' and `compilation-window-height'." (setq grep-last-buffer (current-buffer))