all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Philipp Stephani <p.stephani2@gmail.com>
Cc: 24639@debbugs.gnu.org
Subject: bug#24639: 26.0.50; Terminal paste doesn't work right in term char mode
Date: Mon, 10 Oct 2016 08:56:16 +0300	[thread overview]
Message-ID: <834m4kg327.fsf@gnu.org> (raw)
In-Reply-To: <CAArVCkRpzg8iFbZVgm7piuF=aEjhs-UvhLV8pRCFSN4NcCdJ4g@mail.gmail.com> (message from Philipp Stephani on Sun, 09 Oct 2016 20:48:59 +0000)

> 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?

For the "term buffer is active" part, do you mean re-enable the
bracketed paste mode when the user switches to another buffer?  If so,
won't it be easier, simpler, and more reliable to do that in a
post-command-hook?

Or maybe it's easier to arrange for xterm-paste to realize the current
buffer is in term char mode, and do the "normal" paste part?  Is that
possible?





  reply	other threads:[~2016-10-10  5:56 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-07 18:02 bug#24639: 26.0.50; Terminal paste doesn't work right in term char mode Philipp
2016-10-07 19:05 ` Eli Zaretskii
2016-10-07 19:19   ` Philipp Stephani
2016-10-07 19:25     ` Eli Zaretskii
2016-10-07 20:19       ` Philipp Stephani
2016-10-08  5:27         ` Eli Zaretskii
2016-10-09 20:48           ` Philipp Stephani
2016-10-10  5:56             ` Eli Zaretskii [this message]
2016-10-15 13:25               ` Philipp Stephani
2016-10-15 14:31                 ` Eli Zaretskii
2016-10-15 14:38                   ` Philipp Stephani
2016-10-15 15:07                     ` Eli Zaretskii
2016-11-06 18:43                       ` Philipp Stephani
2016-11-06 18:43                         ` bug#24639: [PATCH] Send text received by bracketed paste to process Philipp Stephani
2016-11-07 18:35                           ` Eli Zaretskii
2016-11-10 21:57                             ` Philipp Stephani

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=834m4kg327.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=24639@debbugs.gnu.org \
    --cc=p.stephani2@gmail.com \
    /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.