Simon Josefsson <[EMAIL PROTECTED]> writes: > Stefan Monnier <[EMAIL PROTECTED]> writes: > >> The code below looks very odd: >> >> (save-excursion >> (save-restriction >> (set-buffer nntp-server-buffer) >> (goto-char (point-min)) >> (when (or (search-forward "\n.\n" nil t) >> (goto-char (point-max))) >> (beginning-of-line) >> (narrow-to-region (point-min) (point))) >> >> doing a set-buffer between the save-restriction and the narrow-to-region >> seems like a bug. How 'bout the patch below? Which turns the set-buffer >> into a with-current-buffer and moves it to before the save-excursion. >> Maybe the save-excursion could be dropped altogether?
You mean, the save-restriction? > FWIW, looks good to me. Not to me. Seems to restore the restriction in another boffer, not nntp-server-buffer. Even if this is for some weird reason what was intended, it should be rearranged or well documented to stop people worrying about it. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel