GNU bug report logs -
#21766
25.0.50; delete-trailing-whitespace sometimes deletes non-whitespace
Previous Next
Reported by: Markus Triska <triska <at> metalevel.at>
Date: Mon, 26 Oct 2015 23:10:01 UTC
Severity: normal
Merged with 21769
Found in version 25.0.50
Done: Juanma Barranquero <lekktu <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Wed, 28 Oct 2015 18:38:07 +0100
with message-id <CAAeL0SR8uDKdrj16A0nm3sw+hbt3EDB9swi+vt2wKpRH66Fq0A <at> mail.gmail.com>
and subject line Re: bug#21766: 25.0.50; delete-trailing-whitespace sometimes deletes non-whitespace
has caused the debbugs.gnu.org bug report #21766,
regarding 25.0.50; delete-trailing-whitespace sometimes deletes non-whitespace
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
21766: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21766
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Steps to reproduce:
1) wget http://www.metalevel.at/ei/fault1.html
2) emacs -Q fault1.html
3) M-x delete-trailing-whitespace RET
This removes several non-white-space characters, including the whole
line containing "and use it like" (line 83 in the original file),
yielding the following diff against the original file:
http://www.metalevel.at/ei/fault1.patch
Subtle changes in different sections of the file cause different
behaviour of `delete-trailing-whitespace'. For example, if I remove the
initial paragraph (patch: http://www.metalevel.at/ei/fault12.patch) to
obtain the slightly altered file:
http://www.metalevel.at/ei/fault2.html
Then the analogous steps, using fault2.html ($ emacs -Q fault2.html,
M-x delete-trailing-whitespace RET) work as expected, removing only
trailing whitespace characters and leading to the diff:
http://www.metalevel.at/ei/fault2.patch
All steps work as expected in Emacs 24.5, removing only trailing
whitespace characters in all cases.
Thank you for looking into this!
Markus
In GNU Emacs 25.0.50.5 (x86_64-apple-darwin14.1.0, X toolkit, Xaw3d scroll bars)
of 2015-10-04
Repository revision: acfb5cd0353406784f085ddb6edfb0d0587048c8
Windowing system distributor 'The X.Org Foundation', version 11.0.11502000
Configured using:
'configure --without-ns CFLAGS=-I/opt/local/include
LDFLAGS=-L/opt/local/lib'
Configured features:
XAW3D XPM JPEG TIFF GIF PNG IMAGEMAGICK GSETTINGS NOTIFY ACL GNUTLS
LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
[Message part 3 (message/rfc822, inline)]
[Message part 4 (text/plain, inline)]
Fixed in commit 1f02cbea8b489ed7676110431aa36ad5abc47d9b
[Message part 5 (text/html, inline)]
This bug report was last modified 9 years and 259 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.