bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#21766: 25.0.50; delete-trailing-whitespace sometimes deletes non-whi


From: martin rudalics
Subject: bug#21766: 25.0.50; delete-trailing-whitespace sometimes deletes non-whitespace
Date: Tue, 27 Oct 2015 10:24:28 +0100

>> 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.

I doubt that ‘syntax-propertize’ is always safe.

martin






reply via email to

[Prev in Thread] Current Thread [Next in Thread]