From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#12450: Remove configure's --without-sync-input option. Date: Sun, 16 Sep 2012 10:58:41 -0400 Message-ID: References: <50543449.1070306@cs.ucla.edu> <83k3vvtyw0.fsf@gnu.org> <5054551A.1070207@cs.ucla.edu> <83k3vuse9p.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1347807538 15439 80.91.229.3 (16 Sep 2012 14:58:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Sep 2012 14:58:58 +0000 (UTC) Cc: lekktu@gmail.com, eggert@cs.ucla.edu, 12450@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 16 16:59:01 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TDGJJ-000452-Gh for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Sep 2012 16:59:01 +0200 Original-Received: from localhost ([::1]:45544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDGJF-0005nc-KS for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Sep 2012 10:58:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDGJD-0005nU-3X for bug-gnu-emacs@gnu.org; Sun, 16 Sep 2012 10:58:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TDGJC-0001xh-8N for bug-gnu-emacs@gnu.org; Sun, 16 Sep 2012 10:58:55 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDGJC-0001xd-54 for bug-gnu-emacs@gnu.org; Sun, 16 Sep 2012 10:58:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TDGKI-0007HI-M3 for bug-gnu-emacs@gnu.org; Sun, 16 Sep 2012 11:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Sep 2012 15:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12450 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12450-submit@debbugs.gnu.org id=B12450.134780759427941 (code B ref 12450); Sun, 16 Sep 2012 15:00:02 +0000 Original-Received: (at 12450) by debbugs.gnu.org; 16 Sep 2012 14:59:54 +0000 Original-Received: from localhost ([127.0.0.1]:37308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TDGK9-0007Gc-Rs for submit@debbugs.gnu.org; Sun, 16 Sep 2012 10:59:54 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:33298) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TDGK7-0007GV-H6 for 12450@debbugs.gnu.org; Sun, 16 Sep 2012 10:59:51 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuMHAG6Zu09sr+Lr/2dsb2JhbABErAMEiAqBCIIVAQEEAVYjBQsLNBIUGA0kiBwFugmQRAOjM4FYgwU X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="198450326" Original-Received: from 108-175-226-235.dsl.teksavvy.com (HELO pastel.home) ([108.175.226.235]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 16 Sep 2012 10:58:41 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 393D059309; Sun, 16 Sep 2012 10:58:41 -0400 (EDT) In-Reply-To: <83k3vuse9p.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 16 Sep 2012 08:55:14 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64425 Archived-At: > Could you please describe how the SYNC_INPUT code is supposed to work > in the following situations: > . keyboard input on a TTY that comes while Lisp is running > . an X event that exposes an Emacs frame in a GUI session, coming > while Lisp is running - The keyboard input or the X event causes a signal to be delivered. - The signal handler sets pending_signal and returns. - The Elisp interpreter ends up calling QUIT sooon afterwards. - QUIT processes the pending signals which will read the (keyboard/X11) input and turn it in an event in the event queue (so input-pending-p will know something has arrived), it may also do some more processing such as redraw the window if the GUI needs it. Currently it also handles things like mouse-face highlighting. - The Elisp interpreter then keeps running the code it was running, as if nothing happened. So SYNC_INPUT basically delays the processing of incoming signals from "run it at any time" to "run it at the next safe point" where a safe point is defined as "a point where we call QUIT". "QUIT" can also be understood as a sibling of "yield". Does that answer your question? Stefan