From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: Tweaking the output of `C-h b' Date: Sun, 31 Oct 2021 18:24:37 -0700 Message-ID: References: <87lf29xdkf.fsf@gnus.org> <87h7cxx9bh.fsf@gnus.org> <87zgqpvtky.fsf@gnus.org> <87v91dvt6y.fsf@gnus.org> <87o874vhp2.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9705"; mail-complaints-to="usenet@ciao.gmane.io" To: Lars Ingebrigtsen , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 01 02:26:58 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mhM6D-0002HZ-VH for ged-emacs-devel@m.gmane-mx.org; Mon, 01 Nov 2021 02:26:57 +0100 Original-Received: from localhost ([::1]:36562 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhM6C-0003NA-Pa for ged-emacs-devel@m.gmane-mx.org; Sun, 31 Oct 2021 21:26:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhM41-0002Ao-Os for emacs-devel@gnu.org; Sun, 31 Oct 2021 21:24:41 -0400 Original-Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]:34812) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mhM3z-0008WD-Qb for emacs-devel@gnu.org; Sun, 31 Oct 2021 21:24:41 -0400 Original-Received: by mail-pg1-x536.google.com with SMTP id j9so7646916pgh.1 for ; Sun, 31 Oct 2021 18:24:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:in-reply-to:references:mime-version:date:message-id:subject:to; bh=kVbXjVnOzffc1pFbit3enfpl709btv7RxaMThwDRbpA=; b=FU0nN6bxF6HRfqWg8kAQnw4B8y6de/iZb8s8Ea7XoiXFbu9/XbawGg8u/gPvFpn63W NiZGD2NNt4Th3tplgmtvg4f+xKaKg4OnCvMhQRDT8hd8GqoWdER2f7QBNGVrCEVn/3l9 vFWKWn52vfZ7Eyrun+GSFLXCHR1Z5r5bBM3lHv5LAaDFSRbODRUvLwpRQG0CRBIsm5rD UJzmoQJT3wCkCpfVs6cbjbjtkMMSV7GuTaObetQ/wsyKISp88CY7TJV++4jXte8+L9RK iLx6wIp2UCJkjJFkoVtgI5kPetG3SlQw2bXnm/WqUPSloD9Vt9i91mIQ519Xy/6n+7k5 8MPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to; bh=kVbXjVnOzffc1pFbit3enfpl709btv7RxaMThwDRbpA=; b=6Mh8mK9XqHq4vxudL+gf0G96qa5kpNrY/xiS28ZzyfRqVB7LGvDmVDTPLQ3glYTuee 0HR55wQW3sn5VzoSBXXe5n/t8UTNem1707unZkXAksj2GygnJ06M/K28fe7nEI8C9CRq IMuCOVh2UFjZrtBZPH0dJuPlxT6TtHH9PxpBxO7KaVh6dLJSwzKvC9hjs2gqiaHvo5Wp /R/vr0eTTiqQf6r8cwMot0DU5DnaKvrlax8fbtqe43KrxOnV8s0wObxsFf9ypUS2TcoO vgUIddHNnr6zYZdovxQ2hRxdQiMazVuKIVDlfOqSb561IBXAIj11B21hoU3dxth9IsGe Sb4w== X-Gm-Message-State: AOAM532SWVNAAhqHtoJXOM09o3XAcJRlsQbu7iHYAI+zDNSEW/2Cdikn 3/2etZBG2DdQfXtfQr6VzBcPn0OJiGs1/jwS0ro= X-Google-Smtp-Source: ABdhPJzJ55ArFjRZG3iDRgvQOFwsDwQT67Rui//1LxOu3fR4QQ70nOEbPTpUMuTwHLoefb82aqtq+lENLQ2qByyAxAA= X-Received: by 2002:a63:370c:: with SMTP id e12mr19328390pga.359.1635729878049; Sun, 31 Oct 2021 18:24:38 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 31 Oct 2021 18:24:37 -0700 In-Reply-To: <87o874vhp2.fsf@gnus.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=stefankangas@gmail.com; helo=mail-pg1-x536.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:278353 Archived-At: Lars Ingebrigtsen writes: > The following patch fixes the issue and makes things line up better: > > diff --git a/lisp/faces.el b/lisp/faces.el > index 83c6b69532..84180eadc0 100644 > --- a/lisp/faces.el > +++ b/lisp/faces.el > @@ -2879,10 +2879,10 @@ help-key-binding > ;; We use negative thickness of the horizontal box border line to > ;; avoid enlarging the height of the echo-area display, which > ;; would then move the mode line a few pixels up. > - :box (:line-width (1 . -1) :color "grey80")) > + :box (:line-width (-1 . -1) :color "grey80")) > (((class color) (min-colors 88) (background dark)) > :background "grey19" :foreground "LightBlue" > - :box (:line-width (1 . -1) :color "grey35")) > + :box (:line-width (-1 . -1) :color "grey35")) > (((class color grayscale) (background light)) :background "grey90") > (((class color grayscale) (background dark)) :background "grey25") > (t :background "grey90")) LGTM. I used the negative -1 for the y value to avoid the line being taller, so it makes sense to use it for the x value to avoid characters being wider.