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

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

bug#27079: 24.4; clipboard paste introduces whitespace in Fundamental (n


From: James Powell
Subject: bug#27079: 24.4; clipboard paste introduces whitespace in Fundamental (not in Lisp Interaction)
Date: Thu, 25 May 2017 23:34:43 -0700

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


* 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

reply via email to

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