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

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

Re: How to paste under terminal emacs?


From: Stefan Monnier
Subject: Re: How to paste under terminal emacs?
Date: Thu, 17 Mar 2016 09:06:47 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

> I found a sample snippet here:
> https://github.com/hchbaw/bracketed-paste.el/blob/master/bracketed-paste.el
> Dunno what do you mean by "alredy implemented in Emacs".

That recent Emacsen incorporate code akin to bracketed-paste.el, and they
use it without you even noticing it.

OK, I checked and I was partly lying: it's only supported in the
upcoming 25.1.  Excerpt from the NEWS file:

    * Editing Changes in Emacs 25.1
    [...]
    ** Emacs now uses "bracketed paste mode" on text terminals that support it.
    Bracketed paste mode causes text terminals to wrap pasted text in special
    escape sequences that allow Emacs to tell the difference between text
    you type and text you paste from other applications.  Emacs then
    avoids interpreting each character in the pasted text as it does with
    keyboard input, which results in a paste experience similar to that
    under a window system, and significant performance improvements when
    pasting large amounts of text.
    
    Bracketed paste mode is disabled by default, so Emacs automatically
    enables it at startup if the terminal supports it.


-- Stefan




reply via email to

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