org-rmail.el: Use `rmail-widen' instead of `widen'

* org-rmail.el (org-rmail-follow-link): Use `rmail-widen'
instead of `widen' and don't toggle header as `rmail-widen'
already takes care of this.

TINYCHANGE

--
T.F. Torrey
This commit is contained in:
T.F. Torrey 2012-08-08 16:00:39 -06:00 committed by Bastien Guerry
parent 1b042ea709
commit a4e3ed9a2f
1 changed files with 1 additions and 3 deletions

View File

@ -101,9 +101,7 @@
(rmail (if (string= folder "RMAIL") rmail-file-name folder))
(setq message-number
(save-restriction
(widen)
(when (eq rmail-header-style 'normal)
(rmail-toggle-header -1))
(rmail-widen)
(goto-char (point-max))
(if (re-search-backward
(concat "^Message-ID:\\s-+" (regexp-quote