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
d634a3a2
Commit
d634a3a2
authored
Jul 09, 2005
by
Juri Linkov
Browse files
(next-error-hook): New variable.
(next-error): Use it. Doc fix.
parent
2894bd96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
lisp/simple.el
lisp/simple.el
+11
-4
No files found.
lisp/simple.el
View file @
d634a3a2
...
...
@@ -110,6 +110,11 @@ If `fringe-arrow', indicate the locus by the fringe arrow."
:group
'next-error
:version
"22.1"
)
(
defcustom
next-error-hook
nil
"*List of hook functions run by `next-error' after visiting source file."
:type
'hook
:group
'next-error
)
(
defvar
next-error-highlight-timer
nil
)
(
defvar
next-error-overlay-arrow-position
nil
)
...
...
@@ -240,9 +245,10 @@ To specify use of a particular buffer for error messages, type
\\[next-error] in that buffer when it is the only one displayed
in the current frame.
Once \\[next-error] has chosen the buffer for error messages,
it stays with that buffer until you use it in some other buffer which
uses Compilation mode or Compilation Minor mode.
Once \\[next-error] has chosen the buffer for error messages, it
runs `next-error-hook' with `run-hooks', and stays with that buffer
until you use it in some other buffer which uses Compilation mode
or Compilation Minor mode.
See variables `compilation-parse-errors-function' and
\`compilation-error-regexp-alist' for customization ideas."
...
...
@@ -251,7 +257,8 @@ See variables `compilation-parse-errors-function' and
(
when
(
setq
next-error-last-buffer
(
next-error-find-buffer
))
;; we know here that next-error-function is a valid symbol we can funcall
(
with-current-buffer
next-error-last-buffer
(
funcall
next-error-function
(
prefix-numeric-value
arg
)
reset
))))
(
funcall
next-error-function
(
prefix-numeric-value
arg
)
reset
)
(
run-hooks
'next-error-hook
))))
(
defalias
'goto-next-locus
'next-error
)
(
defalias
'next-match
'next-error
)
...
...
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