[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 13:05:39 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
> Agreed. I actually firmly believe that we should be able to provide
> elisp code for the interactive spec of a C function.
The previous patch I posted was completely untested, and didn't compile.
Here is a better patch:
*** data.c 19 Sep 2005 00:24:45 +0200 1.254
--- data.c 21 Oct 2005 13:04:24 +0200
***************
*** 787,793 ****
if (SUBRP (fun))
{
if (XSUBR (fun)->prompt)
! return list2 (Qinteractive, build_string (XSUBR (fun)->prompt));
}
else if (COMPILEDP (fun))
{
--- 787,801 ----
if (SUBRP (fun))
{
if (XSUBR (fun)->prompt)
! {
! Lisp_Object spec;
! if (XSUBR (fun)->prompt[0] != '#')
! return list2 (Qinteractive, build_string (XSUBR (fun)->prompt));
!
! if ((spec = Fget (intern (XSUBR (fun)->symbol_name), Qinteractive),
! !NILP (spec)))
! return list2 (Qinteractive, spec);
! }
}
else if (COMPILEDP (fun))
{
--
Kim F. Storm <address@hidden> http://www.cua.dk
- Re: File modes facilities., (continued)
- Re: File modes facilities., Stefan Monnier, 2005/10/24
- Re: File modes facilities., Kim F. Storm, 2005/10/24
- Re: File modes facilities., Stefan Monnier, 2005/10/24
- Re: File modes facilities., Kim F. Storm, 2005/10/25
- Re: File modes facilities., Richard M. Stallman, 2005/10/25
- 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 <=
- Re: File modes facilities., Stefan Monnier, 2005/10/21
- Re: File modes facilities., Kim F. Storm, 2005/10/21
- 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