all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: justksqsf@gmail.com, 59719@debbugs.gnu.org
Subject: bug#59719: 29.0.60; emacs-news-mode does not adjust the width of the fringe to accommodate the outline icons
Date: Wed, 30 Nov 2022 20:30:16 +0200	[thread overview]
Message-ID: <86h6ygcn2f.fsf@mail.linkov.net> (raw)
In-Reply-To: <835yewjom2.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 30 Nov 2022 20:15:01 +0200")

>> set-window-margins specifies the number of characters.
>
> Yes.  But that's not a problem: you can ask for 2 or 3 characters, as
> needed.
>
>> Maybe need to set the margin width to more characters if string-width
>> returns more than 1 character?
>
> Why not use string-pixel-width, and divide by what default-font-width
> returns?

This means to iterate over all icons and get their maximal width.

>> But the core problem is that when font size is increased in the buffer,
>> the margin pixel size doesn't increase proportionally.
>
> This is how the margins were designed: they never resize automatically.  It
> is up to the Lisp program to do that.

There is one thing that I don't understand about margins: could you clarify
how the default width of a character cell is calculated?  Is it based
on the default font size?





  reply	other threads:[~2022-11-30 18:30 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-30  9:10 bug#59719: 29.0.60; emacs-news-mode does not adjust the width of the fringe to accommodate the outline icons Kai Ma
2022-11-30 15:11 ` Eli Zaretskii
2022-11-30 16:11   ` Kai Ma
2022-11-30 17:08     ` Eli Zaretskii
2022-11-30 16:26   ` Arash Esbati
2022-11-30 16:41 ` Juri Linkov
2022-11-30 17:44   ` Eli Zaretskii
2022-11-30 17:56     ` Juri Linkov
2022-11-30 18:15       ` Eli Zaretskii
2022-11-30 18:30         ` Juri Linkov [this message]
2022-11-30 18:44           ` Eli Zaretskii
2022-11-30 18:59             ` Juri Linkov
2022-11-30 20:19               ` Eli Zaretskii
2022-12-01 18:51         ` Juri Linkov
2022-12-01 20:09           ` Eli Zaretskii
2022-12-02  7:54             ` Juri Linkov

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=86h6ygcn2f.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=59719@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=justksqsf@gmail.com \
    /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.