From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: bug: epg send unencrypted data in trash Date: Fri, 11 Feb 2011 16:14:22 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87oc6iw75t.fsf@lifelogs.com> References: <87oc6jav1s.fsf@gmail.com> <87k4h6sahe.fsf@gmail.com> <87sjvuxs80.fsf@lifelogs.com> <87aai2s2nu.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297462494 11511 80.91.229.12 (11 Feb 2011 22:14:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Feb 2011 22:14:54 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 11 23:14:50 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Po1GM-00057C-0M for ged-emacs-devel@m.gmane.org; Fri, 11 Feb 2011 23:14:50 +0100 Original-Received: from localhost ([127.0.0.1]:56831 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Po1GL-0003yd-Ft for ged-emacs-devel@m.gmane.org; Fri, 11 Feb 2011 17:14:49 -0500 Original-Received: from [140.186.70.92] (port=34112 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Po1GE-0003xu-Cx for emacs-devel@gnu.org; Fri, 11 Feb 2011 17:14:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Po1GD-0001Il-6T for emacs-devel@gnu.org; Fri, 11 Feb 2011 17:14:42 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:47268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Po1GC-0001Id-QQ for emacs-devel@gnu.org; Fri, 11 Feb 2011 17:14:40 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Po1G8-0004yO-5a for emacs-devel@gnu.org; Fri, 11 Feb 2011 23:14:36 +0100 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Feb 2011 23:14:36 +0100 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Feb 2011 23:14:36 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:5GNp4irhLq4Eh74qQvw24CDGDZM= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:135917 Archived-At: On Fri, 11 Feb 2011 22:05:09 +0100 Thierry Volpiatto wrote: TV> Ted Zlatanov writes: >> According to the docs for `delete-file' it shouldn't matter what >> `delete-by-moving-to-trash' says because this is called >> non-interactively (TRASH is nil when delete-file is called >> non-interactively). Or is this funcall interactive somehow? TV> I don't know, but actually without delete-by-moving-to-trash let-bound TV> to nil, non--encrypted data goes to trash. I think this is because in the C source (fileio.c) TRASH is set to "(null current-prefix-arg)" which is not equivalent to `called-interactively-p' AFAIK. IOW I think your fix is masking the underlying problem. But I don't know the C source so well so I could be misunderstanding things. Perhaps Chong Yidong, who created revision 100462 and introduced the TRASH parameter, can check it. Ted