[Top][All Lists]

[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: Sun, 11 Mar 2007 04:19:26 +0100

On 3/11/07, Stefan Monnier <address@hidden> wrote:

I don't think we will be able to find a patch that can break out of isearch
for Emacs-22 (it's probably going to be too big a change).  But the fact
that not only it doesn't break out of isearch, but additionally the buffer
isn't displayed at all looks more serious.

The patch below seems to work, but you know server.el better than I
do, so perhaps you can see some downside to it.


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 03:12:26 -0000
@@ -405,4 +405,10 @@
      (setq string (concat prev string))
      (process-put proc :previous-string nil)))
+  (mapc #'(lambda (buffer)
+           (when (local-variable-p 'isearch-mode buffer)
+             (with-current-buffer buffer
+               (isearch-done)
+               (message nil))))
+       (buffer-list))
  (when (> (recursion-depth) 0)
    ;; We're inside a minibuffer already, so if the emacs-client is trying

reply via email to

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