From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs Subject: bug#53798: 27.1; OSX: (redisplay) does not reliably redisplay Date: Sat, 05 Feb 2022 13:42:58 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30680"; mail-complaints-to="usenet@ciao.gmane.io" To: 53798@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 05 13:52:03 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nGKXr-0007kl-Lc for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Feb 2022 13:52:03 +0100 Original-Received: from localhost ([::1]:46810 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGKXq-0002Ge-7P for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Feb 2022 07:52:02 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGKQ9-0008Am-JQ for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2022 07:44:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40127) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nGKQ6-0005uj-Ht for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2022 07:44:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nGKQ6-0003Ol-AW for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2022 07:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Feb 2022 12:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53798 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164406501413020 (code B ref -1); Sat, 05 Feb 2022 12:44:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Feb 2022 12:43:34 +0000 Original-Received: from localhost ([127.0.0.1]:34024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGKPd-0003Nv-PD for submit@debbugs.gnu.org; Sat, 05 Feb 2022 07:43:34 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:44992) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGKPc-0003No-4n for submit@debbugs.gnu.org; Sat, 05 Feb 2022 07:43:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34788) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGKPV-0007wK-V7 for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2022 07:43:30 -0500 Original-Received: from [78.47.144.35] (port=49832 helo=metalevel.at) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGKPJ-0005qj-2m for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2022 07:43:14 -0500 Original-Received: from mt-mbpro.localdomain (localhost [127.0.0.1]) by metalevel.at (Postfix) with ESMTP id 9E7C59C73F for ; Sat, 5 Feb 2022 13:42:59 +0100 (CET) Original-Received: by mt-mbpro.localdomain (Postfix, from userid 501) id 42C1614E449D; Sat, 5 Feb 2022 13:42:58 +0100 (CET) X-Host-Lookup-Failed: Reverse DNS lookup failed for 78.47.144.35 (failed) Received-SPF: none client-ip=78.47.144.35; envelope-from=triska@metalevel.at; helo=metalevel.at X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:226065 Archived-At: To reproduce this issue, please start Emacs with: $ emacs -Q and evaluate the following form: (while t (insert "\n" (make-string 50 ?a)) (redisplay) (sit-for 0.1)) At first, this works completely as intended: We see a growing number of lines in the buffer, and we are shown each fresh line as it appears: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ... However, as soon as any key is pressed, the output becomes erratic in the sense that for long stretches of time, we see no new lines at all, and then several of them appear immediately at the same time. The snippet uses (redisplay) after writing each line in order to show the line as it appears. I therefore expect to continue to see, also when a key is pressed, each line immediately after it is written in the buffer, not batches of multiple lines to be shown after several of them have already been written. Is there any way to obtain this behaviour? Thank you a lot! All the best, Markus In GNU Emacs 27.1 (build 1, x86_64-apple-darwin15.3.0, X toolkit, Xaw scroll bars) of 2020-12-12 built on mt-macbook Windowing system distributor 'The X.Org Foundation', version 11.0.11502000 System Description: Mac OS X 10.11.3 Configured using: 'configure --prefix=/opt/local --disable-silent-rules --without-ns --without-dbus --without-gconf --without-libotf --without-m17n-flt --with-gmp --with-gnutls --with-json --with-xml2 --with-modules --infodir /opt/local/share/info/emacs --with-x-toolkit=lucid --without-xaw3d --without-imagemagick --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-lcms2 --without-rsvg --with-xft 'CFLAGS=-pipe -Os -arch x86_64' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -lfreetype -lfontconfig -Wl,-no_pie -arch x86_64'' Configured features: XPM JPEG TIFF GIF PNG GSETTINGS GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix