[Top][All Lists]

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

Re: File modes facilities.

From: Kim F. Storm
Subject: Re: File modes facilities.
Date: Fri, 21 Oct 2005 12:58:07 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>>> but providing `chmod' (or making set-file-modes into a command) is
>>> a good idea.
>> set-file-modes is a nice simple function in C.
>> IMHO, a more advanced chmod command should be implemented in Lisp.
> Agreed.  I actually firmly believe that we should be able to provide
> elisp code for the interactive spec of a C function.
> This would also allow us to get rid of the load vs load-file distinction
> and to improve various other commands implemented in C where the minibuffer
> query only provides a fairly dull default.

Like this?

*** data.c      19 Sep 2005 00:24:45 +0200      1.254
--- data.c      21 Oct 2005 12:54:00 +0200      
*** 786,791 ****
--- 786,794 ----
    if (SUBRP (fun))
+       Lisp_Object spec;
+       if ((spec = Fget (fun, Qinteractive)))
+       return list2 (Qinteractive, spec);
        if (XSUBR (fun)->prompt)
        return list2 (Qinteractive, build_string (XSUBR (fun)->prompt));

Kim F. Storm <address@hidden> http://www.cua.dk

reply via email to

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