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#46859: 28.0.50; [PATCH]: Add option to truncate long lines in xref.el Date: Tue, 18 May 2021 03:39:53 +0300 Message-ID: <01ad60b1-950c-b8bb-7384-23e5482ecc58@yandex.ru> References: <5E938190-7EFF-444C-9A3F-C6820AA7F1E5@thornhill.no> 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="30677"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 Cc: Lars Ingebrigtsen , 46859-done@debbugs.gnu.org, juri@linkov.net To: Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 18 02:41:14 2021 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 1linnO-0007rW-Lu for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 May 2021 02:41:14 +0200 Original-Received: from localhost ([::1]:32940 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1linnN-0001Ye-PB for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 May 2021 20:41:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53008) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1linnC-0001X4-Nw for bug-gnu-emacs@gnu.org; Mon, 17 May 2021 20:41:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42526) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1linnB-00062A-QL for bug-gnu-emacs@gnu.org; Mon, 17 May 2021 20:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1linnB-0000YB-OO for bug-gnu-emacs@gnu.org; Mon, 17 May 2021 20:41:01 -0400 Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 May 2021 00:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 46859 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Mail-Followup-To: 46859@debbugs.gnu.org, dgutov@yandex.ru, theo@thornhill.no Original-Received: via spool by 46859-done@debbugs.gnu.org id=D46859.16212984052030 (code D ref 46859); Tue, 18 May 2021 00:41:01 +0000 Original-Received: (at 46859-done) by debbugs.gnu.org; 18 May 2021 00:40:05 +0000 Original-Received: from localhost ([127.0.0.1]:54070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1linmH-0000Wg-Be for submit@debbugs.gnu.org; Mon, 17 May 2021 20:40:05 -0400 Original-Received: from mail-wr1-f43.google.com ([209.85.221.43]:45759) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1linmD-0000W6-Br for 46859-done@debbugs.gnu.org; Mon, 17 May 2021 20:40:03 -0400 Original-Received: by mail-wr1-f43.google.com with SMTP id h4so8192627wrt.12 for <46859-done@debbugs.gnu.org>; Mon, 17 May 2021 17:40:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=vG/Wr6Fwsa73pQuqxqQF0vQQFjSLsKcbPgbebYLsbAM=; b=gezQx45vf2cHt4557CBNvRFI1XjCrf/qHz9tyg4lKadvK3gKGqyVjmEBIKL9gAo0hr 7fgpIZ2h9ePMSeqV0ZJeB0EUI+QR5dDtiVzLWudOXayZh7LmJOiBu54nH9U/Ifaubjf6 VRHVZSdVvt9hUeQ+NqC8oPvohwsEMACWcxRXV/vyBz3u7IFJkshnFoFQt8AlAqBILmET UtmqfXMnXtnp+PAaxDN2CLjORXI5K8vvz7J6gPQg1ubfrS9innhZBQfvwBZSuzCY3BqD uQHn+XEDIhsgn8n47DqaTUsWu0aXMY04HlCdiyXh9WApe0RMB4GQQ8IfHYYi++CfDb2m /+KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=vG/Wr6Fwsa73pQuqxqQF0vQQFjSLsKcbPgbebYLsbAM=; b=WJwTWM3y90UCC8rVXzijlfIJKST2GupVMp11MnBLMnr2raiILfSaK7SUQkvKbqDztL 4S6nIPljpuodTsHa3y+rhlNoM+woCEfvZRC9at69CiC4IcJVgl5xZQbCddn2SEOkTw+9 rmTVlSCmVjbpaPGU2NlWCBu/HFFkKWntKQzxk/b02SsvJS6txwrfEctuw+uhiDMsTj/a Ru73SjJSF96tX8q0gzyk6q/b39YeHDweOwQOP0K0/TgzBJftgtQkfCXGgoGlMgVMJ1lu xqN50O0yQJM3thkSno1u2eeuEZSBeZhhRpCoJJdzEvRcf14hFOqYvHX5Nt77zsd+ouv8 Mp4Q== X-Gm-Message-State: AOAM532FjeYc3n12i8U1SafddRG0hUjUS7H7kfqbwQTBGcOJrA95RkaM 7Ea1QYL3pjTKc23pumWd1mc= X-Google-Smtp-Source: ABdhPJyhgzAl1k3+F4gSqun46AsGyGdNMRWXaqaLT4Kk0LDe4EC1X8T6ytf4SgJrjmbk711kAg/PWA== X-Received: by 2002:a05:6000:108b:: with SMTP id y11mr3079807wrw.166.1621298395472; Mon, 17 May 2021 17:39:55 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id e38sm859842wmp.21.2021.05.17.17.39.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 May 2021 17:39:54 -0700 (PDT) In-Reply-To: <5E938190-7EFF-444C-9A3F-C6820AA7F1E5@thornhill.no> Content-Language: en-US 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" Xref: news.gmane.io gmane.emacs.bugs:206753 Archived-At: Version: 28.1 On 17.05.2021 19:57, Theodor Thornhill wrote: > Hi and sorry for the late reply, > >> I was looking for some user experience feedback (with possible subsequent tweaks, etc), but the current behavior is indeed annoying enough to install this anyway. > > Agreed. When testing I found it to be a nice improvement. Very good. I've pushed an updated version in d83db639d3: - It make sure not to hide the line number with the ellipsis anymore. - The option was renamed to xref-truncation-width. - It can be set to nil to disable the feature. Please try the new version when you have the time.