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

From: Juanma Barranquero <[email-masked]>
Date: Tue, 27 Oct 2015 10:16:28 +0100

On Tue, Oct 27, 2015 at 10:01 AM, Andreas Schwab <[email-masked]> 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.