Make gnus-summary-bookmark-make-record work for Emacs 23 as well.
[gnus] / lisp / gnus-sum.el
index 0d35592..ae29c17 100644 (file)
@@ -12645,7 +12645,10 @@ If ALL is a number, fetch this number of articles."
            (head    (gnus-summary-article-header art))
            (id      (mail-header-id head)))
       `(,subject
-        ,@(bookmark-make-record-default 'no-file 'no-context pos)
+       ,@(condition-case nil
+             (bookmark-make-record-default 'no-file 'no-context (point))
+           (wrong-number-of-arguments
+            (bookmark-make-record-default 'point-only)))
         (location . ,(format "Gnus-%s %s:%d:%s" buf grp art id))
         (group . ,grp) (article . ,art)
         (message-id . ,id) (handler . gnus-summary-bookmark-jump)))))