[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27079: 24.4; clipboard paste introduces whitespace in Fundamental (n
From: |
Eli Zaretskii |
Subject: |
bug#27079: 24.4; clipboard paste introduces whitespace in Fundamental (not in Lisp Interaction) |
Date: |
Fri, 26 May 2017 10:24:36 +0300 |
> From: James Powell <powellj@pdx.edu>
> Date: Thu, 25 May 2017 23:34:43 -0700
>
> 1. cat useful-repro-clipboard-fail-2017-05-25.txt (attached) in a
> gnome-terminal window.
> 2. select lines from it, e.g.
> : 16809: record(locid="1066", value=0)
> : 18892: record(locid="1067", value=0)
> : 21094: record(locid="1071", value=0)
> 3. In the same window (or another new one, doesn't matter) run "emacs -Q -nw".
> 4. right click to paste. Observe the few lines you selected appear in the
> *scratch* buffer,
> faithfully reproduced.
> 5. C-x b asdf <enter>
> 6. right click to paste. Observe the introduction of unwanted whitespace,
> as in
> : 16809: record(locid="1066", value=0)
> : 18892: record(locid="1067", value=0)
> : 21094: record(locid="1071", value=0)
> * What I expect to happen
> In step six of the test, the numbers should all be in a neat column.
This is a feature. If you don't like it, turn off
electric-indent-mode. The underlying problem is that Emacs is unable
to distinguish between paste into a text-mode frame and the user
typing the same text from the keyboard.
Emacs 25.1 and later should be able to handle paste into text-mode
Emacs frames more intelligently, if the terminal supports some
advanced feature (so-called "bracketed-paste mode").