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: Wild idea for call-interactively [was: # in my waste basket] Date: Thu, 15 Oct 2009 01:50:33 +0900 Message-ID: <87oco9gbs6.fsf@uwakimon.sk.tsukuba.ac.jp> References: <87tyy2lae7.fsf@thinkpad.tsdh.de> <87vdiiff5m.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1255539127 1668 80.91.229.12 (14 Oct 2009 16:52:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Oct 2009 16:52:07 +0000 (UTC) Cc: Emacs-Devel devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 14 18:51:56 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 1My74t-0006Eq-SW for ged-emacs-devel@m.gmane.org; Wed, 14 Oct 2009 18:51:56 +0200 Original-Received: from localhost ([127.0.0.1]:50106 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1My74t-0005BB-6s for ged-emacs-devel@m.gmane.org; Wed, 14 Oct 2009 12:51:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1My6wE-0003LN-Am for emacs-devel@gnu.org; Wed, 14 Oct 2009 12:42:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1My6w7-0003Bz-GA for emacs-devel@gnu.org; Wed, 14 Oct 2009 12:42:55 -0400 Original-Received: from [199.232.76.173] (port=60713 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1My6w7-0003BI-3n for emacs-devel@gnu.org; Wed, 14 Oct 2009 12:42:51 -0400 Original-Received: from mtps02.sk.tsukuba.ac.jp ([130.158.97.224]:56676) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1My6w6-0008Q3-KW for emacs-devel@gnu.org; Wed, 14 Oct 2009 12:42:50 -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 4E1A17FFA; Thu, 15 Oct 2009 01:42:48 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 5C3DD129144; Thu, 15 Oct 2009 01:50:33 +0900 (JST) In-Reply-To: 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:116143 Archived-At: Stefan Monnier writes: > But with call-interactively, it can't specify the file to delete. D'oh. WIBNI you could? Ie, a list of arguments is passed to call-interactively along with the function to call. If an argument is non-nil, it is used as is. If it is nil, then call-interactively consults the interactive spec to find out how to get that argument. Or MIWNBN (maybe it would not be nice). BTW, I guess if the interactive spec is a function, then call-interactively calls the police instead, and you go to jail. :-) Or maybe it calls the function as usual and ignores the passed arguments. Or ... well, this is way too speculative. Make it an error to pass args to a function with an function for interactive spec.