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: Sat, 12 Feb 2011 06:56:47 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <8762spo1gw.fsf@lifelogs.com> References: <87oc6jav1s.fsf@gmail.com> <87k4h6sahe.fsf@gmail.com> <87sjvuxs80.fsf@lifelogs.com> <87aai2s2nu.fsf@gmail.com> <87oc6iw75t.fsf@lifelogs.com> <87mxm285jp.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297515440 20535 80.91.229.12 (12 Feb 2011 12:57:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Feb 2011 12:57:20 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 12 13:57:17 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 1PoF2J-0006ZR-Qb for ged-emacs-devel@m.gmane.org; Sat, 12 Feb 2011 13:57:16 +0100 Original-Received: from localhost ([127.0.0.1]:47453 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PoF2B-00027x-FE for ged-emacs-devel@m.gmane.org; Sat, 12 Feb 2011 07:57:07 -0500 Original-Received: from [140.186.70.92] (port=49337 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PoF26-00027p-Ce for emacs-devel@gnu.org; Sat, 12 Feb 2011 07:57:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PoF25-0006Ic-5L for emacs-devel@gnu.org; Sat, 12 Feb 2011 07:57:02 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:50010) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PoF24-0006I1-Pd for emacs-devel@gnu.org; Sat, 12 Feb 2011 07:57:01 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PoF22-0006Xb-U3 for emacs-devel@gnu.org; Sat, 12 Feb 2011 13:56:58 +0100 Original-Received: from c-67-186-102-106.hsd1.il.comcast.net ([67.186.102.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Feb 2011 13:56:58 +0100 Original-Received: from tzz by c-67-186-102-106.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Feb 2011 13:56:58 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-67-186-102-106.hsd1.il.comcast.net 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:Bt/qNLw+8g6T4scf8uCBf9uvrX4= 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:135940 Archived-At: On Fri, 11 Feb 2011 19:23:06 -0500 Chong Yidong wrote: CY> I think TV is using the emacs-23 branch, where the TRASH parameter is CY> not present. I've changed EPA and EPG to bind delete-by-moving-to-trash CY> to nil there. No fix is necessary for the trunk, IIUC. A good reason to use M-x report-emacs-bug which collects the version :) I still don't understand the parameter definition and would appreciate some guidance. How does TRASH get set based on called-interactively-p, as claimed by the docstring? DEFUN ("delete-file", Fdelete_file, Sdelete_file, 1, 2, "(list (read-file-name \ (if (and delete-by-moving-to-trash (null current-prefix-arg)) \ \"Move file to trash: \" \"Delete file: \") \ nil default-directory (confirm-nonexistent-file-or-buffer)) \ (null current-prefix-arg))", doc: /* Delete file named FILENAME. If it is a symlink, remove the symlink. If file has multiple names, it continues to exist with the other names. TRASH non-nil means to trash the file instead of deleting, provided `delete-by-moving-to-trash' is non-nil. When called interactively, TRASH is t if no prefix argument is given. With a prefix argument, TRASH is nil. */) I don't see anything in the body of the function to set TRASH, either. Is it claimed because we assume `current-prefix-arg' is always null non-interactively and `universal-arg' is always called interactively? Thanks Ted