From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs Subject: bug#21766: 25.0.50; delete-trailing-whitespace sometimes deletes non-whitespace Date: Tue, 27 Oct 2015 00:07:10 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445901026 13215 80.91.229.3 (26 Oct 2015 23:10:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Oct 2015 23:10:26 +0000 (UTC) To: 21766@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 27 00:10:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zqqu3-0006Ic-O7 for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Oct 2015 00:10:11 +0100 Original-Received: from localhost ([::1]:55804 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zqqu2-0001lw-L8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Oct 2015 19:10:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zqqty-0001jH-2E for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2015 19:10:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zqqtu-0003NR-Qs for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2015 19:10:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48786) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zqqtu-0003NH-Ou for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2015 19:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zqqtu-0003Zh-CN for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2015 19:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Oct 2015 23:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21766 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144590095313667 (code B ref -1); Mon, 26 Oct 2015 23:10:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Oct 2015 23:09:13 +0000 Original-Received: from localhost ([127.0.0.1]:39494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zqqt7-0003YN-8u for submit@debbugs.gnu.org; Mon, 26 Oct 2015 19:09:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40955) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zqqt5-0003YF-BR for submit@debbugs.gnu.org; Mon, 26 Oct 2015 19:09:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zqqt4-0002kw-B1 for submit@debbugs.gnu.org; Mon, 26 Oct 2015 19:09:11 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zqqt4-0002ko-8L for submit@debbugs.gnu.org; Mon, 26 Oct 2015 19:09:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zqqt3-0001iO-7j for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2015 19:09:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zqqsz-0002gB-Ri for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2015 19:09:09 -0400 Original-Received: from static.59.150.47.78.clients.your-server.de ([78.47.150.59]:35112 helo=metalevel.at) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zqqsz-0002f7-LV for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2015 19:09:05 -0400 Original-Received: from dawn.meta (dawn.metalevel.at [127.0.0.1]) by metalevel.at (Postfix) with ESMTP id 32CC4EC109 for ; Tue, 27 Oct 2015 00:09:02 +0100 (CET) Original-Received: by dawn.meta (Postfix, from userid 501) id C732F16BE6D5; Tue, 27 Oct 2015 00:07:10 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:108052 Archived-At: 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