[Top][All Lists]

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

[Emacs-diffs] master b0d261e: (gnus-group-goto-group): Return correct va

From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master b0d261e: (gnus-group-goto-group): Return correct value after previous patch
Date: Mon, 16 Apr 2018 20:12:00 -0400 (EDT)

branch: master
commit b0d261e29e5c1ffb9bc76e3519dd7525ab1edac4
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    (gnus-group-goto-group): Return correct value after previous patch
    * lisp/gnus/gnus-group.el (gnus-group-goto-group): Return the
    correct value after the previous patch.
 lisp/gnus/gnus-group.el | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el
index a53adec..271c3c8 100644
--- a/lisp/gnus/gnus-group.el
+++ b/lisp/gnus/gnus-group.el
@@ -2607,11 +2607,13 @@ If TEST-MARKED, the line must be marked."
        ;; Search through the entire buffer.
-       (unless (gnus-goto-char
-                (text-property-any
-                 (point-min) (point-max)
-                 'gnus-group (gnus-intern-safe group gnus-active-hashtb)))
-         (goto-char start)))))))
+       (if (gnus-goto-char
+            (text-property-any
+             (point-min) (point-max)
+             'gnus-group (gnus-intern-safe group gnus-active-hashtb)))
+           (point)
+         (goto-char start)
+         nil))))))
 (defun gnus-group-next-group (n &optional silent)
   "Go to next N'th newsgroup.

reply via email to

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