[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: list-print-separator
From: |
Ted Zlatanov |
Subject: |
Re: list-print-separator |
Date: |
Tue, 26 Apr 2011 10:23:36 -0500 |
User-agent: |
Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) |
On Tue, 26 Apr 2011 09:55:07 -0300 Stefan Monnier <address@hidden> wrote:
AM> (add-hook 'gnus-save-quick-newsrc-hook
AM> (lambda ()
AM> (save-excursion
AM> (goto-char (point-min))
AM> (save-match-data
AM> (while (re-search-forward "(\\\"\\| ((\\| (nn" nil t)
AM> (replace-match "\n \\&" t)))
AM> (delete-trailing-whitespace))))
AM> It may not be perfect, but it does make it a great deal more readable.
>> Me too, but that doesn't work for new users, it relies on regular
>> expressions, and it's slow.
SM> The above shouldn't be slow (at least, not algorithmically so).
I should have said "slower than C code," sorry. It's not terribly slow
but (for me) stutters when saving my newsrc.eld, which is over 2 MB. In
any case it's the least of the problems; the big issue is that it uses
regular expressions.
Ted
- Re: list-print-separator, (continued)
- Re: list-print-separator, Stefan Monnier, 2011/04/25
- Re: list-print-separator, Ted Zlatanov, 2011/04/25
- Re: list-print-separator, Thierry Volpiatto, 2011/04/25
- Re: list-print-separator, Stefan Monnier, 2011/04/25
- Re: list-print-separator, Eli Zaretskii, 2011/04/25
- Re: list-print-separator, Stefan Monnier, 2011/04/25
- Re: list-print-separator, Andy Moreton, 2011/04/25
- Re: list-print-separator, Ted Zlatanov, 2011/04/25
- Re: list-print-separator, Andy Moreton, 2011/04/26
- Re: list-print-separator, Stefan Monnier, 2011/04/26
- Re: list-print-separator,
Ted Zlatanov <=