From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.bugs Subject: bug#63256: 30.0.50; EasyPG seems has a bug on saving the encrypted file buffer Date: Fri, 05 May 2023 17:09:32 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27964"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 63256@debbugs.gnu.org To: stardiviner Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 05 16:10:14 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1puw8R-0006xy-Ix for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 May 2023 16:10:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1puw8K-0003bZ-G2; Fri, 05 May 2023 10:10:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1puw8I-0003b1-D6 for bug-gnu-emacs@gnu.org; Fri, 05 May 2023 10:10:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1puw8I-0007hg-3x for bug-gnu-emacs@gnu.org; Fri, 05 May 2023 10:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1puw8H-0007mz-Vs for bug-gnu-emacs@gnu.org; Fri, 05 May 2023 10:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Filipp Gunbin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 May 2023 14:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63256 X-GNU-PR-Package: emacs Original-Received: via spool by 63256-submit@debbugs.gnu.org id=B63256.168329578729908 (code B ref 63256); Fri, 05 May 2023 14:10:01 +0000 Original-Received: (at 63256) by debbugs.gnu.org; 5 May 2023 14:09:47 +0000 Original-Received: from localhost ([127.0.0.1]:57180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puw82-0007mJ-MN for submit@debbugs.gnu.org; Fri, 05 May 2023 10:09:46 -0400 Original-Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:58465) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puw80-0007m0-0F for 63256@debbugs.gnu.org; Fri, 05 May 2023 10:09:45 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id D9152320055E; Fri, 5 May 2023 10:09:36 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 05 May 2023 10:09:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1683295776; x=1683382176; bh=0k uOK4useFQraO0vvX+SJlxy9mHgSYeJZ2mL77iN48Q=; b=KzyF2ZJQPX5JLKl737 Kfcpq+qeKrqB8oviuUe7QhHqMfDyKq81TjpptmyZlT3ySvBIwiRumVV308XoBIAL ssL05SCG8EUf+Vwu0L+xT/Sumx2fXVmjr4uEriTwrXhssXHILiT0QyPyOubpP2wi TaHPHiF9gAFlDx8QxKaRoBWOz22K5HYhmhqw5BqT6x0iWIVq7m7n4gfk6MNbZgJH YzxsXdWcKgqO2QTM5EwHkEMYhoVxcpgrJ5NvAdEapa5oU91LZk4w+fhJLoUURi49 8tl8yd+SXGrZAfA4V9axYs5VUDMXinnn45fnIL2ME+NzHDQwdWzkTL2CK0qlNJpa M52Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1683295776; x=1683382176; bh=0kuOK4useFQra O0vvX+SJlxy9mHgSYeJZ2mL77iN48Q=; b=Ah6nQ8pnbTxvZGVhzadKNCxg2H5L9 geK3Bc3bSPVdaULPtCJtWB2404SgG5QWok2q6sAv70dYQ0sMtGl5yqZ9bl3lCpG0 SQOOdFFuhng2PZ8WUVxtHVvOna4X83k9d4HcVi9S1ShVRvWExE2VHBrspYfmIOC9 PISY2OcxQ7m0KgZTrYgvw59xwiK13bEZIQPKGokHUdSZ7Vw5xB7tV1ROb8wo9JMm igc9wTesgC3qArMms3EdW/Wp2CNao6j/ce46/l93tSgqTlj+qDbj5X4/4AYwcdq8 jn7xe6wRBwuZrf7IGFypq0vxGEB9SfBCN2Bqt7crPGXGcsXlHAMnBD4PA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeefvddgjeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufgjfhgffffkgggtsehttd ertddtredtnecuhfhrohhmpefhihhlihhpphcuifhunhgsihhnuceofhhguhhnsghinhes fhgrshhtmhgrihhlrdhfmheqnecuggftrfgrthhtvghrnhepjedvveeuveeukeelueeuhe etfffhfeegffelgfeiheejueevleduhfeffeeiteehnecuffhomhgrihhnpehfihhlvgdr ohhrghdpghhnuhhpghdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehfghhunhgsihhnsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Feedback-ID: id48c41f1:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 5 May 2023 10:09:35 -0400 (EDT) In-Reply-To: (stardiviner's message of "Thu, 4 May 2023 11:25:10 +0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:261108 Archived-At: Hi, On 04/05/2023 11:25 +0800, stardiviner wrote: [...] > 1. gpg encrypt a plain text file into "file.org.gpg" with the command "gpg > -e file.org" > 2. `$ emacs -Q` press keybinding [C-x C-f] to open the encrypted file > "file.org.gpg" > 3. modify the file buffer > 4. Emacs press [C-x C-s] to save the buffer > 5. Emacs suspends lost response. Buffer mode-line status is still > "modified". [...] Yes, I've just reported it to GnuPG: https://dev.gnupg.org/T6481. Let's see what they say. There's --command-fd option which allows to separate command input from data input, then we perhaps can avoid waiting for BEGIN_ENCRYPTION before sending data. But I don't know how to use it from Emacs side: we need something resembling coreutils's mkfifo, which we open for writing in Emacs (like a process), and pass it's fd to gpg. I'm not expert in these things. Maybe someone else here has ideas. Filipp