diff options
author | Ronan Waide <waider@waider.ie> | 2002-03-03 22:17:59 +0000 |
---|---|---|
committer | Ronan Waide <waider@waider.ie> | 2002-03-03 22:17:59 +0000 |
commit | 9d6b9064a6752fe246a8ab69f4145084a70abac0 (patch) | |
tree | 4892ad240cd778174aab184a4499ecb5f4af2dff /lisp/bbdb-gnus.el | |
parent | 040c0233e73f853f02a4bf53bfbe22c325a435f7 (diff) |
Use gnus-original-article-buffer instead of gnus-article-buffer
Diffstat (limited to 'lisp/bbdb-gnus.el')
-rw-r--r-- | lisp/bbdb-gnus.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/bbdb-gnus.el b/lisp/bbdb-gnus.el index aaf1378..a8d7bed 100644 --- a/lisp/bbdb-gnus.el +++ b/lisp/bbdb-gnus.el @@ -50,7 +50,6 @@ (defun bbdb/gnus-get-message-id () "Return the message-id of the current message." (save-excursion - (set-buffer (get-buffer gnus-article-buffer)) (set-buffer gnus-original-article-buffer) (goto-char (point-min)) (let ((case-fold-search t)) @@ -113,7 +112,7 @@ C-g again it will stop scanning." (msg-id (bbdb/gnus-get-message-id)) records cache) (save-excursion - (set-buffer (get-buffer gnus-article-buffer)) + (set-buffer gnus-original-article-buffer) (if (and msg-id (not bbdb/gnus-offer-to-create)) (setq cache (bbdb-message-cache-lookup msg-id))) @@ -403,8 +402,10 @@ This function is meant to be used with the user function defined in "Snarf signature from the corresponding *Article* buffer." (interactive) (save-excursion + ;; this is a little bogus, since it will remain set after you've + ;; quit Gnus (or gnus-article-buffer (error "Not in Gnus!")) - (set-buffer gnus-article-buffer) + (set-buffer gnus-original-article-buffer) (save-restriction (or (gnus-article-narrow-to-signature) (error "No signature!")) (bbdb-snarf-region (point-min) (point-max))))) @@ -500,7 +501,7 @@ addresses better than the traditionally static global scorefile." bbdb-display-layout)) (bbdb-auto-notes-alist nil)) (bbdb/gnus-pop-up-bbdb-buffer nil) - (set-buffer gnus-article-buffer) + (set-buffer gnus-original-article-buffer) (bbdb-show-all-recipients) )) |