[Top][All Lists]

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

Re: kill-emacs-query-functions problem with y-or-n-p

From: Richard M. Stallman
Subject: Re: kill-emacs-query-functions problem with y-or-n-p
Date: Tue, 21 Jun 2005 11:13:36 -0400

    I did run through the debugger (debug-on-entry foo), checking
    last-nonmenu-event at each step. The value remained `(menu-bar)' throughout,
    right up through debugger-reenable in run-hooks(post-command-hook). 

Why was post-command-hook being run?  We're talking about code in the middle
of kill-emacs; it does not read commands, and Emacs should never read
another command once you start killing it.  Perhaps the Lisp debugger

The way to handle this best is by debugging at the C level,
with breakpoints and stepping in Fkill_emacs and Fy_or_n_p
and their subroutines.

reply via email to

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