From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: sit-for considered harmful in kbd-macros Date: Wed, 06 Feb 2002 18:19:06 -0500 Message-ID: <200202062319.g16NJ6F31021@rum.cs.yale.edu> References: <200202062241.g16MfDO30778@rum.cs.yale.edu> <200202062308.PAA20392@radish.petrofsky.org> NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: quimby2.netfonds.no 1013038154 8777 195.204.10.66 (6 Feb 2002 23:29:14 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 6 Feb 2002 23:29:14 GMT Cc: monnier+gnu/emacs@RUM.cs.yale.edu, emacs-devel@gnu.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16YbV4-0002HT-00 for ; Thu, 07 Feb 2002 00:29:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16YbNA-0005pj-00; Wed, 06 Feb 2002 18:21:04 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16YbLL-0005iR-00 for ; Wed, 06 Feb 2002 18:19:11 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g16NJ6F31021; Wed, 6 Feb 2002 18:19:06 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Al Petrofsky Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:828 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:828 > > From: "Stefan Monnier" > > > > How about short-circuiting sit-for when called from a kbd-macro, > > as if input was pending ? > > > + if (detect_input_pending_run_timers (display) || !NILP (Vexecuting_macro)) > > return Qnil; > > I'm pretty sure that's inappropriate when the argument to sit-for is > non-zero, so the code should check for that. (After all, what fun > would C-x ( M-` t g t C-u C-x ) be if it did no redisplay?) Actually, no, the whole point of the patch is to make sit-for not wait even when the argument is non-zero. The redisplay/noredisplay is handled by the other argument. Stefan _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel