emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Strange bug with text scaling and variable-pitch
@ 2022-01-14  2:51 Andrew Hyatt
  2022-01-16  5:31 ` Andrew Hyatt
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Hyatt @ 2022-01-14  2:51 UTC (permalink / raw)
  To: emacs-orgmode


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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Strange bug with text scaling and variable-pitch
  2022-01-14  2:51 Strange bug with text scaling and variable-pitch Andrew Hyatt
@ 2022-01-16  5:31 ` Andrew Hyatt
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Hyatt @ 2022-01-16  5:31 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-16  5:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-14  2:51 Strange bug with text scaling and variable-pitch Andrew Hyatt
2022-01-16  5:31 ` Andrew Hyatt

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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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