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

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

bug#24639: 26.0.50; Terminal paste doesn't work right in term char mode


From: Philipp Stephani
Subject: bug#24639: 26.0.50; Terminal paste doesn't work right in term char mode
Date: Sat, 15 Oct 2016 13:25:18 +0000



Eli Zaretskii <eliz@gnu.org> schrieb am Mo., 10. Okt. 2016 um 07:56 Uhr:
> From: Philipp Stephani <p.stephani2@gmail.com>

> Date: Sun, 09 Oct 2016 20:48:59 +0000

> Cc: 24639@debbugs.gnu.org

>

>  > > Maybe M-x term should temporarily bracketed paste mode when in char

>  > > mode.

>  >

>  > That's what I was trying to suggest. Does this have downsides?

>  >

>  > I wouldn't expect any. Bracketed paste mode is a bit faster, but running a bit slower is better than not

>  working

>  > at all.

>

>  Then please push such a change to the emacs-25 branch.

>

> Unfortunately it's not that simple: Bracketed paste more should only be disabled when a term buffer is active

> on an xterm and in char mode. So this will probably require an addition to window-configuration-change-hook

> or similar.



Sorry, I don't understand the reasons for the complication.  The "in

char mode" part was already on the table when we discussed this

previously.  Presumably, there's a function in term-mode which

switches to and from char mode, and that function should turn

bracketed paste mode on or off, accordingly.  Is that right?




The complication arises because char-mode is per-buffer, but bracketed paste mode is per terminal. I've attached a patch now. 

Attachment: 0001-Disable-bracketed-paste-in-a-terminal-in-char-mode.txt
Description: Text document


reply via email to

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