help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Catching redefinitions


From: Pascal J. Bourguignon
Subject: Re: Catching redefinitions
Date: Sun, 28 Nov 2010 15:15:56 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Elena <egarrulo@gmail.com> writes:

> On Nov 28, 11:12 am, Elena <egarr...@gmail.com> wrote:
>> I've tried:
>>
>> (setq sym val &rest rest)
>>
>> but Emacs does not like it either.
>
> That is, I've tried this function argument list into "defadvice":
>
> (sym val &rest rest)
>
> However, I think "setq" is too basic a function to be redefined
> without falling into some infinite loop.

Indeed, the point was that:

   setq is a special form in `C source code'.

that means that advices won't be called, when this special form is
called from C code, or from compiled emacs lisp code.

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
A bad day in () is better than a good day in {}.


reply via email to

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