From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: File modes facilities. Date: Mon, 24 Oct 2005 16:16:32 +0200 Message-ID: <85mzkz3sqn.fsf@lola.goethe.zz> References: <87hdbdxo94.fsf@mahaena.lrde> <877jc92o37.fsf@mahaena.lrde> <17238.50816.352274.312799@kahikatea.snap.net.nz> <87u0fd9let.fsf@mahaena.lrde> <87oe5jmu9j.fsf-monnier+emacs@gnu.org> <87y84n81q2.fsf@mahaena.lrde> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130163699 26503 80.91.229.2 (24 Oct 2005 14:21:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 Oct 2005 14:21:39 +0000 (UTC) Cc: rms@gnu.org, schwab@suse.de, michael.cadilhac-@t-lrde.epita.fr, emacs-devel@gnu.org, monnier@iro.umontreal.ca, eliz@gnu.org, snogglethorpe@gmail.com, miles@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 24 16:21:26 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EU3B2-0005qp-In for ged-emacs-devel@m.gmane.org; Mon, 24 Oct 2005 16:19:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EU3B1-0004DU-TH for ged-emacs-devel@m.gmane.org; Mon, 24 Oct 2005 10:19:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EU386-0003Ts-88 for emacs-devel@gnu.org; Mon, 24 Oct 2005 10:16:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EU385-0003TW-Jp for emacs-devel@gnu.org; Mon, 24 Oct 2005 10:16:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EU385-0003TR-FY for emacs-devel@gnu.org; Mon, 24 Oct 2005 10:16:49 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EU385-00031Q-Gj for emacs-devel@gnu.org; Mon, 24 Oct 2005 10:16:49 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1EU37u-0007v7-79; Mon, 24 Oct 2005 10:16:42 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 470F71C4CD7D; Mon, 24 Oct 2005 16:16:32 +0200 (CEST) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "Mon, 24 Oct 2005 16:02:38 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:44723 Archived-At: storm@cua.dk (Kim F. Storm) writes: > Below is a _much_better_ patch which allows ANY function to have its > interactive specification overridden, and consequently you can make > any function into a command. > > Here are some trivial examples: > > (put 'set-file-modes 'interactive > '(list (read-file-name "Set modes on file: ") > (read-number "New modes (decimal): "))) Would one not rather write (put 'set-file-modes 'interactive #'(list (read-file-name "Set modes on file: ") (read-number "New modes (decimal): "))) so that the byte compiler will do its job there? -- David Kastrup, Kriemhildstr. 15, 44793 Bochum