emacs-devel
[Top][All Lists]
Advanced

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

Re: File modes facilities.


From: David Kastrup
Subject: Re: File modes facilities.
Date: Mon, 24 Oct 2005 16:16:32 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

address@hidden (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




reply via email to

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