[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strange behaviour of the undo function
From: |
Juri Linkov |
Subject: |
Re: Strange behaviour of the undo function |
Date: |
Thu, 29 Dec 2005 03:16:34 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
> In the *scratch* buffer type part of a symbol and type M-TAB.
> In the *Completions* buffer click <mouse-1> on a completion string.
>
> I think I fixed this. Does it work now?
Not quite. Now it works very strangely.
When the first mouse click in a new Emacs instance is <mouse-2>, then all
subsequent <mouse-1> clicks in the same Emacs instance work correctly.
Test case that works correctly:
emacs -q
d e f M-TAB
<mouse-2> on a completion in the *Completions* buffer
C-x u
M-TAB
<mouse-1> on a completion in the *Completions* buffer
But if the first click is <mouse-1>, this causes an error.
Test case that fails:
emacs -q
d e f M-TAB
<mouse-1> on a completion in the *Completions* buffer
displays the error message:
insert-for-yank: Buffer is read-only: #<buffer *Completions*>
After the second click <mouse-1> on the same completion it inserts the
completion string to the *scratch* buffer, but leaves point in the same
window where the *Completions* buffer was.
--
Juri Linkov
http://www.jurta.org/emacs/