diff options
| author | Thien-Thi Nguyen | 2004-09-08 11:21:16 +0000 |
|---|---|---|
| committer | Thien-Thi Nguyen | 2004-09-08 11:21:16 +0000 |
| commit | de4c2de7611201b1debf700a8d4bd50701651bad (patch) | |
| tree | 5b706d4a10f09a316d652babd2d95dbc26866e25 | |
| parent | e114fc2ca9892a21faf670c8203ddc86e4d19dfb (diff) | |
| download | emacs-de4c2de7611201b1debf700a8d4bd50701651bad.tar.gz emacs-de4c2de7611201b1debf700a8d4bd50701651bad.zip | |
(grep-mode): Use normal autoload cookie.
| -rw-r--r-- | lisp/progmodes/grep.el | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index ddfca946a78..3c3ba4c0366 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el | |||
| @@ -500,7 +500,17 @@ temporarily highlight in visited source lines." | |||
| 500 | command-args) | 500 | command-args) |
| 501 | 'grep-mode nil highlight-regexp))) | 501 | 'grep-mode nil highlight-regexp))) |
| 502 | 502 | ||
| 503 | ;;;###autoload (autoload 'grep-mode "grep" nil t) | 503 | ;;; This doesn't work: |
| 504 | ;;; ###autoload (autoload 'grep-mode "grep" nil t) | ||
| 505 | ;;; The ostensibly correct result is nonetheless opaque to the accounting | ||
| 506 | ;;; done in `generate-file-autoloads'; in loaddefs.el, the generated elisp is | ||
| 507 | ;;; correct but the generated header comment for grep.el lacks `grep-mode'. | ||
| 508 | ;;; This approach also doesn't help other users of `define-compilation-mode' | ||
| 509 | ;;; who wish to autoload. | ||
| 510 | ;;; | ||
| 511 | ;;; Better to extend autoload.el to grok `define-compilation-mode'. | ||
| 512 | |||
| 513 | ;;;###autoload | ||
| 504 | (define-compilation-mode grep-mode "Grep" | 514 | (define-compilation-mode grep-mode "Grep" |
| 505 | "Sets `grep-last-buffer' and `compilation-window-height'." | 515 | "Sets `grep-last-buffer' and `compilation-window-height'." |
| 506 | (setq grep-last-buffer (current-buffer)) | 516 | (setq grep-last-buffer (current-buffer)) |