* bug#27079: 24.4; clipboard paste introduces whitespace in Fundamental (not in Lisp Interaction)
@ 2017-05-26 6:34 James Powell
2017-05-26 7:24 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: James Powell @ 2017-05-26 6:34 UTC (permalink / raw)
To: 27079
[-- Attachment #1: message body text --]
[-- Type: text/plain, Size: 1377 bytes --]
This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org. Please check that
the From: line contains a valid email address. After a delay of up
to one day, you should receive an acknowledgment at that address.
Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.
Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug. If you can, give a recipe
starting from `emacs -Q':
* Test
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.
[-- Attachment #2: useful-repro-clipboard-fail-2017-05-25.txt --]
[-- Type: text/plain, Size: 918 bytes --]
15 matches for "record(" in buffer: myappi5q7Zo
3686: record(locid="970", value=0)
6624: record(locid="973", value=0)
9392: record(locid="1061", value=0)
12225: record(locid="1062", value=0)
14571: record(locid="1065", value=0)
16809: record(locid="1066", value=0)
18892: record(locid="1067", value=0)
21094: record(locid="1071", value=0)
23293: record(locid="1073", value=0)
25577: record(locid="1086", value=0)
27647: record(locid="1101", value=0)
29927: record(locid="1102", value=0)
32273: record(locid="1114", value=0)
34467: record(locid="1125", value=0)
36476: record(locid="1126", value=0)
-UUU:%%--F1 *Occur* All L17 (Occur etu) 1:14 ------------------------
[-- Attachment #3: message body and .signature --]
[-- Type: text/plain, Size: 4324 bytes --]
* What happens instead
In step six of the test, the numbers get indented, line after line,
each more indented than the next.
* Due diligence
I can reproduce this with the built-in Debian 8 emacs (emacs24 -
24.4+1-5, GNU Emacs 24.4.1)
Summary
| version | repro | host |
| 23.3.1 | no | research |
| 24.3 | no | pliny |
| 24.3.1 | no | gaia |
| 24.5.1 | yes | pliny |
| 24.5.50.1 | yes | pliny |
Buffer *scratch* is in Lisp Interaction mode, buffer asdf is in Fundamental.
This seems to make the difference.
If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/usr/share/emacs/24.4/etc/DEBUG.
In GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5)
of 2015-03-07 on trouble, modified by Debian
System Description: Debian GNU/Linux 8.8 (jessie)
Configured using:
`configure --build x86_64-linux-gnu --prefix=/usr
--sharedstatedir=/var/lib --libexecdir=/usr/lib
--localstatedir=/var/lib --infodir=/usr/share/info
--mandir=/usr/share/man --with-pop=yes
--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp
--build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib
--libexecdir=/usr/lib --localstatedir=/var/lib
--infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes
--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp
--with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars
'CFLAGS=-g -O2 -fstack-protector-strong -Wformat
-Werror=format-security -Wall' CPPFLAGS=-D_FORTIFY_SOURCE=2
LDFLAGS=-Wl,-z,relro'
Important settings:
value of $LC_NUMERIC: en_US.utf8
value of $LANG: fr_FR.utf8
locale-coding-system: utf-8-unix
Major mode: Fundamental
Minor modes in effect:
tooltip-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
ESC [ > 1 ; 3 8 0 1 ; 0 c ESC x e x m DEL DEL m a c
s - v e r s TAB RET ESC x r e p o r t - e m a TAB RET
C-g C-g C-x b C-g C-x b a s d f RET ESC x r e [ DEL
p o r TAB RET
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5) of 2015-03-07 on trouble, modified by Debian
Quit [3 times]
Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util help-fns mail-prsvr mail-utils xterm time-date tooltip electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)
Memory information:
((conses 16 77061 6825)
(symbols 48 17754 0)
(miscs 40 35 139)
(strings 32 9122 4580)
(string-bytes 1 253207)
(vectors 16 7749)
(vector-slots 8 347954 30173)
(floats 8 67 282)
(intervals 56 220 12)
(buffers 960 13)
(heap 1024 16936 1837))
--
James E. Powell, MS
Portland State University
Department of Physics
Home page: http://web.pdx.edu/~powellj
Office: SRTC 409C Phone: 503-725-8515
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#27079: 24.4; clipboard paste introduces whitespace in Fundamental (not in Lisp Interaction)
2017-05-26 6:34 bug#27079: 24.4; clipboard paste introduces whitespace in Fundamental (not in Lisp Interaction) James Powell
@ 2017-05-26 7:24 ` Eli Zaretskii
2017-05-31 1:09 ` Glenn Morris
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2017-05-26 7:24 UTC (permalink / raw)
To: James Powell; +Cc: 27079
> 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").
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#27079: 24.4; clipboard paste introduces whitespace in Fundamental (not in Lisp Interaction)
2017-05-26 7:24 ` Eli Zaretskii
@ 2017-05-31 1:09 ` Glenn Morris
0 siblings, 0 replies; 3+ messages in thread
From: Glenn Morris @ 2017-05-31 1:09 UTC (permalink / raw)
To: 27079-done
Version: 25.1
As explained, fixed by bracketed paste support in 25.1.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-05-31 1:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-26 6:34 bug#27079: 24.4; clipboard paste introduces whitespace in Fundamental (not in Lisp Interaction) James Powell
2017-05-26 7:24 ` Eli Zaretskii
2017-05-31 1:09 ` Glenn Morris
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).