emacs-devel
[Top][All Lists]
Advanced

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

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


From: Richard Stallman
Subject: Re: I-search: Clicking in minibuf during I-search fails.
Date: Sat, 27 Oct 2007 09:58:09 -0400

    > So why does the event have the wrong position in it?

    I guess this is because clicking mouse button with the code

    (let ((cursor-in-echo-area t))
        (read-event))

    always returns an event where the buffer position is 1.

What about the horizontal and vertical positions?  Are they correct?
If so, this code could find the character in the minibuffer that they
correspond to, and put that position into the event.  Does that fix it?

    PS: I already suggested trying an alternative solution that gets rid of
    using `read-event', and binds C-w to a new command in the minibuffer
    for editing the search string.

That approach might be a good one.  However, I expect we will have to
fix a few bugs before it fully works.  So I think that the other
approach is likely to be easier, and I recommend trying it first.




reply via email to

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