org-contacts: Use with-current-buffer' instead of save-excursion'+`with-current-buffer'.

Signed-off-by: Michael Markert <markert.michael@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Michael Markert 2011-06-27 20:17:53 +02:00 committed by Julien Danjou
parent e585be0859
commit 6c12101c8c

View file

@ -418,8 +418,7 @@ This adds `org-contacts-gnus-check-mail-address' and
"Retrieve the content of the `From' header of an email. "Retrieve the content of the `From' header of an email.
Works from wl-summary-mode and mime-view-mode - that is while viewing email. Works from wl-summary-mode and mime-view-mode - that is while viewing email.
Depends on Wanderlust been loaded." Depends on Wanderlust been loaded."
(save-excursion (with-current-buffer (org-capture-get :original-buffer)
(set-buffer (org-capture-get :original-buffer))
(cond (cond
((eq major-mode 'wl-summary-mode) (when wl-summary-buffer-elmo-folder ((eq major-mode 'wl-summary-mode) (when wl-summary-buffer-elmo-folder
(elmo-message-field (elmo-message-field