From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs 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 Organization: LINKOV.NET Message-ID: <86h6ygcn2f.fsf@mail.linkov.net> References: <86pmd4h2tw.fsf@mail.linkov.net> <83a648jq04.fsf@gnu.org> <86fse0e37z.fsf@mail.linkov.net> <835yewjom2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14735"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: justksqsf@gmail.com, 59719@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 30 19:32:18 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p0RsX-0003ZT-MJ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Nov 2022 19:32:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0RsM-000825-LB; Wed, 30 Nov 2022 13:32:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0RsJ-00081i-Bj for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 13:32:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p0RsI-0004Vu-Rl for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 13:32:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p0RsI-0001xf-AV for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 13:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Nov 2022 18:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59719 X-GNU-PR-Package: emacs Original-Received: via spool by 59719-submit@debbugs.gnu.org id=B59719.16698330817528 (code B ref 59719); Wed, 30 Nov 2022 18:32:02 +0000 Original-Received: (at 59719) by debbugs.gnu.org; 30 Nov 2022 18:31:21 +0000 Original-Received: from localhost ([127.0.0.1]:34358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0Rrd-0001xM-Af for submit@debbugs.gnu.org; Wed, 30 Nov 2022 13:31:21 -0500 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:37387) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0RrZ-0001xG-7k for 59719@debbugs.gnu.org; Wed, 30 Nov 2022 13:31:19 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id A4CBD100006; Wed, 30 Nov 2022 18:31:07 +0000 (UTC) In-Reply-To: <835yewjom2.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 30 Nov 2022 20:15:01 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:249548 Archived-At: >> 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?