emacs-devel
[Top][All Lists]
Advanced

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

Re: Delayed warnings


From: Jeff Sparkes
Subject: Re: Delayed warnings
Date: Wed, 23 Mar 2011 09:50:30 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt)

Stefan Monnier <address@hidden> writes:

>> Only I would process `display-delayed-warnings' in reverse, so C code
>> can add with
>
>>   Vdisplay_delayed_warnings = Fcons (..., Vdisplay_delayed_warnings);
>
>> but the user still gets the warnings in order.
>
> Or you could have your C code all `add-hook-once' on post-command-hook
> which would be a new function that adds a function onto a hook such that
> the function is only run once and then automatically removed.

FWIW, in XEmacs it's called `add-one-shot-hook'.




reply via email to

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