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: File modes facilities. Date: Mon, 24 Oct 2005 19:02:41 -0400 Message-ID: <87oe5e5xll.fsf-monnier+emacs@gnu.org> 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> <87slur9e3f.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130195084 11553 80.91.229.2 (24 Oct 2005 23:04:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 Oct 2005 23:04:44 +0000 (UTC) Cc: rms@gnu.org, schwab@suse.de, michael.cadilhac-@t-lrde.epita.fr, emacs-devel@gnu.org, eliz@gnu.org, snogglethorpe@gmail.com, miles@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 25 01:04:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EUBLd-00029i-PX for ged-emacs-devel@m.gmane.org; Tue, 25 Oct 2005 01:03:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUBLc-0004Rz-Jm for ged-emacs-devel@m.gmane.org; Mon, 24 Oct 2005 19:03:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EUBL6-0004Pg-03 for emacs-devel@gnu.org; Mon, 24 Oct 2005 19:02:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EUBL4-0004Mv-2c for emacs-devel@gnu.org; Mon, 24 Oct 2005 19:02:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUBL3-0004ML-NX for emacs-devel@gnu.org; Mon, 24 Oct 2005 19:02:45 -0400 Original-Received: from [209.226.175.25] (helo=tomts5-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EUBL0-0005ns-I0; Mon, 24 Oct 2005 19:02:42 -0400 Original-Received: from alfajor ([70.48.83.21]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20051024230241.GEEQ26967.tomts5-srv.bellnexxia.net@alfajor>; Mon, 24 Oct 2005 19:02:41 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id 58FF2D781E; Mon, 24 Oct 2005 19:02:41 -0400 (EDT) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "Tue, 25 Oct 2005 00:14:10 +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:44774 Archived-At: >>> 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. >> >> Indeed, this is much better. >> The only problem I still see with it is that it interacts poorly >> with aliases. > Given your examples, I'd say that it's a feature rather than a bug :-) The example I care about is `chmod'. The ones in my PS were meant as things that should work any way, no matter what you do with aliases. > But admittedly, I didn't think about aliases. But there is a way to > get the best of both approaches: > Suppose A is an alias for C. > Now, if A has overriding interactive spec, use that. > Else if C has overriding interactive spec, use that. > Else use original interactive spec for C (if any). That's what I intended. That's what's done with usage info in docstrings (the (fn ARG1 ARG2) thingy at the end of some docstrings). Stefan