From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#21766: 25.0.50; delete-trailing-whitespace sometimes deletes non-whitespace Date: Tue, 27 Oct 2015 10:46:15 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445939242 27586 80.91.229.3 (27 Oct 2015 09:47:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Oct 2015 09:47:22 +0000 (UTC) Cc: 21766@debbugs.gnu.org, Markus Triska To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 27 10:47:13 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 1Zr0qV-0000K3-IH for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Oct 2015 10:47:11 +0100 Original-Received: from localhost ([::1]:58489 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr0qU-0008II-N3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Oct 2015 05:47:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr0qP-0008IC-T5 for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2015 05:47:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zr0qM-0002Uw-No for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2015 05:47:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49307) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr0qM-0002Us-K9 for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2015 05:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zr0qM-0003OG-AQ for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2015 05:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Oct 2015 09:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21766 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21766-submit@debbugs.gnu.org id=B21766.144593917812987 (code B ref 21766); Tue, 27 Oct 2015 09:47:02 +0000 Original-Received: (at 21766) by debbugs.gnu.org; 27 Oct 2015 09:46:18 +0000 Original-Received: from localhost ([127.0.0.1]:40015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zr0pe-0003NN-DJ for submit@debbugs.gnu.org; Tue, 27 Oct 2015 05:46:18 -0400 Original-Received: from mx2.suse.de ([195.135.220.15]:52145) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zr0pc-0003NF-Jo for 21766@debbugs.gnu.org; Tue, 27 Oct 2015 05:46:17 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Original-Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 75CF3AABB; Tue, 27 Oct 2015 09:46:16 +0000 (UTC) X-Yow: We have DIFFERENT amounts of HAIR -- In-Reply-To: (Juanma Barranquero's message of "Tue, 27 Oct 2015 10:16:28 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) 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:108068 Archived-At: Juanma Barranquero writes: > On Tue, Oct 27, 2015 at 10:01 AM, Andreas Schwab wrote: > >> No, skip-syntax-backward is safe. There must be something in >> line-beginning-position that does this, but only indirectly. > > (skip-syntax-backward "-" > (save-match-data > (line-beginning-position))) > > still shows the bug, while > > (save-match-data > (skip-syntax-backward "-" (line-beginning-position))) > > fixes it. Ok, I see it now, it is the new parse_sexp_propertize stuff which is called by SETUP_SYNTAX_TABLE. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."