From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21747: 25.0.50; while-no-input breaks kbd event handling when called from post-command-hook Date: Mon, 26 Oct 2015 05:32:21 +0200 Message-ID: <837fmacnju.fsf@gnu.org> References: <87bnboemqb.fsf@gnu.org> <838u6sy9s1.fsf@gnu.org> <877fmcejgn.fsf@gnu.org> <83ziz8wrun.fsf@gnu.org> <8737x0egvm.fsf@gnu.org> <83vb9wwnc6.fsf@gnu.org> <83lhaqdbq8.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1445830406 16265 80.91.229.3 (26 Oct 2015 03:33:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Oct 2015 03:33:26 +0000 (UTC) Cc: 21747@debbugs.gnu.org To: bruce.connor.am@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 26 04:33:11 2015 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 1ZqYX0-0001tm-0w for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Oct 2015 04:33:10 +0100 Original-Received: from localhost ([::1]:50424 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqYWz-0006cJ-6Z for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Oct 2015 23:33:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqYWv-0006cE-FB for bug-gnu-emacs@gnu.org; Sun, 25 Oct 2015 23:33:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZqYWs-00037M-6n for bug-gnu-emacs@gnu.org; Sun, 25 Oct 2015 23:33:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqYWs-00037I-3L for bug-gnu-emacs@gnu.org; Sun, 25 Oct 2015 23:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZqYWr-0007Oo-PY for bug-gnu-emacs@gnu.org; Sun, 25 Oct 2015 23:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Oct 2015 03:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21747 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21747-submit@debbugs.gnu.org id=B21747.144583033628382 (code B ref 21747); Mon, 26 Oct 2015 03:33:01 +0000 Original-Received: (at 21747) by debbugs.gnu.org; 26 Oct 2015 03:32:16 +0000 Original-Received: from localhost ([127.0.0.1]:38368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZqYW8-0007Nh-4w for submit@debbugs.gnu.org; Sun, 25 Oct 2015 23:32:16 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:61044) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZqYW5-0007NX-0l for 21747@debbugs.gnu.org; Sun, 25 Oct 2015 23:32:14 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NWT00F005Q5AZ00@a-mtaout22.012.net.il> for 21747@debbugs.gnu.org; Mon, 26 Oct 2015 05:32:10 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NWT00FAO5TM7Q30@a-mtaout22.012.net.il>; Mon, 26 Oct 2015 05:32:10 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.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:108034 Archived-At: > Date: Mon, 26 Oct 2015 00:27:22 +0000 > From: Artur Malabarba > Cc: 21747@debbugs.gnu.org > > 2015-10-25 18:50 GMT+00:00 Eli Zaretskii : > >> Date: Sun, 25 Oct 2015 14:43:06 +0000 > >> From: Artur Malabarba > >> Cc: Tassilo Horn , Stefan Monnier , Kim Storm , > >> 21747@debbugs.gnu.org > >> > >> +otherwise the error might happen repeatedly and make Emacs nonfunctional. > >> + > >> +It is usually a bad idea to use this hook for expensive processing. > >> +If unavoidable, `while-no-input' can be used avoid making Emacs > > ^^^ > > "to" is missing where indicated. > > > >> +unresponsive while the user types. Furthermore, this hook is run > >> +before redisplay, so the effect of the executed command won't be > >> +displayed on the buffer until after the hook has finished (giving the > >> +impression that Emacs is hanging). You can call `redisplay' inside > >> +`while-no-input' to avoid this. > > > > Perhaps only the 1st sentence or 2 sentences should be left in the doc > > string, and the rest moved to the ELisp manual? It seems too long and > > detailed for a doc string. > > How about reducing the second paragraph to this? Still to long? > > It is a bad idea to use this hook for expensive processing. If > unavoidable, wrap your code in `(while-no-input (redisplay) CODE)' to > avoid making Emacs unresponsive while the user types. No, this is exactly right, thanks.