From unknown Fri Jun 20 07:13:59 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#5645 <5645@debbugs.gnu.org> To: bug#5645 <5645@debbugs.gnu.org> Subject: Status: 23.1.92; read-event blocks in batch mode Reply-To: bug#5645 <5645@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:13:59 +0000 retitle 5645 23.1.92; read-event blocks in batch mode reassign 5645 emacs submitter 5645 Michael Albinus severity 5645 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 24 23:48:14 2010 Received: (at submit) by debbugs.gnu.org; 25 Feb 2010 04:48:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkVe1-0001JH-K8 for submit@debbugs.gnu.org; Wed, 24 Feb 2010 23:48:14 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkVdz-0001JA-PP for submit@debbugs.gnu.org; Wed, 24 Feb 2010 23:48:12 -0500 Received: from mail.gnu.org ([199.232.76.166]:53684 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkVdt-0003Xk-9A for submit@debbugs.gnu.org; Wed, 24 Feb 2010 23:48:06 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NkVdo-0005aD-G9 for submit@debbugs.gnu.org; Wed, 24 Feb 2010 23:48:05 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00, UNPARSEABLE_RELAY autolearn=ham version=3.1.0 Received: from lists.gnu.org ([199.232.76.165]:40903) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NkVdn-0005a3-NW for submit@debbugs.gnu.org; Wed, 24 Feb 2010 23:48:00 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NkVdn-0000aO-3p for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2010 23:47:59 -0500 Received: from [140.186.70.92] (port=52690 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkVdl-0000ZY-QZ for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2010 23:47:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NkVdk-0006KM-I4 for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2010 23:47:58 -0500 Received: from mail.gmx.net ([213.165.64.20]:42417) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NkVdk-0006Jy-5R for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2010 23:47:56 -0500 Received: (qmail invoked by alias); 25 Feb 2010 04:47:51 -0000 Received: from p4FC00513.dip0.t-ipconnect.de (EHLO detlef.local) [79.192.5.19] by mail.gmx.net (mp006) with SMTP; 25 Feb 2010 05:47:51 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18T1jImgjoTbtwaFlNT+E+Jqljh6v2m5Wcwnkmrjp 3b9oi6q492OaWU From: Michael Albinus To: bug-gnu-emacs@gnu.org Subject: 23.1.92; read-event blocks in batch mode Date: Thu, 25 Feb 2010 05:47:48 +0100 Message-ID: <87y6ihncp7.fsf@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.48999999999999999 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.4 (----) Call # emacs -Q --batch --eval '(read-event nil nil 0.1)' It does not return. In GNU Emacs 23.1.92.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.18.3) of 2010-01-30 on detlef Windowing system distributor `The X.Org Foundation', version 11.0.10604000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: diff-auto-refine-mode: t display-time-mode: t shell-dirtrack-mode: t iswitchb-mode: t icomplete-mode: t partial-completion-mode: t show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: (only . t) Recent input: ( m e s s a g e SPC " H a l l o " ) C-x C-s C-x C-s C-x C-s C-x C-s C-s n o n - b l o c k C-s C-s C-s C-x u ( m e s s a g e SPC " H a l l o " ) C-x C-s C-x C-s C-x C-s C-x C-s C-h f C-a ; ; C-x C-s C-x 0 C-x C-s C-x v u C-x v u C-x C-f t r a . e C-x v l q C-x 0 C-x C-f C-g C-x k x r e p o r t Recent messages: Type C-x 1 to delete the help window. Saving file /home/albinus/src/emacs/lisp/net/dbus.el... Wrote /home/albinus/src/emacs/lisp/net/dbus.el Saving file /home/albinus/src/emacs/lisp/net/dbus.el... Wrote /home/albinus/src/emacs/lisp/net/dbus.el Finding changes in /home/albinus/src/emacs/lisp/net/dbus.el... Reverting /home/albinus/src/emacs/lisp/net/dbus.el...done Finding changes in /home/albinus/src/emacs/lisp/net/dbus.el... No changes between working revision and workfile Reverting /home/albinus/src/emacs/lisp/net/dbus.el...done Quit Load-path shadows: ~/src/tramp/lisp/tramp-imap hides ~/lisp/tramp-imap ~/src/tramp/lisp/tramp-gvfs hides ~/lisp/tramp-gvfs ~/src/tramp/lisp/tramp-cache hides /usr/local/share/emacs/23.1.92/lisp/net/tramp-cache ~/src/tramp/lisp/tramp-uu hides /usr/local/share/emacs/23.1.92/lisp/net/tramp-uu ~/src/tramp/lisp/tramp-smb hides /usr/local/share/emacs/23.1.92/lisp/net/tramp-smb ~/src/tramp/lisp/tramp-cmds hides /usr/local/share/emacs/23.1.92/lisp/net/tramp-cmds ~/src/tramp/lisp/tramp-gw hides /usr/local/share/emacs/23.1.92/lisp/net/tramp-gw ~/src/tramp/lisp/tramp-imap hides /usr/local/share/emacs/23.1.92/lisp/net/tramp-imap ~/src/tramp/lisp/tramp-fish hides /usr/local/share/emacs/23.1.92/lisp/net/tramp-fish ~/src/tramp/lisp/tramp-gvfs hides /usr/local/share/emacs/23.1.92/lisp/net/tramp-gvfs ~/lisp/dbus hides /usr/local/share/emacs/23.1.92/lisp/net/dbus ~/src/tramp/lisp/trampver hides /usr/local/share/emacs/23.1.92/lisp/net/trampver ~/src/tramp/lisp/tramp-compat hides /usr/local/share/emacs/23.1.92/lisp/net/tramp-compat ~/src/tramp/lisp/tramp hides /usr/local/share/emacs/23.1.92/lisp/net/tramp ~/src/tramp/lisp/tramp-ftp hides /usr/local/share/emacs/23.1.92/lisp/net/tramp-ftp Features: (shadow warnings emacsbug add-log log-view pcvs-util diff-mode vc-bzr ediff-merg ediff-diff ediff-wind ediff-help ediff-util ediff-mult ediff-init ediff find-func mule-util find-dired sh-script executable vc-svn cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs browse-url gnus-dup gnus-fun mailalias vc-cvs ange-ftp newcomment noutline outline easy-mmode debug help-mode view pp multi-isearch nnimap imap time-stamp sort gnus-cite html2text smiley ansi-color flow-fill mail-extr gnus-agent gnus-srvr nnvirtual gnus-async gnus-bcklg parse-time timezone gnus-score score-mode gnus-ml gnus-msg gnus-art mm-uu mml2015 epg-config mm-view smime dig disp-table gnus-cache gnus-sum nnfolder pop3 byte-opt bytecomp byte-compile nnml nndraft nnmh nnnil smtpmail gnus-demon nntp gnus-group gnus-undo nnmail mail-source nnoo gnus-start gnus-spec gnus-int gnus-range message sendmail ecomplete rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev gmm-utils mailheader canlock sha1 hex-util hashcash gnus-win gnus gnus-ems nnheader mail-utils wid-edit cperl-mode easymenu time tramp-imap assoc tramp-gw tramp-gvfs url-parse url-vars mm-util mail-prsvr tramp-fish tramp-smb tramp-cache tramp-ftp tramp-cmds tramp auth-source gnus-util netrc time-date advice help-fns advice-preload shell comint ring password-cache format-spec tramp-compat cl cl-19 trampver iswitchb jka-compr icomplete complete paren ps-samp zeroconf dbus xml printing ps-print ps-def lpr vc-dir ewoc vc vc-dispatcher dired regexp-opt tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 26 19:09:21 2010 Received: (at 5645) by debbugs.gnu.org; 27 Feb 2010 00:09:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NlAFD-0007em-DD for submit@debbugs.gnu.org; Fri, 26 Feb 2010 19:09:21 -0500 Received: from pantheon-po34.its.yale.edu ([130.132.50.80]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NlAF0-0007eP-Dv for 5645@debbugs.gnu.org; Fri, 26 Feb 2010 19:09:18 -0500 Received: from furry (dhcp128036014008.central.yale.edu [128.36.14.8]) (authenticated bits=0) by pantheon-po34.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o1R0928N029207 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 26 Feb 2010 19:09:02 -0500 Received: by furry (Postfix, from userid 1000) id 96516C05D; Fri, 26 Feb 2010 19:09:02 -0500 (EST) From: Chong Yidong To: Michael Albinus Subject: Re: bug#5645: 23.1.92; read-event blocks in batch mode References: <87y6ihncp7.fsf@gmx.de> Date: Fri, 26 Feb 2010 19:09:02 -0500 In-Reply-To: <87y6ihncp7.fsf@gmx.de> (Michael Albinus's message of "Thu, 25 Feb 2010 05:47:48 +0100") Message-ID: <87k4tzee01.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 5645 Cc: 5645@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) Michael Albinus writes: > Call > > # emacs -Q --batch --eval '(read-event nil nil 0.1)' > > It does not return. This is a technical limitation of batch mode. Input is acquired via getchar(): see kbd_buffer_get_event in keyboard.c. Unfortunately, getchar() blocks until input in submitted on standard input. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 28 04:41:34 2010 Received: (at 5645) by debbugs.gnu.org; 28 Feb 2010 09:41:34 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NlfeY-0007JP-5U for submit@debbugs.gnu.org; Sun, 28 Feb 2010 04:41:34 -0500 Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Nlfe4-0007Ia-21 for 5645@debbugs.gnu.org; Sun, 28 Feb 2010 04:41:27 -0500 Received: (qmail invoked by alias); 28 Feb 2010 09:40:57 -0000 Received: from p4FC00735.dip0.t-ipconnect.de (EHLO detlef.local) [79.192.7.53] by mail.gmx.net (mp062) with SMTP; 28 Feb 2010 10:40:57 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1968JlE3GJ6eJLEDd3i8ZzSaC1s6tf8JrfqpIzlE1 4vSBrQTOnjnXzv From: Michael Albinus To: Chong Yidong Subject: Re: bug#5645: 23.1.92; read-event blocks in batch mode References: <87y6ihncp7.fsf@gmx.de> <87k4tzee01.fsf@stupidchicken.com> Date: Sun, 28 Feb 2010 10:40:55 +0100 In-Reply-To: <87k4tzee01.fsf@stupidchicken.com> (Chong Yidong's message of "Fri, 26 Feb 2010 19:09:02 -0500") Message-ID: <877hpx4s0o.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.65000000000000002 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 5645 Cc: 5645@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Chong Yidong writes: > Michael Albinus writes: > >> Call >> >> # emacs -Q --batch --eval '(read-event nil nil 0.1)' >> >> It does not return. > > This is a technical limitation of batch mode. Input is acquired via > getchar(): see kbd_buffer_get_event in keyboard.c. Unfortunately, > getchar() blocks until input in submitted on standard input. I see. In my use case, which has caused this bug report, I am waiting for D-Bus events. This shall be possible also in batch mode; maybe we can fix this later. For the time being (23.2 preparation), I'll document this limitation in dbus.texi, and I'll avoid asynchronous calls in dbus.el, when noninteractive is nil. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 17 09:22:35 2012 Received: (at 5645-done) by debbugs.gnu.org; 17 Jul 2012 13:22:35 +0000 Received: from localhost ([127.0.0.1]:45677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sr7jX-0007lG-5i for submit@debbugs.gnu.org; Tue, 17 Jul 2012 09:22:35 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:39770) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1Sr7jU-0007l8-Oo for 5645-done@debbugs.gnu.org; Tue, 17 Jul 2012 09:22:33 -0400 Received: (qmail invoked by alias); 17 Jul 2012 13:16:31 -0000 Received: from p57BB95D4.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.149.212] by mail.gmx.net (mp033) with SMTP; 17 Jul 2012 15:16:31 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/08x86mpD0V0w4AGHm1sFxN5R8d/f4VGaoyI9LMa dNy13kGQb+omM3 From: Michael Albinus To: Chong Yidong Subject: Re: bug#5645: 23.1.92; read-event blocks in batch mode References: <87y6ihncp7.fsf@gmx.de> <87k4tzee01.fsf@stupidchicken.com> <877hpx4s0o.fsf@gmx.de> Date: Tue, 17 Jul 2012 15:16:27 +0200 In-Reply-To: <877hpx4s0o.fsf@gmx.de> (Michael Albinus's message of "Sun, 28 Feb 2010 10:40:55 +0100") Message-ID: <87629mmst0.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 5645-done Cc: 5645-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Michael Albinus writes: >> This is a technical limitation of batch mode. Input is acquired via >> getchar(): see kbd_buffer_get_event in keyboard.c. Unfortunately, >> getchar() blocks until input in submitted on standard input. > > I see. In my use case, which has caused this bug report, I am waiting > for D-Bus events. This shall be possible also in batch mode; maybe we > can fix this later. With the solution of bug#11415, this problems is solved. Closed. Best regards, Michael. From unknown Fri Jun 20 07:13:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 15 Aug 2012 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator