]> git.eshelyaron.com Git - emacs.git/commitdiff
Slight gnus-util clean-up
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 11 Aug 2020 18:36:10 +0000 (20:36 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 11 Aug 2020 19:04:12 +0000 (21:04 +0200)
* lisp/gnus/gnus-util.el (gnus-message-with-timestamp-1):
messages-buffer is always defined.

lisp/gnus/gnus-util.el

index abe546b8cb671d264efbad059582b7a3bad8cabb..4876715ae6a0cddb77dc27b521492a0c02b64796 100644 (file)
@@ -455,9 +455,7 @@ displayed in the echo area."
                           (> message-log-max 0)
                           (/= (length str) 0))
                  (setq time (current-time))
-                 (with-current-buffer (if (fboundp 'messages-buffer)
-                                          (messages-buffer)
-                                        (get-buffer-create "*Messages*"))
+                 (with-current-buffer (messages-buffer)
                    (goto-char (point-max))
                    (let ((inhibit-read-only t))
                      (insert ,timestamp str "\n")