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: delete-file to trash Date: Mon, 24 May 2010 09:16:44 -0400 Message-ID: References: <877hmvxyuv.fsf@stupidchicken.com> <87hblz1hxi.fsf@stupidchicken.com> <878w7amchf.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1274707013 18087 80.91.229.12 (24 May 2010 13:16:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 24 May 2010 13:16:53 +0000 (UTC) Cc: Leo , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 24 15:16:52 2010 connect(): No such file or directory 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 1OGXWW-00056s-2N for ged-emacs-devel@m.gmane.org; Mon, 24 May 2010 15:16:52 +0200 Original-Received: from localhost ([127.0.0.1]:34677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGXWV-0005YH-Eh for ged-emacs-devel@m.gmane.org; Mon, 24 May 2010 09:16:51 -0400 Original-Received: from [140.186.70.92] (port=33340 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGXWQ-0005YC-EM for emacs-devel@gnu.org; Mon, 24 May 2010 09:16:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGXWP-0001MR-12 for emacs-devel@gnu.org; Mon, 24 May 2010 09:16:46 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:45725 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGXWO-0001MN-Ss for emacs-devel@gnu.org; Mon, 24 May 2010 09:16:44 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEALIY+ktFpZMM/2dsb2JhbACeEXK+GYUTBIw/ X-IronPort-AV: E=Sophos;i="4.53,291,1272859200"; d="scan'208";a="64923272" Original-Received: from 69-165-147-12.dsl.teksavvy.com (HELO pastel.home) ([69.165.147.12]) by ironport2-out.pppoe.ca with ESMTP; 24 May 2010 09:16:44 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 5C4F58266; Mon, 24 May 2010 09:16:44 -0400 (EDT) In-Reply-To: <878w7amchf.fsf@stupidchicken.com> (Chong Yidong's message of "Sun, 23 May 2010 19:20:44 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:125163 Archived-At: > Yeah, there are commands (e.g. shell-command-on-region and clone-buffer) > for which an omitted prefix argument means t. I was hoping we could Yes, it's even the recommended way to detect interactive calls (as explained in the docstring of called-interactively-p): This function is meant for implementing advice and other function-modifying features. Instead of using this, it is sometimes cleaner to give your function an extra optional argument whose `interactive' spec specifies non-nil unconditionally ("p" is a good way to do this), or via (not (or executing-kbd-macro noninteractive)). -- Stefan