GNU bug report logs - #21766
25.0.50; delete-trailing-whitespace sometimes deletes non-whitespace

Previous Next

Package: emacs;

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

From: Andreas Schwab <schwab <at> suse.de>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: 21766 <at> debbugs.gnu.org, Markus Triska <triska <at> metalevel.at>
Subject: bug#21766: 25.0.50; delete-trailing-whitespace sometimes deletes non-whitespace
Date: Tue, 27 Oct 2015 10:46:15 +0100
Juanma Barranquero <lekktu <at> gmail.com> writes:

> On Tue, Oct 27, 2015 at 10:01 AM, Andreas Schwab <schwab <at> suse.de> 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 <at> suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."




This bug report was last modified 9 years and 258 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.