all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Markus Triska <triska@metalevel.at>
To: 21766@debbugs.gnu.org
Subject: bug#21766: 25.0.50; delete-trailing-whitespace sometimes deletes non-whitespace
Date: Tue, 27 Oct 2015 00:07:10 +0100	[thread overview]
Message-ID: <m2si4xfcv5.fsf@metalevel.at> (raw)


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






             reply	other threads:[~2015-10-26 23:07 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-26 23:07 Markus Triska [this message]
2015-10-27  0:15 ` bug#21766: 25.0.50; delete-trailing-whitespace sometimes deletes non-whitespace Juanma Barranquero
2015-10-27  7:07   ` Andreas Röhler
2015-10-27  7:53     ` Juanma Barranquero
2015-10-27  8:05   ` martin rudalics
2015-10-27  8:12     ` Juanma Barranquero
2015-10-27  8:25       ` martin rudalics
2015-10-27  8:32         ` Juanma Barranquero
2015-10-27  9:01   ` Andreas Schwab
2015-10-27  9:16     ` Juanma Barranquero
2015-10-27  9:24       ` martin rudalics
2015-10-27  9:46       ` Andreas Schwab
2015-10-27 10:21         ` Juanma Barranquero
2015-10-27 16:03           ` Juanma Barranquero
2015-10-27 16:03           ` Juanma Barranquero
2015-10-28  1:51             ` Stephen Leake
2015-10-28  9:08               ` Juanma Barranquero
2015-10-28  9:08               ` Juanma Barranquero
2015-10-28 17:38                 ` Juanma Barranquero
2015-10-28  1:51             ` Stephen Leake
2015-10-28 19:19         ` Stefan Monnier
2015-10-29  6:30           ` Andreas Röhler
2015-10-29  9:41             ` Juanma Barranquero

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2si4xfcv5.fsf@metalevel.at \
    --to=triska@metalevel.at \
    --cc=21766@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.