bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#18727: 25.0.50; Paste to isearch-repeat-forward does not work


From: Eli Zaretskii
Subject: bug#18727: 25.0.50; Paste to isearch-repeat-forward does not work
Date: Tue, 06 Aug 2019 05:31:14 +0300

> From: Juri Linkov <juri@linkov.net>
> Cc: larsi@gnus.org,  18727@debbugs.gnu.org,  berts@amazon.com
> Date: Mon, 05 Aug 2019 22:52:46 +0300
> 
> > Crystal ball says this is because of the xterm paste support.  Can you
> > try after disabling that extension?
> 
> I don't know how to disable it.

Set interprogram-paste-function to a value that would disable it on
TTY frames.

> -(defun isearch-xterm-paste ()
> +(defun isearch-xterm-paste (event)
>    "Pull terminal paste into search string."
> -  (interactive)
> -  (isearch-yank-string (xterm--pasted-text)))
> +  (interactive "e")
> +  (when (eq (car-safe event) 'xterm-paste)
> +    (let ((pasted-text (nth 1 event)))
> +      (isearch-yank-string pasted-text))))

That's somewhat ugly, IMO.  We should try making the xterm paste
facility play by the rules, like the GUI paste functionality does.





reply via email to

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