emacs-devel
[Top][All Lists]
Advanced

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

Re: Delayed warnings


From: Chong Yidong
Subject: Re: Delayed warnings
Date: Sun, 08 May 2011 13:58:37 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Juanma Barranquero <address@hidden> writes:

> OK. I want to install this patch, with is a simplifed version of the
> previous one: `delayed-warnings-filter' does not exist, and
> `delayed-warnings-function' has become `delayed-warnings-hook', a true
> hook.
>
> The idea is that functions in the hook can process and remove as many
> elements from `delayed-warnings-list' as they want. The function
> `display-delayed-warnings', which is set by default to run last, of
> course removes and displays them all.
>
> That makes the delayed warnings infrastructure both simpler and more
> flexible. Redisplay warnings would mean (other than pushing the
> relevant warnings to `delayed-warnings-list', of course) just adding a
> new `display-redisplay-warnings' to the hook.

I think it's cleaner to have a separate delayed-warnings-hook and
delayed-warnings-function.  The former should be nil by default, and
should be called prior to delayed-warnings-function.

In general, it's good to avoid putting default values in hook variables.



reply via email to

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