emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File modes facilities.


From: Stefan Monnier
Subject: Re: File modes facilities.
Date: Mon, 24 Oct 2005 19:02:41 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>>> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]