[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.


reply via email to

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