From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: # in my waste basket Date: Wed, 14 Oct 2009 19:23:01 +0900 Message-ID: <87vdiiff5m.fsf@uwakimon.sk.tsukuba.ac.jp> References: <87tyy2lae7.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1255515437 14982 80.91.229.12 (14 Oct 2009 10:17:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Oct 2009 10:17:17 +0000 (UTC) Cc: Lennart Borgman , Emacs-Devel devel To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 14 12:17:06 2009 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.50) id 1My0tL-0006SH-WE for ged-emacs-devel@m.gmane.org; Wed, 14 Oct 2009 12:15:36 +0200 Original-Received: from localhost ([127.0.0.1]:60008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1My0tK-0001ys-I0 for ged-emacs-devel@m.gmane.org; Wed, 14 Oct 2009 06:15:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1My0tB-0001x4-Ge for emacs-devel@gnu.org; Wed, 14 Oct 2009 06:15:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1My0t6-0001th-Hx for emacs-devel@gnu.org; Wed, 14 Oct 2009 06:15:24 -0400 Original-Received: from [199.232.76.173] (port=58201 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1My0t5-0001tR-Jv for emacs-devel@gnu.org; Wed, 14 Oct 2009 06:15:19 -0400 Original-Received: from mtps02.sk.tsukuba.ac.jp ([130.158.97.224]:55947) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1My0t4-00012g-Vl for emacs-devel@gnu.org; Wed, 14 Oct 2009 06:15:19 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps02.sk.tsukuba.ac.jp (Postfix) with ESMTP id 80BAA820E; Wed, 14 Oct 2009 19:15:14 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id BB13B11F03A; Wed, 14 Oct 2009 19:23:01 +0900 (JST) In-Reply-To: <87tyy2lae7.fsf@thinkpad.tsdh.de> X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta29) "garbanzo" baeb249ab9b1+ XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:116133 Archived-At: Tassilo Horn writes: > IMO, moving files to the trash can should be done only if a user > does it interactively in dired or by invoking things like > delete-file directly. `delete-file' should make the decision based on whether it is called-interactively-p. `dired-remove-file' can use `call-interactively' to pass that information to it. Dired is a special case, since it acts as a "UI agent" for the user. > On the other hand, when I do M-x gnus-agent-expire it is also an > interactive call, But the calls to `delete-file' it makes are *not* called-interactively-p. I won't say this works for sure, but I think there's a pretty good chance that it does. (Ie, Dired is unusual in needing to use `call-interactively' to DTRT.)