From: Juri Linkov <juri@linkov.net>
To: 36950@debbugs.gnu.org
Subject: bug#36950: 27.0.50; Paste to isearch does not work
Date: Fri, 13 Dec 2019 01:58:30 +0200 [thread overview]
Message-ID: <87v9qlgkm6.fsf@mail.linkov.net> (raw)
In-Reply-To: <87mugmrlp4.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 07 Aug 2019 01:12:39 +0300")
> This is continuation of the closed bug#18727.
This needs to be fixed before the release. I provided the following patch
that fixes the problem, and don't know what else is needed.
diff --git a/lisp/isearch.el b/lisp/isearch.el
index 7c22e6ad97..1705b050b5 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -2508,10 +2508,12 @@ isearch-mouse-2
(declare-function xterm--pasted-text "term/xterm" ())
-(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))))
(defun isearch-yank-internal (jumpform)
"Pull the text from point to the point reached by JUMPFORM.
next prev parent reply other threads:[~2019-12-12 23:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-06 22:12 bug#36950: 27.0.50; Paste to isearch does not work Juri Linkov
2019-12-12 23:58 ` Juri Linkov [this message]
2019-12-13 7:27 ` Eli Zaretskii
2019-12-14 23:18 ` Juri Linkov
2019-12-15 15:27 ` Eli Zaretskii
2019-12-16 0:19 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v9qlgkm6.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=36950@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).