all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: "積丹尼 Dan Jacobson" <jidanni@jidanni.org>, 39901@debbugs.gnu.org
Cc: 953033@bugs.debian.org, Katsumi Yamaoka <yamaoka@jpl.org>
Subject: bug#39901: Emacs needs to update window-width when the user updates the text size
Date: Wed, 4 Mar 2020 06:38:03 -0800 (PST)	[thread overview]
Message-ID: <8c863836-1236-49ea-b185-996f55ee18c7@default> (raw)
In-Reply-To: <877e00nqx8.5.fsf_-_@jidanni.org>

> Emacs needs to update window-width when
> the user updates the text size.

Apologies for not following this thread,
and if this reply is off-topic.  I stumbled
on this message by chance.

FWIW, letting users automatically resize
the window to accommodate a change in
text scale is the purpose of library
`face-remap+.el'.  This enhancement was
proposed to Emacs dev from the outset
(2009), but there was no interest.

`face-remap+.el' lets buffer font
resizing also zoom the window size
accordingly (horizontally, vertically,
or both).  That way, you can take
advantage of the space freed up by
resizing (text-scaling) to a smaller
font.

The code has just a small change to
`text-scale-increase'.

https://www.emacswiki.org/emacs/download/face-remap%2b.el

Option `text-scale-resize-window'
lets you control the behavior:

nil:            Don't resize window
`horizontally': Resize window only horizontally
`vertically':   Resize window only vertically
t:              Resize window both directions

[If the window is alone in its frame, and if
you also use library `fit-frame.el', then the
frame is resized (horizontally & vertically).]





  reply	other threads:[~2020-03-04 14:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <878skhphb5.8.fsf@jidanni.org>
     [not found] ` <b4msgip14kb.fsf@jpl.org>
2020-03-04 14:19   ` bug#39901: Emacs needs to update window-width when the user updates the text size 積丹尼 Dan Jacobson
2020-03-04 14:38     ` Drew Adams [this message]
2020-03-04 23:00       ` Katsumi Yamaoka
2020-03-05  0:28         ` 積丹尼 Dan Jacobson
2020-08-05 12:04     ` Lars Ingebrigtsen
2020-08-05 14:39       ` Eli Zaretskii
2020-08-05 14:51         ` Lars Ingebrigtsen

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=8c863836-1236-49ea-b185-996f55ee18c7@default \
    --to=drew.adams@oracle.com \
    --cc=39901@debbugs.gnu.org \
    --cc=953033@bugs.debian.org \
    --cc=jidanni@jidanni.org \
    --cc=yamaoka@jpl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.