From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii 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:44:07 +0200 Message-ID: <83zgc8i8p4.fsf@gnu.org> References: <86pmd4h2tw.fsf@mail.linkov.net> <83a648jq04.fsf@gnu.org> <86fse0e37z.fsf@mail.linkov.net> <835yewjom2.fsf@gnu.org> <86h6ygcn2f.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12113"; mail-complaints-to="usenet@ciao.gmane.io" Cc: justksqsf@gmail.com, 59719@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 30 19:45:23 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 1p0S5D-0002wj-5v for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Nov 2022 19:45:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0S4v-0005j8-9y; Wed, 30 Nov 2022 13:45: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 1p0S4s-0005ih-Li for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 13:45:03 -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 1p0S4s-0007Kh-8x for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 13:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p0S4s-00024z-3n for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 13:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Nov 2022 18:45: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.16698338877974 (code B ref 59719); Wed, 30 Nov 2022 18:45:02 +0000 Original-Received: (at 59719) by debbugs.gnu.org; 30 Nov 2022 18:44:47 +0000 Original-Received: from localhost ([127.0.0.1]:34436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0S4d-00024Y-5q for submit@debbugs.gnu.org; Wed, 30 Nov 2022 13:44:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51340) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0S4Z-00024S-DE for 59719@debbugs.gnu.org; Wed, 30 Nov 2022 13:44:46 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0S4T-0007Hk-ML; Wed, 30 Nov 2022 13:44:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=i3g6CNrvRwkXcVqXWLOmOBlIgriUvEV/VprJDMdQleo=; b=hJnanemGbkNz JUclG2JsQgZN8nxZHycdAM5O4falz3b+HGurla4D1KYOzXSoJDe0EHBfUG+R0nxbZqKJqreeSotbE ZZUUb3X6B8jk7PToJGGGpumj7aEHpL9kAKFdfep2Ir4E3AuXF+UX0r03Ku5FPz7yA4k6iLzgpvL2B IGLfK5aWYdUimf/5+qNgeSimbD3YaN90ml8oSyxdBPcaJcG8kejNXhRcDqPgTyIeRRWtyOABuinwq PYLk8y+IlS5MlwMq0R2cEC3W1shmYJtcXFY/xU4L0bz9zV37QjibnzliApqfEYraunagc55CIJhUj oSR6KnzNpsTmJuP7PYhXfQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0S4S-00055U-UZ; Wed, 30 Nov 2022 13:44:37 -0500 In-Reply-To: <86h6ygcn2f.fsf@mail.linkov.net> (message from Juri Linkov on Wed, 30 Nov 2022 20:30:16 +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:249551 Archived-At: > From: Juri Linkov > Cc: justksqsf@gmail.com, 59719@debbugs.gnu.org > Date: Wed, 30 Nov 2022 20:30:16 +0200 > > > 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. Are they so different in their dimensions? And how many icons do we have in this case? > 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? Yes, based on the default face's font. Exactly like the dimensions of the text-area of the window are calculated.