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 08:53:28 +0100

On Tue, Oct 27, 2015 at 8:07 AM, Andreas Röhler <andreas.roehler@easy-emacs.de> wrote:

> First fix looks cleaner.

Shorter, indeed, though it does more work, and inside a loop. I really have no preference.

> Such a basic routine should preserve matches by its own virtue.

Are you talking about delete-trailing-whitespace or skip-syntax-backward?

Anyway, I've always thought that functions should preserve the match data, but I was told that doing so is a (relatively) expensive operation, and functions that use match data should be the ones to make sure that it is valid when they need it.

    J

reply via email to

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