[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] master 306a6f8: * lisp/gnus/gnus-art.el (gnus-article-
Re: [Emacs-diffs] master 306a6f8: * lisp/gnus/gnus-art.el (gnus-article-prepare): Make sure the article
Fri, 13 Apr 2018 08:31:32 +0200
>> + ;; Make sure the article begins with the top of the header.
>> + (save-selected-window
>> + (select-window (get-buffer-window gnus-article-buffer))
>> + (goto-char (point-min)))
> Any reason this doesn't use `with-selected-window`?
There's no need to _select_ the window. What Lars wants is probably
(let ((window (get-buffer-window gnus-article-buffer)))
(with-current-buffer (window-buffer window)
(set-window-point window (point-min)))))