Fix bug where org-gnus-store-link used wrong subject when called in an article

buffer.  Patch provided by fengli AT gmail DOT com.
This commit is contained in:
Tassilo Horn 2009-06-05 07:25:56 +00:00
parent 42481bde61
commit a5a79894f6
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2009-06-05 Tassilo Horn <tassilo@member.fsf.org>
* org-gnus.el (org-gnus-store-link): Fix bug where
org-gnus-store-link used wrong subject when called in an article
buffer. Patch provided by fengli AT gmail DOT com.
2009-03-13 D. Goel <deego3@gmail.com>
* org-bbdb.el: When calling (multiple-value-bind/setq .. ls)

View file

@ -133,7 +133,9 @@ If `org-store-link' was called with a prefix arg the meaning of
(to (mail-header 'to header))
(newsgroups (mail-header 'newsgroups header))
(x-no-archive (mail-header 'x-no-archive header))
(subject (gnus-summary-subject-string))
(subject (if (eq major-mode 'gnus-article-mode)
(message-fetch-field "subject")
(gnus-summary-subject-string)))
desc link)
(org-store-link-props :type "gnus" :from from :subject subject
:message-id message-id :group group :to to)