[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
- Re: File modes facilities., (continued)
- Re: File modes facilities., Richard M. Stallman, 2005/10/25
- Re: File modes facilities., Kim F. Storm, 2005/10/25
- Re: File modes facilities., Kim F. Storm, 2005/10/26
- Re: File modes facilities., Richard M. Stallman, 2005/10/26
- Re: File modes facilities., Richard M. Stallman, 2005/10/26
- Re: File modes facilities., Kim F. Storm, 2005/10/21
- Re: File modes facilities., Stefan Monnier, 2005/10/21
- Re: File modes facilities.,
Kim F. Storm <=
- Re: File modes facilities., Richard M. Stallman, 2005/10/21
- Re: File modes facilities., Stefan Monnier, 2005/10/21
- Re: File modes facilities., Richard M. Stallman, 2005/10/22
- RE: File modes facilities., Drew Adams, 2005/10/22
- Re: File modes facilities., Miles Bader, 2005/10/22
- RE: File modes facilities., Drew Adams, 2005/10/22
- Re: File modes facilities., Miles Bader, 2005/10/22
- RE: File modes facilities., Drew Adams, 2005/10/22
- Re: File modes facilities., Stefan Monnier, 2005/10/23
- RE: File modes facilities., Drew Adams, 2005/10/23