emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] master 306a6f8: * lisp/gnus/gnus-art.el (gnus-article-


From: martin rudalics
Subject: Re: [Emacs-diffs] master 306a6f8: * lisp/gnus/gnus-art.el (gnus-article-prepare): Make sure the article
Date: 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
something like

(let ((window (get-buffer-window gnus-article-buffer)))
  (when window
    (with-current-buffer (window-buffer window)
      (set-window-point window (point-min)))))

martin



reply via email to

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