diff options
| author | Tassilo Horn | 2009-06-05 07:25:56 +0000 |
|---|---|---|
| committer | Tassilo Horn | 2009-06-05 07:25:56 +0000 |
| commit | a5a79894f66d9e32df412322f5420dcf66a88b83 (patch) | |
| tree | 0677745cd7fa22c23c415edb103469d00e7f3254 | |
| parent | 42481bde613cc36ac718954aa3d9f6837a476d3a (diff) | |
| download | emacs-a5a79894f66d9e32df412322f5420dcf66a88b83.tar.gz emacs-a5a79894f66d9e32df412322f5420dcf66a88b83.zip | |
Fix bug where org-gnus-store-link used wrong subject when called in an article
buffer. Patch provided by fengli AT gmail DOT com.
| -rw-r--r-- | lisp/org/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/org/org-gnus.el | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/org/ChangeLog b/lisp/org/ChangeLog index 9617837b37d..74150d9de13 100644 --- a/lisp/org/ChangeLog +++ b/lisp/org/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2009-06-05 Tassilo Horn <tassilo@member.fsf.org> | ||
| 2 | |||
| 3 | * org-gnus.el (org-gnus-store-link): Fix bug where | ||
| 4 | org-gnus-store-link used wrong subject when called in an article | ||
| 5 | buffer. Patch provided by fengli AT gmail DOT com. | ||
| 6 | |||
| 1 | 2009-03-13 D. Goel <deego3@gmail.com> | 7 | 2009-03-13 D. Goel <deego3@gmail.com> |
| 2 | 8 | ||
| 3 | * org-bbdb.el: When calling (multiple-value-bind/setq .. ls) | 9 | * org-bbdb.el: When calling (multiple-value-bind/setq .. ls) |
diff --git a/lisp/org/org-gnus.el b/lisp/org/org-gnus.el index 9d97519e660..6ef5778d543 100644 --- a/lisp/org/org-gnus.el +++ b/lisp/org/org-gnus.el | |||
| @@ -133,7 +133,9 @@ If `org-store-link' was called with a prefix arg the meaning of | |||
| 133 | (to (mail-header 'to header)) | 133 | (to (mail-header 'to header)) |
| 134 | (newsgroups (mail-header 'newsgroups header)) | 134 | (newsgroups (mail-header 'newsgroups header)) |
| 135 | (x-no-archive (mail-header 'x-no-archive header)) | 135 | (x-no-archive (mail-header 'x-no-archive header)) |
| 136 | (subject (gnus-summary-subject-string)) | 136 | (subject (if (eq major-mode 'gnus-article-mode) |
| 137 | (message-fetch-field "subject") | ||
| 138 | (gnus-summary-subject-string))) | ||
| 137 | desc link) | 139 | desc link) |
| 138 | (org-store-link-props :type "gnus" :from from :subject subject | 140 | (org-store-link-props :type "gnus" :from from :subject subject |
| 139 | :message-id message-id :group group :to to) | 141 | :message-id message-id :group group :to to) |