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: Juanma Barranquero
Subject: bug#21766: 25.0.50; delete-trailing-whitespace sometimes deletes non-whitespace
Date: Tue, 27 Oct 2015 10:16:28 +0100

On Tue, Oct 27, 2015 at 10:01 AM, Andreas Schwab <schwab@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.


reply via email to

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