|
From: | Stefan Monnier |
Subject: | Re: [Emacs-diffs] master c66aaa6: Recomplexify ‘delete-trailing-whitespace’ by treating \n as whitespace again |
Date: | Wed, 15 Mar 2017 10:50:14 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
>>> Recomplexify ‘delete-trailing-whitespace’ by treating \n as >>> whitespace again >>> Mostly reverts "Simplify ‘delete-trailing-whitespace’ by not treating >>> \n as whitespace" from 2016-07-04. Setting \n to non-whitespace >>> causes the regex engine to backtrack a lot when searching for >>> "\\s-+$" (Bug#26079). >> Why do we use syntax-tables? >> IOW why do we use \s- rather than something like [\s\t]? > No clue. But (re-search-forward "[\s\t]+$" nil t) is also slow. Slower than "\\s-+$"? Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |