emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange emacsclient behaviour during use of isearch


From: Juanma Barranquero
Subject: Re: Strange emacsclient behaviour during use of isearch
Date: Mon, 12 Mar 2007 00:35:41 +0100

On 3/11/07, Juanma Barranquero <address@hidden> wrote:

The patch below seems to work

This is a slightly better variant of the previous patch.

Comments?

            Juanma


Index: lisp/server.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/server.el,v
retrieving revision 1.126
diff -u -2 -r1.126 server.el
--- lisp/server.el      27 Jan 2007 19:03:43 -0000      1.126
+++ lisp/server.el      11 Mar 2007 23:28:07 -0000
@@ -415,4 +415,14 @@
                            (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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]