Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
de4c2de7
Commit
de4c2de7
authored
Sep 08, 2004
by
Thien-Thi Nguyen
Browse files
(grep-mode): Use normal autoload cookie.
parent
e114fc2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
lisp/progmodes/grep.el
lisp/progmodes/grep.el
+11
-1
No files found.
lisp/progmodes/grep.el
View file @
de4c2de7
...
...
@@ -500,7 +500,17 @@ temporarily highlight in visited source lines."
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))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment