From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 58e6235: * lisp/image-mode.el: Support encrypted file Date: Mon, 16 Nov 2015 23:56:34 -0500 Message-ID: References: <20151117024921.17288.30331@vcs.savannah.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1447736219 31490 80.91.229.3 (17 Nov 2015 04:56:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Nov 2015 04:56:59 +0000 (UTC) Cc: Daiki Ueno To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 17 05:56:50 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZyYK1-0001Dx-26 for ged-emacs-devel@m.gmane.org; Tue, 17 Nov 2015 05:56:49 +0100 Original-Received: from localhost ([::1]:55672 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyYK0-0000TV-1c for ged-emacs-devel@m.gmane.org; Mon, 16 Nov 2015 23:56:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33516) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyYJw-0000SQ-5i for emacs-devel@gnu.org; Mon, 16 Nov 2015 23:56:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZyYJv-00011X-1G for emacs-devel@gnu.org; Mon, 16 Nov 2015 23:56:44 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:35158) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyYJp-00010f-7X; Mon, 16 Nov 2015 23:56:37 -0500 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id tAH4uYsj019576; Mon, 16 Nov 2015 23:56:35 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 7B51F66157; Mon, 16 Nov 2015 23:56:34 -0500 (EST) In-Reply-To: (Daiki Ueno's message of "Tue, 17 Nov 2015 02:49:21 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5492=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5492> : inlines <4003> : streams <1539397> : uri <2084304> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:194628 Archived-At: > @@ -658,7 +658,12 @@ was inserted." > (not (and (boundp 'archive-superior-buffer) > archive-superior-buffer)) > (not (and (boundp 'tar-superior-buffer) > - tar-superior-buffer))))) > + tar-superior-buffer)) > + ;; This means the buffer holds the > + ;; decrypted content (bug#21870). > + (not (and (boundp 'epa-file-encrypt-to) > + (local-variable-p > + 'epa-file-encrypt-to)))))) > (file-or-data (if data-p > (string-make-unibyte > (buffer-substring-no-properties (point-min) (point-max))) Clearly, image-mode should not need to know about tar-mode, archive-mode, nor epa-mode, and instead there should be a way for those to indicate that the buffer's content is not available in the file via normal syscalls. Stefan