all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 18727@debbugs.gnu.org, Bert Sutherland <berts@amazon.com>
Subject: bug#18727: 25.0.50; Paste to isearch-repeat-forward does not work
Date: Sun, 04 Aug 2019 22:20:31 +0300	[thread overview]
Message-ID: <878ss8yf58.fsf@mail.linkov.net> (raw)
In-Reply-To: <87zhkqfamz.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Sat, 03 Aug 2019 18:59:16 +0200")

>> 1) emacs -Q <file.txt>
>> 2) Copy some text to the Windows/Linux clipboard
>>     e.g. if using Putty simply highlight some text
>>     using the mouse
>> 3) C-s to invoke isearch-repeat-forward
>> 4) Pate text
>>     e.g. using Putty use mouse to right-click
>>
>> Expected result: isearch is performed for pasted text
>>
>> Actual result: text is insterted into file buffer and
>>     mini-buffer reports "Mark set"
>
> I'm unable to reproduce this bug in Emacs 27, so I'm guessing that it's
> been fixed in the intervening years, and I'm closing the bug report.
> If you're still seeing this bug, please reopen this bug report.

After trying to reproduce the bug report, I see a slightly different problem:

0. Run in a terminal: emacs -Q -nw
1. C-s
2.1. either from the MATE Terminal context menu select "Paste"
2.2. or in xterm click the middle mouse button
     (both calls the same command)
3. Emacs hangs and typing 'C-g' produces the backtrace:

Debugger entered--Lisp error: (quit)
  apply(debug error (quit))
  edebug(error (quit))
  signal(quit nil)
  edebug-signal(quit nil)
  xterm--pasted-text()
  backtrace-eval((xterm--pasted-text) 0 edebug-after)
  edebug-eval((xterm--pasted-text))
  edebug-eval-expression((xterm--pasted-text))
  edebug-eval-last-sexp()
  funcall-interactively(edebug-eval-last-sexp)
  call-interactively(edebug-eval-last-sexp nil nil)
  command-execute(edebug-eval-last-sexp)
  recursive-edit()
  edebug--recursive-edit(error)
  edebug--display-1((quit) 1 error)
  edebug--display((quit) 1 error)
  edebug(error (quit))
  signal(quit nil)
  edebug-signal(quit nil)
  xterm--pasted-text()
  (edebug-after (edebug-before 1) 2 (xterm--pasted-text))
  (isearch-yank-string (edebug-after (edebug-before 1) 2 (xterm--pasted-text)))
  (edebug-after (edebug-before 0) 3 (isearch-yank-string (edebug-after (edebug$
  (closure (minibuffer-history-symbol t) nil (edebug-after (edebug-before 0) 3$
  edebug-default-enter(isearch-xterm-paste nil (closure (minibuffer-history-sy$
  edebug-default-enter(isearch-xterm-paste nil (closure (minibuffer-history-sy$
  edebug-enter(isearch-xterm-paste nil (closure (minibuffer-history-symbol t) $
  isearch-xterm-paste()
  funcall-interactively(isearch-xterm-paste)
  call-interactively(isearch-xterm-paste nil nil)
  command-execute(isearch-xterm-paste)

I don't know why isearch uses an internal function 'xterm--pasted-text',
but not the same body as 'xterm-paste'.  There is no such problem when
pasting outside of isearch using 'xterm-paste'.





  reply	other threads:[~2019-08-04 19:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-14 22:39 bug#18727: 25.0.50; Paste to isearch-repeat-forward does not work Bert Sutherland
2019-08-03 16:59 ` Lars Ingebrigtsen
2019-08-04 19:20   ` Juri Linkov [this message]
2019-08-05  9:32     ` Lars Ingebrigtsen
2019-08-05 19:54       ` Juri Linkov
2019-08-05 16:03     ` Eli Zaretskii
2019-08-05 19:52       ` Juri Linkov
2019-08-06  2:31         ` Eli Zaretskii
2019-08-06 22: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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878ss8yf58.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=18727@debbugs.gnu.org \
    --cc=berts@amazon.com \
    --cc=larsi@gnus.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.