From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aHCYFiiu42GtsQAAgWs5BA (envelope-from ) for ; Sun, 16 Jan 2022 06:33:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cK9dDyiu42H3FgEAG6o9tA (envelope-from ) for ; Sun, 16 Jan 2022 06:33:28 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C4EC98A2D for ; Sun, 16 Jan 2022 06:33:27 +0100 (CET) Received: from localhost ([::1]:44150 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n8yAQ-00051Q-TQ for larch@yhetil.org; Sun, 16 Jan 2022 00:33:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8y8l-0004sS-3O for emacs-orgmode@gnu.org; Sun, 16 Jan 2022 00:31:43 -0500 Received: from [2a00:1450:4864:20::129] (port=44608 helo=mail-lf1-x129.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n8y8j-0001wr-4j for emacs-orgmode@gnu.org; Sun, 16 Jan 2022 00:31:42 -0500 Received: by mail-lf1-x129.google.com with SMTP id o15so44746169lfo.11 for ; Sat, 15 Jan 2022 21:31:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=6m7C+uP4Qu74s64lhK7msw1/jZFgfX75YvuVnmgH//M=; b=MrfDJrtcDTW+fBHu5aXBn8HXyVQz6mShbNrJTXE8+lS2nzqhJHqvqD/iFWJlzmk129 xRFIqgGmaR8l+3jZ2Tv1SnQF+QuaTUzhzBbM51P63Sy8syJQ07wRwCw7LwEn54/D8rQv 31ofvjKkIBhDn+LB8Rktt/iu+G0oZamUvmf88tV1CRgoiP28qWeLLtyHIbtlcE/A6Qr7 xtAJ/9ub1Az9kGNJFBsLEeQujsXKdY4c6EQfKb9Gf4Xs28ixhSSq57FtVuureOryAIHv CzXMy7qGKQK7TwSuPAx3zaWzWJsFEy2S4dcuJlEGM7xGYICKMUn41+1VjCp2bcSHD1Kh qB6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=6m7C+uP4Qu74s64lhK7msw1/jZFgfX75YvuVnmgH//M=; b=KH98hIC2WaySVJPhmBZzyihaZ1eDQO1U2GXFT4GnvLZlthfDzRyzagAvE/18aKbzC7 8ko53BLtwkqiRhLdYac4+Z0i2qI8DmYwLHQAQxqV/mQJD9A3qA7wEySM2LEkNUOc8/T7 rr3RIpoZCuy9pxCrdLQxKoAVqA3X0rMsUpVZJd8kXtYzxFS7Zxe7mOOCrBcu+DaieZjH KPqMAXQwOEUl6lRpX3v2WSW+M+xNi6V4Hbitgs22gB+sojw+YUSq2mJdLc5/i8n8i5tL jK9ETTYPrb65YbC98YJ8/3YKWON0Za1LPB/fz4J5FZh77o+sbhOkFohcc59xAC1EhuCB /PUQ== X-Gm-Message-State: AOAM5325aE3NKHH5d7Lfgl+gZSj//zcAm8mHdyxgFpZ/BjxSRTp+cMEU 3CREo7m6D/XEKbDaH9UMMYTc11dnHSUHZDKsqtx17OmV X-Google-Smtp-Source: ABdhPJwjEh5hNg3JJ96WSaOwceudplqkc59rOjMJ22tJxC6Ip+px5mT/vqGJLWSWVqNnqnFdG/h+E7mlM4pxIVzfAlc= X-Received: by 2002:a2e:780c:: with SMTP id t12mr7219693ljc.320.1642311098409; Sat, 15 Jan 2022 21:31:38 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Andrew Hyatt Date: Sun, 16 Jan 2022 00:31:27 -0500 Message-ID: Subject: Re: Strange bug with text scaling and variable-pitch To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000a1a6ac05d5ac592b" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::129 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=ahyatt@gmail.com; helo=mail-lf1-x129.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642311207; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=6m7C+uP4Qu74s64lhK7msw1/jZFgfX75YvuVnmgH//M=; b=qi3fNhh/GnmFsSG8QEgi1GfdbtAolkDV77eVeCm05C9vgxlNu25WNEIXm8NC9lii1KJt/a 3EfutAMzgTPw1uyYUli3inXh+DVEQVOmeCp9OT9wgPMCAxZhiH99/xdrvFEXqtFTxWh7jN 1bewq+Rh3SM/FV4RcTWm9Xxdcf7X0ahaELgewhHPU0clV+zjnPYeYJjV2DLzLXctQtadDI DWSKzFDMsKaqv1+NIC604eCfNZh9fYIJafkvmpij4Rm5VYfgs1NEDmV0OtPu247A1GvtEw kQcC7NFapoW2B7/PotT5kQp6BgShAVk9FRzZuGV2rBaK9+gQ53hrvBbSwCtKAw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642311207; a=rsa-sha256; cv=none; b=MTH+29M9cnToSElBQFdaC1cwxGlcpREATxzZcl7I5eiyuyo/luOY+Z9VPN6lNAh39koPcX s8iBVJOXbgY0BhLOCgzxFCx1/7Icn/tl/C9lfySqZu+uk1JaX5GLjALNzhzqCsjihDRpJ0 99ImbZ0YyVjtrNRI3kS6dtBT/DMR86ixGt7wOlemPavUmgMe+BLmihucNmJOg9sGKZcOqj pzHpQZZWGJAFRBj83NlaHYKyCx2RGr6G19lsdEQJvoWUpZvzDAPz3dDrVkLY1Jt9ZUegol k+Pnufz7ypsJVzazk/0+RBzFnvY7W8JBupSp9YxHsx4ywz1NjVZR4YiCsK0UnQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=MrfDJrtc; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.33 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=MrfDJrtc; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: C4EC98A2D X-Spam-Score: -4.33 X-Migadu-Scanner: scn1.migadu.com X-TUID: t8ZGENkleaoh --000000000000a1a6ac05d5ac592b Content-Type: text/plain; charset="UTF-8" I tracked this down to a bug in emacs, which happens only when indirect buffers are cloned. Reported as bug#53294 with a patch. On Thu, Jan 13, 2022 at 9:51 PM Andrew Hyatt wrote: > > Hi all, > > I've been having an odd problem where if I try to change my text > scale on my org capture buffers, the scale keeps increasing, and > increases the scale on the parent of the indirect org-capture > buffer, on each capture. > > I'm using org-mode 9.5, emacs 29.0.50. > > Debugging into the issue, I realized I can only reproduce this if > the org-mode buffer has variable-pitch-mode on. > > Here's a short repro that works on emacs -Q (of course, you may > want to change the path): > > (require 'face-remap) (defun ash/big-font () > "Creates a font that is big enough for about 20 lines of text." > (interactive) (let ((text-scale-mode-amount (/ (frame-height) > 20))) > (text-scale-mode 1))) > > (require 'org-capture) (add-hook 'org-capture-mode-hook > #'ash/big-font) (setq org-capture-templates '(("c" "Capture" entry > (file "~/Desktop/test.org") nil))) (find-file > "~/Desktop/test.org") (variable-pitch-mode 1) > > After evaluating this, every time you call org-capture, the text > size will increase, until the text size is so large emacs crashes! > > I have also tried to reproduce this without org-mode, just using > indirect buffers, but can't do it. Something that org-mode is > doing is causing this, but org-capture is complicated enough that > I can't really see what it could be. I can and will continue > looking into this, but I'm curious if anyone might have a clue as > to what is going wrong here. > --000000000000a1a6ac05d5ac592b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I tracked this down to a bug in emacs, which happens only= when indirect buffers are cloned. Reported as bug#53294 with a patch.=C2= =A0

On Thu, Jan 13, 2022 at 9:51 PM Andrew Hyatt <ahyatt@gmail.com> wrote:

Hi all,

I've been having an odd problem where if I try to change my text
scale on my org capture buffers, the scale keeps increasing, and
increases the scale on the parent of the indirect org-capture
buffer, on each capture.

I'm using org-mode 9.5, emacs 29.0.50.

Debugging into the issue, I realized I can only reproduce this if
the org-mode buffer has variable-pitch-mode on.

Here's a short repro that works on emacs -Q (of course, you may
want to change the path):

(require 'face-remap) (defun ash/big-font ()
=C2=A0 "Creates a font that is big enough for about 20 lines of text.&= quot;
=C2=A0 (interactive) (let ((text-scale-mode-amount (/ (frame-height)
=C2=A0 20)))
=C2=A0 =C2=A0 (text-scale-mode 1)))

(require 'org-capture) (add-hook 'org-capture-mode-hook
#'ash/big-font) (setq org-capture-templates '(("c" "= Capture" entry
(file "~/Desktop/test.org") nil))) (find-file
"~/Desktop/test.org") (variable-pitch-mode 1)

After evaluating this, every time you call org-capture, the text
size will increase, until the text size is so large emacs crashes!

I have also tried to reproduce this without org-mode, just using
indirect buffers, but can't do it.=C2=A0 Something that org-mode is doing is causing this, but org-capture is complicated enough that
I can't really see what it could be.=C2=A0 I can and will continue
looking into this, but I'm curious if anyone might have a clue as
to what is going wrong here.
--000000000000a1a6ac05d5ac592b--