[Top][All Lists]

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

Re: timer handlers and ^G

From: Stefan Monnier
Subject: Re: timer handlers and ^G
Date: Sun, 28 Oct 2001 16:12:21 -0500

>     This gets back to your point above.  I think we should create a macro 
> like:
>        (defmacro with-enabled-quit (&rest body)
>        ;; we assume that inhibit-quit is bound to non-nil before.
>        `(condition-case nil
>             (let ((inhibit-quit nil))
>               ,@body)
>           (quit (setq quit-flag t))))
> That is a good idea--it looks like a safe way to enable quitting
> inside a timer.  I think that with-local-quit is a better name for it.
> Would you please install it

Will do.

> and use it where appropriate?

I know of only one place where it's appropriate (in my own reveal.el
code, which is not part of Emacs yet).  I'm sure it's appropriate at
other places as well, but I don't know them.


reply via email to

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