GNU bug report logs -
#7287
epa-mail-decrypt changes the current major-mode
Previous Next
Reported by: rms <at> gnu.org
Date: Wed, 27 Oct 2010 06:29:02 UTC
Severity: normal
Tags: fixed, moreinfo
Found in version 24.0.50
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #24 received at 7287 <at> debbugs.gnu.org (full text, mbox):
Robert Pluim <rpluim <at> gmail.com> writes:
> I think epa-mail-decrypt is either obsolete, or strongly deprecated,
> since everyone should be use message mode with mml tags to get proper
> MIME formatting, but hereʼs what I tried:
>
> Sent myself a message with inline OPENPGP
> Opened that with Gnus
> Told Gnus to *not* automatically decrypt the OPENPGP part :-)
> K-c to get a buffer with the encrypted text
> M-x epa-mail-mode
> C-c C-e C-d
>
> The end result was a buffer called '*decoded*' in fundamental mode,
> which is the same mode as what K-c used.
Thanks for the recipe.
I'm getting a different result -- after answering `n' to the question
Replace the original text? (y or n)
I get a buffer called " *Temp*" which is, indeed, in a buffer that say's
it's Info mode. Looking at the code, it's:
(defun epa-decrypt-region (start end &optional make-buffer-function)
"Decrypt the current region between START and END.
[...]
(with-output-to-temp-buffer "*Temp*"
(set-buffer standard-output)
(insert plain)
(epa-info-mode))))
And that mode is:
(define-derived-mode epa-info-mode special-mode "Info"
"Major mode for `epa-info-buffer'."
(buffer-disable-undo)
(setq truncate-lines t
buffer-read-only t))
So I think the fix here is just to change the lighter to "EPA Info" to
avoid this confusion.
I'm doing that and closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 5 years and 230 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.