emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andrew Hyatt <ahyatt@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Strange bug with text scaling and variable-pitch
Date: Sun, 16 Jan 2022 00:31:27 -0500	[thread overview]
Message-ID: <CAM6wYYL5kmwzR67GvcGStjeDx5SrHC9wbp8SBcSTLz=2Gw166A@mail.gmail.com> (raw)
In-Reply-To: <m21r1bc9mv.fsf@andrews-mbp.lan>

[-- Attachment #1: Type: text/plain, Size: 1650 bytes --]

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 <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 ()
>   "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.

[-- Attachment #2: Type: text/html, Size: 2283 bytes --]

      reply	other threads:[~2022-01-16  5:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-14  2:51 Andrew Hyatt
2022-01-16  5:31 ` Andrew Hyatt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAM6wYYL5kmwzR67GvcGStjeDx5SrHC9wbp8SBcSTLz=2Gw166A@mail.gmail.com' \
    --to=ahyatt@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: Strange bug with text scaling and variable-pitch' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).