emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: Emacs hangs enabling debug-on-error


From: Kim F. Storm
Subject: Re: Emacs hangs enabling debug-on-error
Date: 15 May 2004 01:21:31 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Richard Stallman <address@hidden> writes:

>     The problem is that redisplay triggers an error which throws to
>     top-level while input is blocked, and we don't unblock input in that
>     case.
> 
> What exactly is the case where processing an error does not unblock
> input?
> 

in xdisp.c :

          /* Build desired tool-bar items from keymaps.  */
          BLOCK_INPUT;
          f->tool_bar_items
            = tool_bar_items (f->tool_bar_items, &f->n_tool_bar_items);
          UNBLOCK_INPUT;


The following code demonstrates the error:

(setq debug-on-error t)

(define-key tool-bar-map [tt-exit]
  '(menu-item
    "TEST"
    vm-toolbar-next-command
    :enable (vm-toolbar-any-messages-p)
    :button (:toggle nil)
    :image (image :type xpm :mask heuristic :file "../lisp/toolbar/alias.xpm")))

-- 
Kim F. Storm  http://www.cua.dk





reply via email to

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