Merge branch 'no-gnus' of https://git.gnus.org/gnus into no-gnus
[gnus] / lisp / gnus-sum.el
index d4fdfeb..6fff60f 100644 (file)
@@ -7354,7 +7354,7 @@ If FORCE (the prefix), also save the .newsrc file(s)."
 (defun gnus-handle-ephemeral-exit (quit-config)
   "Handle movement when leaving an ephemeral group.
 The state which existed when entering the ephemeral is reset."
-  (if (not (buffer-name (car quit-config)))
+  (if (not (buffer-live-p (car quit-config)))
       (gnus-configure-windows 'group 'force)
     (set-buffer (car quit-config))
     (unless (eq (cdr quit-config) 'group)
@@ -11581,8 +11581,7 @@ Returns nil if no thread was there to be shown."
         (beg (progn (beginning-of-line) (if (bobp) (point) (1- (point)))))
         (eoi (when end
                (if (fboundp 'next-single-char-property-change)
-                   (or (next-single-char-property-change end 'invisible)
-                       (point-max))
+                   (next-single-char-property-change end 'invisible)
                  (while (progn
                           (end-of-line 2)
                           (and (not (eobp))