>> I'd say use while-no-input but you're in a better position to make this call.

> the only thing i wanted is: An expert-estimation if while-no-input is
> a good way - or with-local-quit - if i remember right you said that this
> could easily being backported - maybe its not a really good idea to use
> a macro which is only available in forthcoming Emacs 22 - IMHO also users
> of Emacs 21.X should get a good solution...

while-no-input is a more general and robust way to do what your (while (not
(input-pending-p))) is trying to do.  It's basically designed specifically
for cases like yours.  But it's a new feature in Emacs-22.

with-local-quit is just a convenient macro to temporarily disable
inhibit-quit (that's typically set in timers, post-command-hooks, ...).
The macro-expanded code doesn't use any new feature.  It's not a general
solution to your problem, but it can be used to solve the specific problem
of the OP where C-g wasn't able to unfreeze Emacs.

> is there a short example how to use this with-local-quit? This would help me
> a lot - or a pointer where to find such an example..

cd ...emacs/lisp; grep with-local-quit **/*.el

Read the definition of the macro: it's fairly simple.


        Stefan


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to