From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#30699: 26.0.91; buffer contents flicker on macOS frames when frames are resized Date: Mon, 12 Mar 2018 00:46:38 +0000 Message-ID: <20180312004638.GA56747@breton.holly.idiocy.org> References: <83a7vjre52.fsf@gnu.org> <20180307202603.GA31176@breton.holly.idiocy.org> <83r2ounzty.fsf@gnu.org> <20180309120952.GA45581@breton.holly.idiocy.org> <837eqlwf1i.fsf@gnu.org> <20180309232415.GB51893@breton.holly.idiocy.org> <20180310002555.GA54231@breton.holly.idiocy.org> <83h8pouycc.fsf@gnu.org> <20180310230706.GB55832@breton.holly.idiocy.org> <83a7vetw32.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1520815510 21325 195.159.176.226 (12 Mar 2018 00:45:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Mar 2018 00:45:10 +0000 (UTC) User-Agent: Mutt/1.9.3 (2018-01-21) Cc: 30699@debbugs.gnu.org, aaronjensen@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 12 01:45:06 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evBaL-0005S5-Vm for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Mar 2018 01:45:06 +0100 Original-Received: from localhost ([::1]:56139 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evBcO-00068X-JP for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Mar 2018 20:47:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evBcH-00068D-Nn for bug-gnu-emacs@gnu.org; Sun, 11 Mar 2018 20:47:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evBcE-0005IT-Lh for bug-gnu-emacs@gnu.org; Sun, 11 Mar 2018 20:47:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47973) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1evBcE-0005II-HN for bug-gnu-emacs@gnu.org; Sun, 11 Mar 2018 20:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1evBcE-00047A-9y for bug-gnu-emacs@gnu.org; Sun, 11 Mar 2018 20:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Mar 2018 00:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30699 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30699-submit@debbugs.gnu.org id=B30699.152081561115798 (code B ref 30699); Mon, 12 Mar 2018 00:47:02 +0000 Original-Received: (at 30699) by debbugs.gnu.org; 12 Mar 2018 00:46:51 +0000 Original-Received: from localhost ([127.0.0.1]:55870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evBc1-00046i-3E for submit@debbugs.gnu.org; Sun, 11 Mar 2018 20:46:50 -0400 Original-Received: from mail-wr0-f180.google.com ([209.85.128.180]:36758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1evBc0-00046V-4J for 30699@debbugs.gnu.org; Sun, 11 Mar 2018 20:46:48 -0400 Original-Received: by mail-wr0-f180.google.com with SMTP id d10so1542124wrf.3 for <30699@debbugs.gnu.org>; Sun, 11 Mar 2018 17:46:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=ti5dY1SC33t4d39o0wrV4d+bsSjLyDu4I4BlRuGEGJY=; b=aYQ9EwRpQjbrYati5+3WmkRTbBWBRKGGcDLIRMCukfbYjmHmtySc07rxtPs8mI0eRf Ttzgtv8YWd6GwWsI2QvRd7SQqBvgJCBPF1UpsJlVgi3BgWpWvs4bKvkUnB/eZ7rTr3B/ /CzfQQLamOLs0paS3Y+JmzIMQWzcZZAuaajbZVPNtg0AeVn0GpkOGyNqLPuQF0MTkYMQ QNXUjo7mZArZOMo6UUmlKcvpByQXs88PJEcE0NvMsbyrKqnllzwyf6tncIJaqhpGFc0t e+47RDzMD27NdndTPa+54dLAn6CivdlXjkzxcXQloRfNzHm0+GWbYHpyGbAN/dzoetOl kllQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=ti5dY1SC33t4d39o0wrV4d+bsSjLyDu4I4BlRuGEGJY=; b=HaMXpi/26n4udj/VCzfKnDeOwH1Izfh14k4qYLmPoUU3bAezacVSiGtPouP/z8BW5o BhzASMzv1/ouAHQuae8amtb0ji/DRP6Kefv9mA6+QfN4Y3W3gs2nQIbfz9rLkBbE9Tu/ ek5MVlP4Cg/scRRTkODpnktqQAQWdhE7VQuDz/tQ25aysT9xnPruMu2WlZDzbcwBua6c CUP5DP8uyQecIvRUBTJenP3e9DyFWsQQgnn4uNajjlZNdUhSoA79GwflK3/nGggoE8ZG yNxIGmLZIjCxthM9FFVU9w+KBnx5us9QwZX/InpRFxfGO/xyF0OxR+rRfuvaNrsI8DAW 7LWA== X-Gm-Message-State: AElRT7Hrgk3fBDgpfP9mbZOG0KkPt/RNcIlqnUDltHCMzMzJYaD0JHfJ Eih1PfpeHeiKcgBZKyV0I5M= X-Google-Smtp-Source: AG47ELtBcH4U5u0yQy2laDjIWweif8wamOgbtcpAHS+AVSwj038DKcLcjoxglJayGxVVrcVmhBURkQ== X-Received: by 10.223.149.68 with SMTP id 62mr4971384wrs.249.1520815602346; Sun, 11 Mar 2018 17:46:42 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-811b-a201-7b2a-8bed.holly.idiocy.org. [2001:8b0:3f8:8129:811b:a201:7b2a:8bed]) by smtp.gmail.com with ESMTPSA id m7sm11454689wrm.35.2018.03.11.17.46.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Mar 2018 17:46:40 -0700 (PDT) Content-Disposition: inline In-Reply-To: <83a7vetw32.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:144140 Archived-At: On Sun, Mar 11, 2018 at 06:29:05PM +0200, Eli Zaretskii wrote: > > Date: Sat, 10 Mar 2018 23:07:06 +0000 > > From: Alan Third > > Cc: 30699@debbugs.gnu.org, aaronjensen@gmail.com > > > > > Can x_set_window_size be called only from redisplay_internal? If not, > > > doesn't this risk leaving the updates disabled, if x_set_window_size > > > is called from some other place? > > > > No, I believe it’s never called from redisplay_internal. > > Then how do we guarantee that these two calls, one from > x_set_window_size, the other from redisplay_internal, will be > balanced, and you never end up with screen updates disabled when you > don't intend? > > > But x_set_window_size always leaves the frame blank (and there’s no > > way round that as far as I can see), so there’s not much risk in > > disabling screen updates until redisplay completes. All we’re doing is > > preventing the user from seeing a blank frame. > > The question is: can x_set_window_size be called without a redisplay > happening soon enough, e.g. if Emacs is busy doing some lengthy > calculation? OK, so this plan is a non‐starter. Can I check an assumption I’m making? Am I able to call redisplay whenever I want? That is, does calling it ever result in a longjmp? -- Alan Third