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: Sun, 25 Oct 2015 20:50:07 +0200 Message-ID: <83lhaqdbq8.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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1445799081 28093 80.91.229.3 (25 Oct 2015 18:51:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Oct 2015 18:51:21 +0000 (UTC) Cc: tsdh@gnu.org, monnier@iro.umontreal.ca, 21747@debbugs.gnu.org, storm@cua.dk To: bruce.connor.am@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 25 19:51:10 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 1ZqQNp-00086L-Sx for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Oct 2015 19:51:10 +0100 Original-Received: from localhost ([::1]:49149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqQNp-00069R-2D for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Oct 2015 14:51:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqQNl-00069C-2w for bug-gnu-emacs@gnu.org; Sun, 25 Oct 2015 14:51:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZqQNh-0006pA-Rw for bug-gnu-emacs@gnu.org; Sun, 25 Oct 2015 14:51:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47497) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqQNh-0006p6-Og for bug-gnu-emacs@gnu.org; Sun, 25 Oct 2015 14:51:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZqQNh-0001nL-Jw for bug-gnu-emacs@gnu.org; Sun, 25 Oct 2015 14:51: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: Sun, 25 Oct 2015 18:51: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.14457990066801 (code B ref 21747); Sun, 25 Oct 2015 18:51:01 +0000 Original-Received: (at 21747) by debbugs.gnu.org; 25 Oct 2015 18:50:06 +0000 Original-Received: from localhost ([127.0.0.1]:38205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZqQMn-0001lb-8J for submit@debbugs.gnu.org; Sun, 25 Oct 2015 14:50:06 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:60359) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZqQMj-0001kv-LA for 21747@debbugs.gnu.org; Sun, 25 Oct 2015 14:50:03 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NWS00100HDDVO00@a-mtaout20.012.net.il> for 21747@debbugs.gnu.org; Sun, 25 Oct 2015 20:49:58 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NWS0012FHN9OMA0@a-mtaout20.012.net.il>; Sun, 25 Oct 2015 20:49:58 +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:108026 Archived-At: > Date: Sun, 25 Oct 2015 14:43:06 +0000 > From: Artur Malabarba > Cc: Tassilo Horn , Stefan Monnier , Kim Storm , > 21747@debbugs.gnu.org > > I've extended the docstring. Thanks. > +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.