[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: list-print-separator

From: Stefan Monnier
Subject: Re: list-print-separator
Date: Tue, 26 Apr 2011 09:55:07 -0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

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.

The above shouldn't be slow (at least, not algorithmically so).


reply via email to

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