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
c7d2f2cc
Commit
c7d2f2cc
authored
Jul 03, 2005
by
Juanma Barranquero
Browse files
(occur-hook): Doc fix.
(occur-1): Don't call `occur-hook' if there are no matches.
parent
ed214edf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
lisp/replace.el
lisp/replace.el
+8
-9
No files found.
lisp/replace.el
View file @
c7d2f2cc
...
...
@@ -719,7 +719,7 @@ See `occur-revert-function'.")
:group
'matching
)
(
defcustom
occur-hook
nil
"Hook run
when `occur' is called
."
"Hook run
by Occur when there are any matches
."
:type
'hook
:group
'matching
)
...
...
@@ -1042,14 +1042,13 @@ See also `multi-occur'."
(
if
(
=
count
1
)
""
"es"
)
regexp
))
(
setq
occur-revert-arguments
(
list
regexp
nlines
bufs
))
(
if
(
>
count
0
)
(
progn
(
if
(
=
count
0
)
(
kill-buffer
occur-buf
)
(
display-buffer
occur-buf
)
(
setq
next-error-last-buffer
occur-buf
)
(
setq
buffer-read-only
t
)
(
set-buffer-modified-p
nil
))
(
kill-buffer
occur-buf
)))
(
run-hooks
'occur-hook
)))))
(
set-buffer-modified-p
nil
)
(
run-hooks
'occur-hook
)))))))
(
defun
occur-engine-add-prefix
(
lines
)
(
mapcar
...
...
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