From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Run `window-configuration-change-hook` in Lisp code? Date: Fri, 08 Nov 2024 15:55:12 +0100 Message-ID: <86h68hzsfj.fsf@fastmail.fm> References: <86ttckxian.fsf@fastmail.fm> <5193f2dd-05ca-4a92-a3f9-2a069b8ad72e@jamescherti.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37537"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier To: Stefan Monnier via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 08 15:56:06 2024 Return-path: Envelope-to: geh-help-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 1t9QP6-0009Vx-Bv for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 08 Nov 2024 15:56:05 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9QOa-0003eJ-H4; Fri, 08 Nov 2024 09:55:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t9QOP-0003ZI-8H for help-gnu-emacs@gnu.org; Fri, 08 Nov 2024 09:55:22 -0500 Original-Received: from fout-a6-smtp.messagingengine.com ([103.168.172.149]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t9QON-0006cB-FI for help-gnu-emacs@gnu.org; Fri, 08 Nov 2024 09:55:21 -0500 Original-Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id 347EE13802BE; Fri, 8 Nov 2024 09:55:16 -0500 (EST) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Fri, 08 Nov 2024 09:55:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1731077716; x=1731164116; bh=SgP0IWlPYI QGWW6OwXypHf3x8HP6vvJef8aXfkjKKl8=; b=kb9svT0xCyIJvM3U9e7hgxiAOK l/OS4mEAWpmcqnNUtgVj+iOodUywzbS9yoCL2Mbaf05T87g8y2rjq62JPISCy74K VgQFW8LUymGmO9davCEFLqjBqzfsGK+DUfXHB6Ttqa0OXHRQ3ofaKlhGQmGg2evb SejNXQ9d96BihkmolBb3NGnY8pkxlztTADYz2Ght/ud8sBhBVg00MDyXrV2c/A/5 EiNHp7laj3ihxoSn8taJxhkHyNQaKMiTohgWSXTiSZsg4bxx+vQdNf5Vvfl48DiU PbGiJNiMsUjFQXfqbT+DcJGt8Ra0GFGiw4Ll6sKkkBqQ0GL5AXiz4QiAzvbw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1731077716; x=1731164116; bh=SgP0IWlPYIQGWW6OwXypHf3x8HP6vvJef8a XfkjKKl8=; b=nTUiOJvEOy6mQc3fYH7EZffGCCaRHNWu7KR/ZfZ8tHITpP8Dmr3 NjKARhXSwcMT5SFHeBwILk90tf3o12DZoHzGLLWDIGIkhO05kMgTg5Bqe47JtymZ /ZIoZxYQ7vZWkNx8To1uNN+H2g3T8xqhIm6afYReNIJUZ2uokineF0LhfyxJKujs 6Y7+WXABxkvocszu5IyT5pqb/ikbYRaWYgIxYKaX1YY4zAI0j3FxRkVLBZy3tXvZ QxAJW7ROmzYjs9+RYHuTdgya5KhxEtX5WsrMOSpLEvoA5EzG5reDx2tyIa3bblAg H9LWysCjWI5WfXpU9V61p/k22I760CWF0mg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrtdeigdeiiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefhvfevufgjfhffkfggtgesthdtredttddttdenucfh rhhomheplfhoohhsthcumfhrvghmvghrshcuoehjohhoshhtkhhrvghmvghrshesfhgrsh htmhgrihhlrdhfmheqnecuggftrfgrthhtvghrnhepkeevleeiueeltedtfeeugedvudek hfegveeludevieelteekgefgkefhueffffeinecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepjhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghi lhdrfhhmpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtth hopehmohhnnhhivghrsehirhhordhumhhonhhtrhgvrghlrdgtrgdprhgtphhtthhopehh vghlphdqghhnuhdqvghmrggtshesghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: ie15541ac:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 8 Nov 2024 09:55:14 -0500 (EST) In-Reply-To: (Stefan Monnier via Users list for the's message of "Fri, 08 Nov 2024 09:12:46 -0500") Received-SPF: pass client-ip=103.168.172.149; envelope-from=joostkremers@fastmail.fm; helo=fout-a6-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148286 Archived-At: On Fri, Nov 08 2024, Stefan Monnier via Users list for the GNU Emacs text editor wrote: > Then again, looking at that patch I can't understand why it would work. > Does it work? If so how? That code is run only when `visual-fill-mode` > is enabled, AFAICT, Yes, but that's the point. When `visual-fill-column-mode` is active, a change in text size should trigger a recalculation of the window margins by `visual-fill-column-mode`. Eli made two suggestions (`text-scale-mode-hook` and `add-variable-watcher` on `face-remap-alist`). I'll give them a try as soon as I find some time. -- Joost Kremers Life has its moments