unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Emre Yolcu <mail@emreyolcu.com>
To: 71085@debbugs.gnu.org
Subject: bug#71085: text-scale-adjust does not adjust margin width
Date: Mon, 20 May 2024 18:50:28 -0400	[thread overview]
Message-ID: <C7031EF2-EBCF-42B6-A79E-B1EA6B4F37FD@emreyolcu.com> (raw)

As of Emacs 29.3, changing the text size in a buffer using  
text-scale-adjust has no affect on margin width. Since the text displayed  
in the margins has the same height as the text in the buffer, this  
behavior causes the text in the margin to be clipped if we increase the  
text size too much by using text-scale-adjust. Here are the steps to  
confirm:

1. Launch with "emacs -Q".
2. Evaluate:

   (set-window-fringes nil 0)
   (set-window-margins nil 1)

3. Switch to a scratch buffer.
4. Place the cursor, which should be box-shaped by default, on the  
first-column of the buffer.
5. Increase the text size in the buffer by pressing C-x C-= several times.

   Expected behavior: Left margin has exactly the same width as that of the cursor.
   Current behavior: Left margin has width much smaller than that of the cursor.

It also seems to me that there is no way to work around this problem in  
the Elisp layer, because text-scale-mode works by remapping faces in a  
buffer-local manner; however,
- there is no face defined for the margins, and
- it seems that the pixel width of the margins is not determined in a  
buffer-local manner.

Given that {left,right}-margin-width are buffer-local variables, I would  
expect their pixel width to be determined in a buffer-local manner.





             reply	other threads:[~2024-05-20 22:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-20 22:50 Emre Yolcu [this message]
2024-05-21 11:38 ` bug#71085: text-scale-adjust does not adjust margin width Eli Zaretskii
2024-05-21 16:14   ` Drew Adams via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-21 16:14   ` Emre Yolcu
2024-05-21 18:17     ` Eli Zaretskii
2024-05-21 20:10       ` Emre Yolcu
2024-05-22 12:03         ` Eli Zaretskii
2024-05-22 17:05           ` Emre Yolcu

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=C7031EF2-EBCF-42B6-A79E-B1EA6B4F37FD@emreyolcu.com \
    --to=mail@emreyolcu.com \
    --cc=71085@debbugs.gnu.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).