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 10:46:05 -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.

E.g. to take a concrete example:

     (put 'set-file-modes 'interactive '(list ...))
     (defalias 'chmod 'set-file-modes)

M-x chmod should work just like M-x set-file-modes, but AFAICT your code
won't handle it right.


        Stefan


PS: One of the funny things we can do, OTOH is:

    (defalias 'load-library 'load "docstring")
    (defalias 'load-file 'load "other docstring")
    (put 'load-library 'interactive '(...))
    (put 'load-file 'interactive '(...))




reply via email to

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