]> git.eshelyaron.com Git - emacs.git/commitdiff
Make gnus-summary-bookmark-make-record work for Emacs 23 as well.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 15 Jul 2010 00:54:06 +0000 (00:54 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 15 Jul 2010 00:54:06 +0000 (00:54 +0000)
2010-07-15  Katsumi Yamaoka  <yamaoka@jpl.org>
 * gnus-sum.el (gnus-summary-bookmark-make-record): Make it work for
 Emacs 23 as well.

lisp/gnus/ChangeLog
lisp/gnus/gnus-sum.el

index dc3d28ec44da19d5d86046ac8b90177ac35cc9ac..4e172cc8064147e3c3d6cf88650a9b70c0cfe7d6 100644 (file)
@@ -1,4 +1,9 @@
-2010-07-13  Thierry Volpiatto <thierry.volpiatto@gmail.com>
+2010-07-15  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-sum.el (gnus-summary-bookmark-make-record): Make it work for
+       Emacs 23 as well.
+
+2010-07-13  Thierry Volpiatto  <thierry.volpiatto@gmail.com>
 
        Allow C-w when setting a bookmark in a Gnus Article buffer (Bug#5975).
        Patch applied by Karl Fogel.
 
        * gnus-art.el (bookmark-make-record-function): New local variable.
 
-       * gnus-sum.el (gnus-summary-bookmark-make-record): Allow setting
-       from article buffer.
+       * gnus-sum.el (gnus-summary-bookmark-make-record): Allow setting from
+       article buffer.
        (gnus-summary-bookmark-jump): Maybe jump to article buffer.
 
 2010-07-13  Karl Fogel  <kfogel@red-bean.com>
 
-       * gnus/gnus-sum.el (bookmark-make-record-default): Adjust
-       declaration, based on changes in bookmark.el.
+       * gnus-sum.el (bookmark-make-record-default): Adjust declaration, based
+       on changes in bookmark.el.
 
 2010-06-22  Mark A. Hershberger  <mah@everybody.org>
 
index 0d3559227b61f9ad7153f1736f15f62967bf4ffc..ae29c17ae18c869e9cbe82a3f589178df1072814 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)))))