From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Colin Baxter Newsgroups: gmane.emacs.help Subject: Re: Stop emacs caching gpg keys Date: Sat, 30 Jan 2021 16:06:45 +0000 Message-ID: <87o8h6wgru.fsf@yandex.com> References: <87y2gasafq.fsf@yandex.com> <87v9bemncn.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40716"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 30 17:08:49 2021 Return-path: Envelope-to: geh-help-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 1l5snp-000AVh-Mu for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 30 Jan 2021 17:08:49 +0100 Original-Received: from localhost ([::1]:45866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5sno-00018y-O4 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 30 Jan 2021 11:08:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56600) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5smH-00017g-EO for help-gnu-emacs@gnu.org; Sat, 30 Jan 2021 11:07:13 -0500 Original-Received: from forward100o.mail.yandex.net ([2a02:6b8:0:1a2d::600]:60963) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5sm5-0003PN-Ug for help-gnu-emacs@gnu.org; Sat, 30 Jan 2021 11:07:13 -0500 Original-Received: from iva3-cc9be56f0d4c.qloud-c.yandex.net (iva3-cc9be56f0d4c.qloud-c.yandex.net [IPv6:2a02:6b8:c0c:8a96:0:640:cc9b:e56f]) by forward100o.mail.yandex.net (Yandex) with ESMTP id 321134AC0073 for ; Sat, 30 Jan 2021 19:06:47 +0300 (MSK) Original-Received: from iva7-f62245f79210.qloud-c.yandex.net (iva7-f62245f79210.qloud-c.yandex.net [2a02:6b8:c0c:2e83:0:640:f622:45f7]) by iva3-cc9be56f0d4c.qloud-c.yandex.net (mxback/Yandex) with ESMTP id YRODXvH6F5-6lHi0Bqn; Sat, 30 Jan 2021 19:06:47 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1612022807; bh=cZx9KFjvrIM/BsK75HvHAS4YTyVqBh3sWQ6gBtY7C+g=; h=In-Reply-To:Subject:To:From:Message-ID:Cc:Date:References; b=ijfWkgINJ5fChuysMs6auHaZZhpmkv7Eq3hawbBT9xpxCgkkJzjU2NNJ3gJedqwtI Y/TS64YGi5LT1j7muPKDuAGs2/yjdbVeGqVJQVsqYcVe2D7fHO0wiBHvB5PAP+c6ES G9mWtu5Er5eKJNjmKcOUFmNDdFHOW3wW1ywQHJF4= Authentication-Results: iva3-cc9be56f0d4c.qloud-c.yandex.net; dkim=pass header.i=@yandex.com Original-Received: by iva7-f62245f79210.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id HJe1juzxq2-6kn4XmAK; Sat, 30 Jan 2021 19:06:46 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) X-Face: BHjiJOg/Qmj'BQgsAKL@])L)e62P)C"Y=6T In-Reply-To: <87v9bemncn.fsf@zoho.eu> (moasenwood's message of "Sat, 30 Jan 2021 16:54:48 +0100") Face: iVBORw0KGgoAAAANSUhEUgAAAGQAAAAeBAMAAAAodabAAAAAB3RJTUUH1wQdAAY04/L8hgAA AAlwSFlzAAAewQAAHsEBw2lUUwAAAARnQU1BAACxjwv8YQUAAAASUExURc7OzpwAAAAAAP////8A AGNj/2aqqTQAAAA8SURBVHjaYzA2NnEBAmdj01D8wNgYpM7F2JiBgYFREAgEGJiU8AMGBpA6QaCG UVtGbRm1ZdSWUVsGjS0Aq20lJnMawnkAAAAASUVORK5CYII= Received-SPF: pass client-ip=2a02:6b8:0:1a2d::600; envelope-from=m43cap@yandex.com; helo=forward100o.mail.yandex.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:127450 Archived-At: >>>>> moasenwood--- via Users list for the GNU Emacs text editor writes: > Colin Baxter wrote: >> This is not so straightforward if I encrypt a file using >> emacs. On saving, and removing the buffer, a supposedly encrypted >> file can be opened without the need to enter a password. Of >> course, I can open a shell within emacs and run 'gpgconf --kill >> gpg-agent' in order to clear the cache. > What do you do to encrypt from Emacs? I do everything in emacs - don't you :-). Seriously, my use of emacs is to encrypt org files. >> But is there a simpler way - an elisp way - of achieving the same >> result? > There is always `shell-command', I guess... Yes, but do you know of any elisp hook that I could use to call the shell-command, say whenever I close a encrypted buffer? Best wishes,