[Top][All Lists]

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

Re: I-search: Clicking in minibuf during I-search fails.

From: Juri Linkov
Subject: Re: I-search: Clicking in minibuf during I-search fails.
Date: Thu, 11 Oct 2007 02:44:11 +0300
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux)

> Ok I see.  What I expected was to be able to edit the search string.
> Especially since middle clicking in the echo area does do a paste.
> I will go read the Isearch docs as you suggest and try to avoid
> clicking the echo area.

Thank you for your report.  Your request is reasonable.  It is natural to
expect that clicking in the echo area where the search string is visible
will allow editing this search string.  This behavior is easily
implementable with the following patch:

Index: lisp/isearch.el
RCS file: /sources/emacs/emacs/lisp/isearch.el,v
retrieving revision 1.303
diff -c -r1.303 isearch.el
*** lisp/isearch.el     29 Aug 2007 05:28:05 -0000      1.303
--- lisp/isearch.el     10 Oct 2007 23:44:04 -0000
*** 1738,1743 ****
--- 1738,1747 ----
                   (isearch-back-into-window (eq ab-bel 'above) isearch-point)
                 (goto-char isearch-point)))
+         ((window-minibuffer-p (posn-window (event-start main-event)))
+          ;; Swallow the up-event.
+          (read-event)
+          (isearch-edit-string))
           (let (window)
               (isearch-unread-key-sequence keylist)

Juri Linkov

reply via email to

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