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
82ba1a5a
Commit
82ba1a5a
authored
Mar 21, 2007
by
Juanma Barranquero
Browse files
(server-process-filter): Cancel any pending isearch.
parent
76b0b55f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
lisp/server.el
lisp/server.el
+10
-0
No files found.
lisp/server.el
View file @
82ba1a5a
...
...
@@ -414,6 +414,16 @@ PROC is the server process. Format of STRING is \"PATH PATH PATH... \\n\"."
(
run-with-timer
0
nil
(
lexical-let
((
proc
proc
))
(
lambda
()
(
server-process-filter
proc
""
))))
(
top-level
))
(
condition-case
nil
;; If we're running isearch, we must abort it to allow Emacs to
;; display the buffer and switch to it.
(
mapc
#'
(
lambda
(
buffer
)
(
with-current-buffer
buffer
(
when
(
bound-and-true-p
isearch-mode
)
(
isearch-cancel
))))
(
buffer-list
))
;; Signaled by isearch-cancel
(
quit
(
message
nil
)))
;; If the input is multiple lines,
;; process each line individually.
(
while
(
string-match
"\n"
string
)
...
...
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