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: Fri, 08 Feb 2002 09:58:15 -0500 Message-ID: <200202081458.g18EwGR10513@rum.cs.yale.edu> References: <200202062241.g16MfDO30778@rum.cs.yale.edu> <200202081357.g18Dv3P05370@aztec.santafe.edu> NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: quimby2.netfonds.no 1013180951 17367 195.204.10.66 (8 Feb 2002 15:09:11 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 8 Feb 2002 15:09:11 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 16ZCeF-0004W1-00 for ; Fri, 08 Feb 2002 16:09:11 +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 16ZCVe-0002CL-00; Fri, 08 Feb 2002 10:00:18 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16ZCTh-00025w-00; Fri, 08 Feb 2002 09:58:17 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g18EwGR10513; Fri, 8 Feb 2002 09:58:16 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Richard Stallman 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:887 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:887 > How about short-circuiting sit-for when called from a kbd-macro, > as if input was pending ? > > That might be a good idea. On the other hand, it would be nice > if there were a command you could use inside a macro to do a > redisplay. I don't understand. My patch doesn't prevent redisplay (which will happen inside `detect_input_pending_run_timers'). So is there any real objection to my suggested patch: --- dispnew.c 19 Jan 2002 13:54:57 -0000 1.300 +++ dispnew.c 8 Feb 2002 14:56:58 -0000 @@ -6175,7 +6175,7 @@ swallow_events (display); - if (detect_input_pending_run_timers (display)) + if (detect_input_pending_run_timers (display) || !NILP (Vexecuting_macro)) return Qnil; if (initial_display) -- Stefan _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel