diff options
| author | Jan Djärv | 2004-04-20 21:19:44 +0000 |
|---|---|---|
| committer | Jan Djärv | 2004-04-20 21:19:44 +0000 |
| commit | 3faf4eb37f5f984f4d1e188f6d8873242e6d2523 (patch) | |
| tree | 75bbd6079483f4d0958627d544abf7d704127ad4 | |
| parent | 6b3b4dbbfcf65ffde08d3b82e5b29db2bb177204 (diff) | |
| download | emacs-3faf4eb37f5f984f4d1e188f6d8873242e6d2523.tar.gz emacs-3faf4eb37f5f984f4d1e188f6d8873242e6d2523.zip | |
* progmodes/grep.el (grep-mode): Add eval-when-compile.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/progmodes/grep.el | 15 |
2 files changed, 12 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8ba6c959b01..738b17d50a0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2004-04-20 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * progmodes/grep.el (grep-mode): Add eval-when-compile. | ||
| 4 | |||
| 1 | 2004-04-20 Richard M. Stallman <rms@gnu.org> | 5 | 2004-04-20 Richard M. Stallman <rms@gnu.org> |
| 2 | 6 | ||
| 3 | * window.el (split-window-save-restore-data): | 7 | * window.el (split-window-save-restore-data): |
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index 94937ba1e87..77802b8e61e 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el | |||
| @@ -429,13 +429,14 @@ temporarily highlight in visited source lines." | |||
| 429 | 'grep-mode nil highlight-regexp))) | 429 | 'grep-mode nil highlight-regexp))) |
| 430 | 430 | ||
| 431 | ;;;###autoload (autoload 'grep-mode "grep" nil t) | 431 | ;;;###autoload (autoload 'grep-mode "grep" nil t) |
| 432 | (define-compilation-mode grep-mode "Grep" | 432 | (eval-when-compile |
| 433 | "Sets `grep-last-buffer' and `compilation-window-height'." | 433 | (define-compilation-mode grep-mode "Grep" |
| 434 | (setq grep-last-buffer (current-buffer)) | 434 | "Sets `grep-last-buffer' and `compilation-window-height'." |
| 435 | (set (make-local-variable 'compilation-error-face) | 435 | (setq grep-last-buffer (current-buffer)) |
| 436 | grep-hit-face) | 436 | (set (make-local-variable 'compilation-error-face) |
| 437 | (set (make-local-variable 'compilation-error-regexp-alist) | 437 | grep-hit-face) |
| 438 | grep-regexp-alist)) | 438 | (set (make-local-variable 'compilation-error-regexp-alist) |
| 439 | grep-regexp-alist))) | ||
| 439 | 440 | ||
| 440 | ;; This is a copy of find-tag-default from etags.el. | 441 | ;; This is a copy of find-tag-default from etags.el. |
| 441 | (defun grep-tag-default () | 442 | (defun grep-tag-default () |