From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#61340: 29.0.60; Extra space in xref buffer Date: Thu, 9 Feb 2023 21:58:38 +0200 Message-ID: <8c00c717-f046-41a5-56a3-6abebf996b63@yandex.ru> References: <868rh9zzws.fsf@mail.linkov.net> <6a7e3db4-bc2b-2742-bc6c-ad9da8203b85@yandex.ru> <86r0v0zk1o.fsf@mail.linkov.net> <86r0v080cf.fsf@mail.linkov.net> <86edqyralw.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2400"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cc: 61340@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 09 20:59:27 2023 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 1pQD4p-0000Vx-Ok for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Feb 2023 20:59:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQD4R-0007qy-VQ; Thu, 09 Feb 2023 14:59:04 -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 1pQD4Q-0007q7-SP for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 14:59:02 -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 1pQD4Q-0008AI-E1 for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 14:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQD4Q-0006Bz-9a for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 14:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Feb 2023 19:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61340 X-GNU-PR-Package: emacs Original-Received: via spool by 61340-submit@debbugs.gnu.org id=B61340.167597272723779 (code B ref 61340); Thu, 09 Feb 2023 19:59:02 +0000 Original-Received: (at 61340) by debbugs.gnu.org; 9 Feb 2023 19:58:47 +0000 Original-Received: from localhost ([127.0.0.1]:33822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQD4B-0006BS-Fv for submit@debbugs.gnu.org; Thu, 09 Feb 2023 14:58:47 -0500 Original-Received: from mail-ej1-f48.google.com ([209.85.218.48]:33376) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQD49-0006BD-VH for 61340@debbugs.gnu.org; Thu, 09 Feb 2023 14:58:46 -0500 Original-Received: by mail-ej1-f48.google.com with SMTP id ml19so9969898ejb.0 for <61340@debbugs.gnu.org>; Thu, 09 Feb 2023 11:58:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=LEuOVXTL777ghCJZYcu0y9Rz57Mz32q94kGDE+NcsyE=; b=dDt7FvEBuXQIzvalxrQgUSI6UeTbDK8pGUPoTAiBu0zb3fhgxsRYJjuyt5kb576B8f cyAZLRdo28DYSowVaKz5y7GELF/hTIkFmXyGSWpGSvLw80ZUFzUAN3M9Bd22Z9R5P3qj 3FqYuKsoN3/m1cs3h5Se1ULr66nu4iJGQpPFV3CU1fDozioAOeUpk6adjVqrH/dkA5Wf Z4Zsc1kYKaHtZaYFVlUYnYVFqqCH7HxILJD4r9IFRvubC/fhOnLjgdqJCPhAwhs5a0Gb 2D/NwLQ7i8dNvPRqANMGds0uBCUfbT1LpqvwmIAdXYb84gfVY2FYgqc3GsuJ/t57d5sQ g2vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LEuOVXTL777ghCJZYcu0y9Rz57Mz32q94kGDE+NcsyE=; b=vuHCH+9mDBykNweSbRO5qSH+BVfmU4PNI8HN8etsDpE+WLrPpSbuNiHkKx1oQwMZNB RgZg+YaNSKAKr11kwvi+yIaaJ8v83NL/u/IXMUNxnbpzBpvgdIJb2iQG7tbIynrlqde9 fJdvEaXI10IZWx3HLzf7kpWhidUiWOg7SghXVa+ujcfWFhJzDbvXyP6PzPbNsGn9B+q+ xTo6jAZdsnsYAKjEshTPKX7yb5qcl4LzN70r5z3qRFMYxs9U5XQyddYYW3lUBI1/mxnf qfZ9mQSutthrj7IbjhVZ7rhMIQpTqCIeGBFxPrHkbPAa+kf06OWj9Jt/CcoCTN9nDVG0 Z8uQ== X-Gm-Message-State: AO0yUKXCvIn9ZlJDBLI7luRiG2ZwDNBJcXfqmddvukwd1mAzOo/ice+6 NDDN30HpJ7hydh1AM5r62HQ= X-Google-Smtp-Source: AK7set8Jwe74TGe5KLjxs53L7nuxWdOQu7Gph4uEPqg4jv4yetJsANSA97M/W75F5To5AaN93si8ZA== X-Received: by 2002:a17:907:6d05:b0:880:3129:d84a with SMTP id sa5-20020a1709076d0500b008803129d84amr18023441ejc.60.1675972720051; Thu, 09 Feb 2023 11:58:40 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id 23-20020a170906101700b008aedc51fc02sm1297108ejm.210.2023.02.09.11.58.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Feb 2023 11:58:39 -0800 (PST) Content-Language: en-US In-Reply-To: <86edqyralw.fsf@mail.linkov.net> 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:255251 Archived-At: On 09/02/2023 19:51, Juri Linkov wrote: >> Here's the change I was suggesting. >> >> The difference is subtle, but seems like an improvement: >> >> diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el >> index 63e065e696e..581eda0513e 100644 >> --- a/lisp/progmodes/xref.el >> +++ b/lisp/progmodes/xref.el >> @@ -1126,7 +1126,9 @@ xref--insert-xrefs >> maximize (xref-location-line >> (xref-item-location xref))) >> for line-format = (and max-line >> - (format "%%%dd:" (1+ (floor (log >> max-line 10))))) >> + (format >> + #("%%%dd:" 0 4 (face xref-line-number) >> 5 6 (face shadow)) > Thanks, this looks nice and closer to the grep output fontification. Thanks for testing, pushed to master.