unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Stephen Berman <stephen.berman@gmx.net>, daniela-spit@gmx.it
Cc: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: RE: Making windows have same number of columns
Date: Thu, 26 Nov 2020 15:01:19 -0800 (PST)	[thread overview]
Message-ID: <4b1636f4-a576-4b3e-ab2e-c54744ead9c4@default> (raw)
In-Reply-To: <871rgfu63v.fsf@gmx.net>

> Changing the font size with text-scale-adjust has no affect on
> window-body-width; you can only change that by using
> shrink-window-horizontally or enlarge-window-horizontally if your frame
> has two or more side-by-side windows, or else if you change the width
> of the frame.

This doesn't directly address the original question, but FWIW:

Library `face-remap+.el' makes the `text-scale-*'
functions respect this new user option:

,----
| text-scale-resize-window is a variable defined in `face-remap+.el'.
| Its value is t
| 
| Documentation:
| Non-nil means text scaling resizes the window or frame accordingly.
| For example, if you use `C-x C--' (`text-scale-decrease')' to make the
| text smaller, then the window or frame is made smaller by a similar
| factor.
| 
| If the window is not alone in its frame, then the window is resized.
| Otherwise, the frame is resized (provided you also use library
| `fit-frame.el').  The frame is always resized both horizontally and
| vertically.
| 
| You can customize this variable. 
`----

One aim behind this is to not waste horizontal
whitespace in the window when you reduce the
displayed text size.

You can likely use similar code to get the
requested effect.

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




  reply	other threads:[~2020-11-26 23:01 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-26 14:43 Making windows have same number of columns daniela-spit
2020-11-26 16:03 ` Stephen Berman
2020-11-26 16:18   ` Stephen Berman
2020-11-26 17:16   ` daniela-spit
2020-11-26 18:26   ` daniela-spit
2020-11-26 18:55     ` Stephen Berman
2020-11-26 19:01       ` daniela-spit
2020-11-26 19:21         ` Stephen Berman
2020-11-26 19:30           ` daniela-spit
2020-11-26 19:41             ` Stephen Berman
2020-11-26 20:22               ` daniela-spit
2020-11-26 20:31                 ` Stephen Berman
2020-11-26 21:19                   ` daniela-spit
2020-11-26 22:05                     ` Stephen Berman
2020-11-26 23:01                       ` Drew Adams [this message]
2020-11-26 23:07                         ` daniela-spit
2020-11-26 23:55                           ` daniela-spit
2020-11-27  0:51                             ` Drew Adams
2020-11-27  1:03                               ` daniela-spit
2020-11-27 15:37                       ` Stephen Berman
2020-11-26 21:42                   ` daniela-spit
2020-11-27 20:40                     ` Michael Heerdegen
2020-11-26 19:33           ` daniela-spit

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=4b1636f4-a576-4b3e-ab2e-c54744ead9c4@default \
    --to=drew.adams@oracle.com \
    --cc=daniela-spit@gmx.it \
    --cc=help-gnu-emacs@gnu.org \
    --cc=stephen.berman@gmx.net \
    /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.
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).