tags 23007 patch quit Vincent Lefevre writes: > 1. Start Emacs with its own UI under X Window. > > 2. Type: M-< > Here the cursor is at the beginning of the buffer, which contains > some text. > > 3. In some other window, select some text (e.g. the letter "n"). > > 4. Type: C-s > This starts the interactive search. It says: > I-search: > > 5. Click with the middle button near the bottom of the window. > This pastes the text at the end of the buffer. > > 6. Type: C-_ > This removes the pasted text and moves the cursor back at the > beginning of the buffer. > > 7. Type: C-s > This starts the interactive search again. But this time, it says: > I-search: [No previous search string] > > 8. Type: e > This searches for "e". All the occurrences of "e" are highlighted. > > 9. Type: > This is no longer the interactive search, but the occurrences of "e" > are still highlighted. > > Typing other letters brings back to the interactive search. This is because clicking the middle button during isearch calls isearch-mouse-2, which calls the usual mouse-yank-primary, which calls isearch-done to finish isearch. Problem is, it let-binds overriding-terminal-local-map around this call, which counteracts isearch-done setting this variable to nil. The end result is having quit isearch, but with the overriding map still in place. I have attached a simple patch below. Eli, if it's satisfactory, would you commit it for me? TIA