emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andrew Hyatt <ahyatt@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Strange bug with text scaling and variable-pitch
Date: Thu, 13 Jan 2022 21:51:36 -0500	[thread overview]
Message-ID: <m21r1bc9mv.fsf@andrews-mbp.lan> (raw)

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

             reply	other threads:[~2022-01-14  2:52 UTC|newest]

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

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=m21r1bc9mv.fsf@andrews-mbp.lan \
    --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).