unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#7287: 24.0.50; epa
@ 2010-10-27  6:32 Richard Stallman
  2019-09-23 16:57 ` bug#7287: 24.0.50; epa-mail-decrypt changes the current major-mode Lars Ingebrigtsen
  0 siblings, 1 reply; 9+ messages in thread
From: Richard Stallman @ 2010-10-27  6:32 UTC (permalink / raw)
  To: 7287

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug.  If you can, give
a recipe starting from `emacs -Q':

With Epa Mail mode, after C-c C-e d, the buffer with the
decrypted message seems to be in Info mode.  That is not helpful.
mailcrypt-decrypt puts the decrypted buffer in Rmail mode
(at least when coming from Rmail mode), and that's what
Epa Mail mode should do.

Ideally it should use whatever mode the user was using
for the buffer that has the message, and it should copy
the parts of the buffer that didn't need decryption.


If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/home/rms/emacs-bzr/trunk/etc/DEBUG.


In GNU Emacs 24.0.50.1 (mips64el-unknown-linux-gnu, GTK+ Version 2.12.12)
 of 2010-10-10 on theobromine2
configured using `configure  'CFLAGS=-g''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Info

Minor modes in effect:
  gpm-mouse-mode: t
  display-battery-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent input:
RET n C-x 0 C-a C-u C-u C-n C-u C-n C-n C-u C-v C-u 
C-v C-u C-n C-u C-n C-n C-@ C-n r ESC w ESC < ESC x 
r e s e n d SPC m e ESC DEL ESC DEL r e p o r t SPC 
e m a s DEL c s TAB RET

Recent messages:
Wrote /home/rms/RMAIL [2 times]
Expunging deleted messages...done
Making completion list...
Quit
epa-mail mode enabled
Decrypting...done
Replace the original text? (y or n)  n
Mark set
call-interactively: Buffer is read-only: #<buffer *Temp*>
Mark set

Load-path shadows:
None found.

Features:
(shadow emacsbug two-column kmacro iso-transl epa-mail epa derived epg
epg-config info image-mode utf-7 novice parse-time vc-cvs sgml-mode
etags rmailkwd mh-e mh-compat mailabbrev mh-acros cl mh-buffers
mh-loaddefs gnus gnus-ems nnheader gnus-util mm-util mail-prsvr
wid-edit ispell cal-move cal-menu calendar cal-loaddefs mule-util
quail grep compile help-mode view dabbrev rmailout multi-isearch
newcomment mailalias sendmail dired t-mouse finder-inf package
rmailedit rmail mail-utils battery paren cus-start cus-load mailcrypt
rfc822 comint regexp-opt ring easymenu mailcrypt-init tooltip
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image fringe lisp-mode register page menu-bar rfn-eshadow
timer select scroll-bar mouse jit-lock font-lock syntax facemenu
font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan
thai tai-viet lao korean japanese hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces
cus-face files text-properties overlay md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote
make-network-process dbusbind dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)


-- 
Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org, www.gnu.org





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#7287: 24.0.50; epa-mail-decrypt changes the current major-mode
  2010-10-27  6:32 bug#7287: 24.0.50; epa Richard Stallman
@ 2019-09-23 16:57 ` Lars Ingebrigtsen
  2019-09-27 11:05   ` Richard Stallman
  0 siblings, 1 reply; 9+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-23 16:57 UTC (permalink / raw)
  To: Richard Stallman; +Cc: 7287

Richard Stallman <rms@gnu.org> writes:

> With Epa Mail mode, after C-c C-e d, the buffer with the
> decrypted message seems to be in Info mode.  That is not helpful.
> mailcrypt-decrypt puts the decrypted buffer in Rmail mode
> (at least when coming from Rmail mode), and that's what
> Epa Mail mode should do.
>
> Ideally it should use whatever mode the user was using
> for the buffer that has the message, and it should copy
> the parts of the buffer that didn't need decryption.

Do you still see this bug?  If so, do you have a recipe for how to
reproduce this bug?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#7287: 24.0.50; epa-mail-decrypt changes the current major-mode
  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
  0 siblings, 1 reply; 9+ messages in thread
From: Richard Stallman @ 2019-09-27 11:05 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 7287

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > Do you still see this bug?  If so, do you have a recipe for how to
  > reproduce this bug?

I have forgotten how to use Epa Mail mode.  Can you tell me how?

-- 
Dr Richard Stallman
Founder, Free Software Foundation (https://gnu.org, https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)







^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#7287: 24.0.50; epa-mail-decrypt changes the current major-mode
  2019-09-27 11:05   ` Richard Stallman
@ 2019-09-27 13:37     ` Lars Ingebrigtsen
  2019-09-27 15:26       ` Robert Pluim
  0 siblings, 1 reply; 9+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-27 13:37 UTC (permalink / raw)
  To: Richard Stallman; +Cc: 7287

Richard Stallman <rms@gnu.org> writes:

>   > Do you still see this bug?  If so, do you have a recipe for how to
>   > reproduce this bug?
>
> I have forgotten how to use Epa Mail mode.  Can you tell me how?

No, that's what I was hoping you could tell me so that I could try to
debug it.  :-)

But if somebody else knows how to, please jump in.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#7287: 24.0.50; epa-mail-decrypt changes the current major-mode
  2019-09-27 13:37     ` Lars Ingebrigtsen
@ 2019-09-27 15:26       ` Robert Pluim
  2019-09-27 15:48         ` Lars Ingebrigtsen
  2019-09-28  1:32         ` Richard Stallman
  0 siblings, 2 replies; 9+ messages in thread
From: Robert Pluim @ 2019-09-27 15:26 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Richard Stallman, 7287

>>>>> On Fri, 27 Sep 2019 15:37:46 +0200, Lars Ingebrigtsen <larsi@gnus.org> said:

    Lars> Richard Stallman <rms@gnu.org> writes:
    >> > Do you still see this bug?  If so, do you have a recipe for how to
    >> > reproduce this bug?
    >> 
    >> I have forgotten how to use Epa Mail mode.  Can you tell me how?

    Lars> No, that's what I was hoping you could tell me so that I could try to
    Lars> debug it.  :-)

    Lars> But if somebody else knows how to, please jump in.

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.

I think you can close this bug.

Robert





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#7287: 24.0.50; epa-mail-decrypt changes the current major-mode
  2019-09-27 15:26       ` Robert Pluim
@ 2019-09-27 15:48         ` Lars Ingebrigtsen
  2019-09-28  1:32         ` Richard Stallman
  1 sibling, 0 replies; 9+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-27 15:48 UTC (permalink / raw)
  To: Richard Stallman; +Cc: 7287

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





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#7287: 24.0.50; epa-mail-decrypt changes the current major-mode
  2019-09-27 15:26       ` Robert Pluim
  2019-09-27 15:48         ` Lars Ingebrigtsen
@ 2019-09-28  1:32         ` Richard Stallman
  2019-09-28 19:48           ` Lars Ingebrigtsen
  1 sibling, 1 reply; 9+ messages in thread
From: Richard Stallman @ 2019-09-28  1:32 UTC (permalink / raw)
  To: Robert Pluim; +Cc: larsi, 7287

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

How does "Epa Mail mode" relate to epa-mail-decrypt?
Are they the same thing?  Related?

I don't think I ever use "Epa Mail mode", but I depend on
epa-mail-decrypt to find and decrypt mime parts in Rmail.
It is called by rmail-epa-decrypt in rmail.el.

-- 
Dr Richard Stallman
Founder, Free Software Foundation (https://gnu.org, https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)







^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#7287: 24.0.50; epa-mail-decrypt changes the current major-mode
  2019-09-28  1:32         ` Richard Stallman
@ 2019-09-28 19:48           ` Lars Ingebrigtsen
  2019-10-05 13:18             ` Richard Stallman
  0 siblings, 1 reply; 9+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-28 19:48 UTC (permalink / raw)
  To: Richard Stallman; +Cc: Robert Pluim, 7287

Richard Stallman <rms@gnu.org> writes:

> How does "Epa Mail mode" relate to epa-mail-decrypt?
> Are they the same thing?  Related?

The Epa Mail mode has a key binding for the epa-mail-decrypt command.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#7287: 24.0.50; epa-mail-decrypt changes the current major-mode
  2019-09-28 19:48           ` Lars Ingebrigtsen
@ 2019-10-05 13:18             ` Richard Stallman
  0 siblings, 0 replies; 9+ messages in thread
From: Richard Stallman @ 2019-10-05 13:18 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: rpluim, 7287

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > > How does "Epa Mail mode" relate to epa-mail-decrypt?
  > > Are they the same thing?  Related?

  > The Epa Mail mode has a key binding for the epa-mail-decrypt command.

I see.  I just made my own key binding for this.

-- 
Dr Richard Stallman
Founder, Free Software Foundation (https://gnu.org, https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)







^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-10-05 13:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2019-09-28  1:32         ` Richard Stallman
2019-09-28 19:48           ` Lars Ingebrigtsen
2019-10-05 13:18             ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).