From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: why "in_sighandler"? Date: Sun, 20 Aug 2006 18:37:30 +0200 Message-ID: <44E88FCA.5050705@swipnet.se> References: <87psevdhpc.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1156100517 29310 80.91.229.2 (20 Aug 2006 19:01:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 Aug 2006 19:01:57 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 20 21:01:54 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GEsYP-0004o0-Eq for ged-emacs-devel@m.gmane.org; Sun, 20 Aug 2006 21:01:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GEsYP-00082W-5E for ged-emacs-devel@m.gmane.org; Sun, 20 Aug 2006 15:01:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GEqJV-00017l-Ua for emacs-devel@gnu.org; Sun, 20 Aug 2006 12:38:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GEqJS-000166-Bg for emacs-devel@gnu.org; Sun, 20 Aug 2006 12:38:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GEqJS-000160-4F for emacs-devel@gnu.org; Sun, 20 Aug 2006 12:38:14 -0400 Original-Received: from [81.228.8.180] (helo=av9-2-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GEqQd-0003Vd-CS for emacs-devel@gnu.org; Sun, 20 Aug 2006 12:45:39 -0400 Original-Received: by av9-2-sn2.hy.skanova.net (Postfix, from userid 502) id 1B9373813A; Sun, 20 Aug 2006 18:38:10 +0200 (CEST) Original-Received: from smtp4-2-sn2.hy.skanova.net (smtp4-2-sn2.hy.skanova.net [81.228.8.93]) by av9-2-sn2.hy.skanova.net (Postfix) with ESMTP id F1338380AD; Sun, 20 Aug 2006 18:38:09 +0200 (CEST) Original-Received: from coolsville.localdomain (81-235-205-204-no59.tbcn.telia.com [81.235.205.204]) by smtp4-2-sn2.hy.skanova.net (Postfix) with ESMTP id DCC7137E46; Sun, 20 Aug 2006 18:38:09 +0200 (CEST) User-Agent: Thunderbird 1.5.0.5 (X11/20060719) Original-To: Stefan Monnier In-Reply-To: <87psevdhpc.fsf-monnier+emacs@gnu.org> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:58555 Archived-At: Stefan Monnier wrote: > Could someone explain the difference between `handling_signal' and > `in_sighandler'? Depending on the answer I'm likely to suggest a renaming, > since it seems that either they are the same and should be merged or they > are different and should say so directly in their name. > handling_signal may be non-zero even if no signal handler is invoked. For example, from UNBLOCK_INPUT (via reinvoke_input_signal => handle_async_input). Also if SYNC_INPUT is used. So handling_signal really means "handling X11/GUI event". I needed a variable that was only set when the signal handler is running. Maybe setting handling_signal is an error in the non-signalling cases, I don't really know. Jan D.