unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#71085: text-scale-adjust does not adjust margin width
@ 2024-05-20 22:50 Emre Yolcu
  2024-05-21 11:38 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Emre Yolcu @ 2024-05-20 22:50 UTC (permalink / raw)
  To: 71085

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.





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

end of thread, other threads:[~2024-05-22 17:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-20 22:50 bug#71085: text-scale-adjust does not adjust margin width Emre Yolcu
2024-05-21 11:38 ` 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

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