emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [EasyPG (epa)] Emacs can't save modified encrypted file


From: Christopher M. Miles
Subject: Re: [EasyPG (epa)] Emacs can't save modified encrypted file
Date: Fri, 05 May 2023 21:20:00 +0800
User-agent: mu4e 1.10.3; emacs 30.0.50

Ihor Radchenko <yantar92@posteo.net> writes:

> "Christopher M. Miles" <numbchild@gmail.com> writes:
>
>> - [X] Then I check out Emacs source code file "epg.el" & "epa.el" file
>>   git log. -> have not found obvious gpg command-line options related to
>>   the problem. One small possible commit might be
>>   "82388dff8ed006cecb65ea7a4afd8667ec44b5e3".
>
> One of the reddit comments mentioned that the newer gpg hangs when not
> provided input. If this is true, I notice that `epg-start-encrypt' first
> calls (epg-wait-for-status context '("BEGIN_SIGNING")) and only then
> sends the buffer string for encryption (process-send-string).

Indeed, I'm superised by myself that haven't notice this steps.

(epg-wait-for-status context '("BEGIN_ENCRYPTION")), it suspended and
wair for "BEGIN_ENCRYPTION" input. But The real input is from bellowing
(process-send-string (epg-context-process context) (epg-data-string plain)).

Finally found the reason in Elisp code.

I will send this update info to Emacs bug report.

Attachment: Screenshot 2023-05-05 at 21.14.06@2x.png
Description:

Attachment: Screenshot 2023-05-05 at 21.24.44@2x.png
Description:


-- 

[ stardiviner ]
I try to make every word tell the meaning that I want to express without 
misunderstanding.

Blog: https://stardiviner.github.io/
IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]