From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Is it ok to use (redisplay), or should this be left to the experts? Date: Tue, 12 Feb 2019 09:06:13 +0100 Message-ID: <87sgwtfn2i.fsf@fastmail.fm> References: <871s5ktf9b.fsf@fastmail.fm> <87va1pgb3m.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="76747"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.1.0; emacs 26.1 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 12 09:13:30 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtTC5-000Js9-MT for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Feb 2019 09:13:30 +0100 Original-Received: from localhost ([127.0.0.1]:35349 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtTC4-0000Te-Fp for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Feb 2019 03:13:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtTAn-00089m-BW for help-gnu-emacs@gnu.org; Tue, 12 Feb 2019 03:12:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtT58-0001TX-Ly for help-gnu-emacs@gnu.org; Tue, 12 Feb 2019 03:06:19 -0500 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:60817) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gtT58-0001Ra-2n for help-gnu-emacs@gnu.org; Tue, 12 Feb 2019 03:06:18 -0500 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A14D622DDE for ; Tue, 12 Feb 2019 03:06:17 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 12 Feb 2019 03:06:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm2; bh=szjlnmqw8GTyjh9pKwYWruJQtF aaPK5TheswffbomSs=; b=DQQ9WjKdeELSQNw+qcECsQEgA22yXKvethKooCAF2O 6W9hweaLwWUAlqepm4o9jTyf4YdYjkcT1bsnC3sAxsTFG5n7AYCM31KosQ/Jfw4y 1/S3cRqsD1A9qTPbyLen7W4L/+nDpP60hnLe0/OI19zwkCABlAfHPboLJm3BHlIu Pk/Zg9B+hz7rO/qR6HBZHl2Ojy3CpljzSjQnF8Hf1U9DA2RQBVg1dZJyNZ9Wjkvh NxxGT+TOr1fGURAJzbDmvdK4kdNLC6GP8+0t9OT15JnSbl2p7YUrZ7T3hiuWAeqm KrmGvpuUJL7blrwKewB+yMqPfUSxTN7i5wMgXFt1SJ8w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=szjlnm qw8GTyjh9pKwYWruJQtFaaPK5TheswffbomSs=; b=8fg6f8ning2sCBoGJM3D6t HEkqkysdE8r2AaIlb2tPkIuzfZwDZuKLYSaiYlrSp/6RqIliLvjH3Qd5gvWaybRG M9B3HPplAJXneyUn+ehZRAT1DHCYQ6BssdG6FOqZIXoziOp98c853EgxoCpCF0oA hQzMesMODVvgsCxNhNJZ35vUzUgIcMmIbWKq3RgvEQHU7us8yLm0EqH0rs20dgi1 jyQaXB/Pgu2DXP1HY9Pqy3ox2vJCoRwBGhHF8d/y11XhMcR99ZWGF/B6zwczxb4j L3CZzFyql490hbiQcr+qK7NQ+PKwxkcdXmg4K9xx2L0fLNKbILJrzONXakKikBKA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledruddttddgudduiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecu fedttdenucenucfjughrpehffgfhvffujgffkfggtgesthdtredttdertdenucfhrhhomh eplfhoohhsthcumfhrvghmvghrshcuoehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgr ihhlrdhfmheqnecukfhppeelhedrledtrddvtddurddugeenucfrrghrrghmpehmrghilh hfrhhomhepjhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhmnecuvehluhhs thgvrhfuihiivgeptd X-ME-Proxy: Original-Received: from Swift.fastmail.com (ip5f5ac90e.dynamic.kabel-deutschland.de [95.90.201.14]) by mail.messagingengine.com (Postfix) with ESMTPA id 8911B10311 for ; Tue, 12 Feb 2019 03:06:16 -0500 (EST) In-reply-to: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.26 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:119373 Archived-At: On Tue, Feb 12 2019, Stefan Monnier wrote: >> The new text width only needs to be calculated once, so if I >> solve this with >> a function in `window-size-change-functions', the function >> would need to >> remove itself from that hook again. I guess it's feasible to >> call >> remove-hook inside the function, right? > > It should work fine, yes. If not, please report it as a bug > (and you > can work around it by postponing the removal to some silly > one-shot > timer so it's removed from outside the function). One more question: can I assume that full screen will have been activated when the functions in `window-size-change-functions' are called, or do I need to do something like: ``` (while (not (> (window-pixel-width) (window-pixel-width-before-size-change))) (sleep-for 0.1)) ``` -- Joost Kremers Life has its moments