From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#24639: 26.0.50; Terminal paste doesn't work right in term char mode Date: Fri, 07 Oct 2016 19:19:28 +0000 Message-ID: References: <83oa2whtds.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0122f07ca8c002053e4b4aa3 X-Trace: blaine.gmane.org 1475868040 32105 195.159.176.226 (7 Oct 2016 19:20:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2016 19:20:40 +0000 (UTC) Cc: 24639@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 07 21:20:36 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsago-0005Ac-1D for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Oct 2016 21:20:14 +0200 Original-Received: from localhost ([::1]:38037 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsagm-0003Bn-JH for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Oct 2016 15:20:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsagf-0003A4-Lt for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 15:20:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsagc-0007pd-D8 for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 15:20:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41877) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsagc-0007pV-9Q for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 15:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bsagc-0004zC-6b for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 15:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Oct 2016 19:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24639 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24639-submit@debbugs.gnu.org id=B24639.147586798719138 (code B ref 24639); Fri, 07 Oct 2016 19:20:02 +0000 Original-Received: (at 24639) by debbugs.gnu.org; 7 Oct 2016 19:19:47 +0000 Original-Received: from localhost ([127.0.0.1]:48067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsagN-0004yc-6o for submit@debbugs.gnu.org; Fri, 07 Oct 2016 15:19:47 -0400 Original-Received: from mail-wm0-f51.google.com ([74.125.82.51]:37898) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsagL-0004yO-F9 for 24639@debbugs.gnu.org; Fri, 07 Oct 2016 15:19:45 -0400 Original-Received: by mail-wm0-f51.google.com with SMTP id i130so59121408wmg.1 for <24639@debbugs.gnu.org>; Fri, 07 Oct 2016 12:19:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0ONPUVjTTEux9EQc9gLs9U13Gk9Zvl4RsIKE1DSDZUw=; b=wxdnCyUjbvzZZKj9hFYRRLmlZjklkUsg6zhQggsrZlEpc6TmW3B3rNHQdpRCV32nod VStd0VUTtG46lmn6mi2iC8Y1xQNxK4m54XK+DDoF+HposW9TR6iete8BHybitafke5KO YEUXOdfpEUDdrbVp+NJ/4pRrjBSMwmiVLjqvWnZbldwDGEtYWkReHv8nL5bn+75sjqZ3 MkQ8TWKwCmjMZ6lGBJAZAXRzkH8dpzLvDT/T6PwUmSeI3SVFFhGTwC6Ba6T5hJ4VmXFq XJ7i5RY+G+/jU/xgtxVZvs7KiB/L+N9qVY9JCmg1M7H8wPEGdcvx1UjF6cRQCqY8mVQN ueNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0ONPUVjTTEux9EQc9gLs9U13Gk9Zvl4RsIKE1DSDZUw=; b=gIAVqI1359VKU8XNZpE24LVC2d9JVOz4AYQ+5MRMZJpgWDOKoi623XkUwTR9Tytd/d 6Xxsgeuv8EfBncjH0odAryRnlXDFciCSqTv9IYQmUpQnjCT9C9vf6uus0crnbD4bKWzM j+CmdWXxPIqvcCTwNwWScBYss7hs7I4wChDIgAvYMLTtJomdHq8Do+RTEXuVkEQ83k+R ldX2Zh460EDNxUqrnmQO1rGlQLXbbVC/zTfMUO2OrZK7XD9NL5Kxff9FXovYm7Z0UTU3 jvPlv0RxKMK875M05SyvyzqGotfC/5AX6UafnzF75s4aBBQylUFR7inRcSC6UrQkxvBK 4MCA== X-Gm-Message-State: AA6/9RmUnSJ619qtfrd2kLEaIc2vLpPCOgls+GPidk9Mr0lDLYgnV1vdfj/3J4ZQVq5cRek+EX9LZ3en4eYlOA== X-Received: by 10.194.170.163 with SMTP id an3mr18448848wjc.73.1475867979581; Fri, 07 Oct 2016 12:19:39 -0700 (PDT) In-Reply-To: <83oa2whtds.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:124174 Archived-At: --089e0122f07ca8c002053e4b4aa3 Content-Type: text/plain; charset=UTF-8 Eli Zaretskii schrieb am Fr., 7. Okt. 2016 um 21:05 Uhr: > > From: Philipp > > Date: Fri, 07 Oct 2016 20:02:45 +0200 > > > > emacs -nw -Q -f term > > > > RET to start the terminal. Make sure it's in char mode. Select > > some text in another X window. Go back to the Emacs term buffer, press > > middle click, then press RET. > > Expected behavior: Selected text gets inserted and interpreted as shell > > command. > > Actual behavior in Emacs 24.3: Expected behavior. > > Actual behavior in Emacs built from master branch: Selected text gets > > inserted, but not interpreted as shell command (i.e. nothing happens > > after pressing RET). > > > > This appears to be a regression, possibly caused by > > bracketed-paste-mode. > > Does it help to disable the bracketed-paste-mode in term.el? > Yes, uncommenting (xterm--init-bracketed-paste-mode) in term/xterm.el fixes the issue. Maybe M-x term should temporarily bracketed paste mode when in char mode. --089e0122f07ca8c002053e4b4aa3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


Eli Za= retskii <eliz@gnu.org> schrieb am= Fr., 7. Okt. 2016 um 21:05=C2=A0Uhr:
> From: Philipp <p.stephani2@gmail.com>
> Date: Fri, 07 Oct 2016 20:02:45 +0200
>
> emacs -nw -Q -f term
>
> RET to start the terminal.=C2=A0 Make sure it's in char mode.=C2= =A0 Select
> some text in another X window.=C2=A0 Go back to the Emacs term buffer,= press
> middle click, then press RET.
> Expected behavior: Selected text gets inserted and interpreted as shel= l
> command.
> Actual behavior in Emacs 24.3: Expected behavior.
> Actual behavior in Emacs built from master branch: Selected text gets<= br class=3D"gmail_msg"> > inserted, but not interpreted as shell command (i.e. nothing happens > after pressing RET).
>
> This appears to be a regression, possibly caused by
> bracketed-paste-mode.

Does it help to disable the bracketed-paste-mode in term.el?

Yes, uncommenting (xterm--init-br= acketed-paste-mode) in term/xterm.el fixes the issue. Maybe M-x term should= temporarily bracketed paste mode when in char mode.
--089e0122f07ca8c002053e4b4aa3--