all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Possible bug in xfns.c
@ 2005-02-26 14:47 David Kastrup
  2005-02-26 15:37 ` Jan D.
  0 siblings, 1 reply; 4+ messages in thread
From: David Kastrup @ 2005-02-26 14:47 UTC (permalink / raw)



Throwing a signal restores interrupt_input_blocked to the state of the
recording of the stack frame.  In xfns.c, line 5207, we have a
BLOCK_INPUT.  In line 5283 we have

record_unwind_protect (clean_up_file_dialog, make_save_value (dialog, 0));

That means that clean_up_file_dialog will get called in case of an
abort, and x_file_dialog will return with the value of
interrupt_input_blocked increased by one as opposed to the time of the
call.

Shouldn't record_unwind_protect be enclosed with
UNBLOCK_INPUT/BLOCK_INPUT?

Note: I don't have much of a clue about the code, I am just trying to
dig for an abort.  The above certainly is not involved in the abort,
but while I am at it...

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-02-27 13:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-26 14:47 Possible bug in xfns.c David Kastrup
2005-02-26 15:37 ` Jan D.
2005-02-26 16:01   ` David Kastrup
2005-02-27 13:43   ` Richard Stallman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.