From: Lars Ingebrigtsen <larsi@gnus.org>
To: Richard Stallman <rms@gnu.org>
Cc: 7287@debbugs.gnu.org
Subject: bug#7287: 24.0.50; epa-mail-decrypt changes the current major-mode
Date: Fri, 27 Sep 2019 17:48:30 +0200 [thread overview]
Message-ID: <87h84xkaep.fsf@gnus.org> (raw)
In-Reply-To: <m2r241pxpo.fsf@gmail.com> (Robert Pluim's message of "Fri, 27 Sep 2019 17:26:11 +0200")
Robert Pluim <rpluim@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
next prev parent reply other threads:[~2019-09-27 15:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-27 6:32 bug#7287: 24.0.50; epa Richard Stallman
2019-09-23 16:57 ` bug#7287: 24.0.50; epa-mail-decrypt changes the current major-mode Lars Ingebrigtsen
2019-09-27 11:05 ` Richard Stallman
2019-09-27 13:37 ` Lars Ingebrigtsen
2019-09-27 15:26 ` Robert Pluim
2019-09-27 15:48 ` Lars Ingebrigtsen [this message]
2019-09-28 1:32 ` Richard Stallman
2019-09-28 19:48 ` Lars Ingebrigtsen
2019-10-05 13:18 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h84xkaep.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=7287@debbugs.gnu.org \
--cc=rms@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.