From ba1453cf611e332dd771d87d38aadb6def668b87 Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Fri, 8 Aug 2025 13:25:54 +0200 Subject: [PATCH] ; * lisp/doc-view.el (doc-view-initiate-display): Improve last commit --- lisp/doc-view.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lisp/doc-view.el b/lisp/doc-view.el index 26604f326fa..30536cb4c6c 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el @@ -2146,10 +2146,8 @@ If FILE-NAME is nil, use the current file instead." ;; Inhibit the echo area display of the "Type C-c C-c..." message ;; if the doc-view buffer is not shown in the selected window ;; which can happen due to auto-reverting the buffer (bug#79145). - (let ((inhibit-message - (not (eq (selected-window) - (get-buffer-window (current-buffer) - (selected-frame)))))) + (let ((inhibit-message (not (eq (current-buffer) + (window-buffer))))) (doc-view-buffer-message) (setf (doc-view-current-page) (or (doc-view-current-page) 1)) (if (doc-view-already-converted-p)