GNU bug report logs - #42839
[PATCH] Support displaying line numbers in goto-line

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Stefan Kangas <stefan@HIDDEN>; Keywords: patch; dated Thu, 13 Aug 2020 06:31:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 42839 <at> debbugs.gnu.org:


Received: (at 42839) by debbugs.gnu.org; 13 Aug 2020 09:16:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 13 05:16:50 2020
Received: from localhost ([127.0.0.1]:46893 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k69Lu-0004NP-8m
	for submit <at> debbugs.gnu.org; Thu, 13 Aug 2020 05:16:50 -0400
Received: from mail-wm1-f48.google.com ([209.85.128.48]:35226)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rpluim@HIDDEN>) id 1k69Lr-0004Ge-16
 for 42839 <at> debbugs.gnu.org; Thu, 13 Aug 2020 05:16:48 -0400
Received: by mail-wm1-f48.google.com with SMTP id 184so4419755wmb.0
 for <42839 <at> debbugs.gnu.org>; Thu, 13 Aug 2020 02:16:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :mime-version:content-transfer-encoding;
 bh=qEtF7IllKPEFV6l863WZdUC4Smb+BJEKjUtMAn50lIk=;
 b=RLntHq7yV5gl/o+Za9bU5VT0eQWvCtzp4PUEfVUWAunjm4KlllYLGsCGVeSVDzi1qs
 lCR3kYudehGsYJUjs4l5SO/2+bTgSTaINzLNMQUXx4DWKcnEf4wfhAjL6kgCixaiQ+hh
 /WwG2wwL7zL+IQjhIwOtgQctz9b69CKj8HzTgxR8N06qRgi6nZBWAwu+kyx1YRJxgMqW
 jL354bRwA0plGZfe76AEFpKuo8KPJrXyumqr778CuVBMlLmM+/UR3hGOik1wagV/5eA0
 VUkvX4lojVrEaCVn73eEkpymaFv77ZdcOEVWVIyBDdYupoKhSigoPpP5BQtQyt4DlwTZ
 AWhQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:mime-version:content-transfer-encoding;
 bh=qEtF7IllKPEFV6l863WZdUC4Smb+BJEKjUtMAn50lIk=;
 b=WnDwDmoG2msTy8AC75e9BCZQLwkW+miZV8RgVr23BV1T5DlkdgrU4vnwiBl0dXvsD3
 xiqFd2+RWuFyz5x9jhmjlmlCt26xlquI/cRlNACYP/WmKZgcLlxedGWdnlxDJrsXjFh6
 u9Rq68JiTv1BFxsr8HmXOSrRVAf8QnK2gWDsNQuEtnuJpn9dt4RJtKIRIoFc5kZQUCCx
 LyuNyTgwvfe68zlNXO/Qgu6h1hmEBvYMmvIclNGe9npqmSZjSPKXjdWOf/gSK6CpwhmF
 Olk8gDf9kfrrwP74T/m+OahpE+PXYgKpIBDetrNTh4Ml63CV7KXr2pHCDe7ElL+PPMog
 4DtA==
X-Gm-Message-State: AOAM533MuBQKMitLAA+iuu94U1ja7HZjJQgwydtGZE2JEiFWYQ9OvokZ
 v1OnwIq20ccscUSbbH7y6DifjGhP
X-Google-Smtp-Source: ABdhPJy/6YAin+k1wqJ+RLeOfser/g1LB/fDfKFeSt7z9hmSzgOflY2dOQ6iraLQo5COkhjwVQo5Og==
X-Received: by 2002:a05:600c:2112:: with SMTP id
 u18mr3334062wml.7.1597310200377; 
 Thu, 13 Aug 2020 02:16:40 -0700 (PDT)
Received: from rpluim-mac (vav06-1-78-207-202-134.fbx.proxad.net.
 [78.207.202.134])
 by smtp.gmail.com with ESMTPSA id c4sm9045531wrt.41.2020.08.13.02.16.39
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 13 Aug 2020 02:16:39 -0700 (PDT)
From: Robert Pluim <rpluim@HIDDEN>
To: Stefan Kangas <stefan@HIDDEN>
Subject: Re: bug#42839: [PATCH] Support displaying line numbers in goto-line
References: <CADwFkmkCryuZ6B0cgHEzX_V8mmad0gzBMQRR6dYU9958jVu9zg@HIDDEN>
 <m2a6yzhrsm.fsf@HIDDEN>
 <CADwFkmn_vfCHYe+S0E16p2Dy-v7w1MRoTDu5LJaDatSnkTH0=Q@HIDDEN>
Date: Thu, 13 Aug 2020 11:16:37 +0200
In-Reply-To: <CADwFkmn_vfCHYe+S0E16p2Dy-v7w1MRoTDu5LJaDatSnkTH0=Q@HIDDEN>
 (Stefan Kangas's message of "Thu, 13 Aug 2020 01:58:41 -0700")
Message-ID: <m25z9mj47e.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 42839
Cc: 42839 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Thu, 13 Aug 2020 01:58:41 -0700, Stefan Kangas <stefan@HIDDEN>=
 said:

    Stefan> Well, I don't always know the line number of every line in my w=
indow.

Neither do I, but if I=CA=BCm going to a specific number that doesn=CA=BCt
matter.

    >> For that matter, why not just move to the line using other motion
    >> commands?

    Stefan> I personally use `goto-line' only when I have a specific line n=
umber
    Stefan> that I want to go to.  It is true that there are other movement
    Stefan> commands that are often better to use.

    >> And if it=CA=BCs not visible, what does showing line numbers for the=
 lines
    >> that are visible get you?

    Stefan> It serves as a reminder of where you're at before you leave.

`goto-line' sets the mark, so that=CA=BCs only a 'C-u C-SPC' away.

Robert




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#42839; Package emacs. Full text available.

Message received at 42839 <at> debbugs.gnu.org:


Received: (at 42839) by debbugs.gnu.org; 13 Aug 2020 08:58:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 13 04:58:50 2020
Received: from localhost ([127.0.0.1]:46835 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k694U-00008P-G0
	for submit <at> debbugs.gnu.org; Thu, 13 Aug 2020 04:58:50 -0400
Received: from mail-yb1-f175.google.com ([209.85.219.175]:44030)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1k694R-00008A-Kp
 for 42839 <at> debbugs.gnu.org; Thu, 13 Aug 2020 04:58:48 -0400
Received: by mail-yb1-f175.google.com with SMTP id m200so2900997ybf.10
 for <42839 <at> debbugs.gnu.org>; Thu, 13 Aug 2020 01:58:47 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:in-reply-to:references:mime-version:date
 :message-id:subject:to:cc:content-transfer-encoding;
 bh=75lNma6NJRxDnJCqoRXKEnmVDm9ABmr6+s/05c8vnhI=;
 b=lHgX6oaZirFbprbvlQfVis3bfyaFQ7Rnv2Ft357CnRAkgcM5GeB4JRKC1IIH9NU9Ds
 PN4whvfVal6ge648P04ijHl8gcW/f29mDRIM+b4i+Hxhk2C8vgY+xtn0bfhjXkzWaunh
 +RSVFVjF/szYoWAw5NoknBDyYqK8lbt63Tin59eMKiDAig9YO/Pp+6f1OGcROpClW+fz
 tvM3WCu6br/F2BuCJBEGx80wMpVnYQ3gthJVWRAR7FdKFv791TlxUqs5qlbLzO1mrAst
 8UdORp8SvpIfVaVbX+CHWKfH7dBF/RI5ulSAz1u9bBI1ZF/n8VtfTB/TfTqHpRpjWwAk
 3F+Q==
X-Gm-Message-State: AOAM531JWxLiAgQX6AJ78Sk7liUDOt6sZ5OSp4N2GJbYyAfwhySY2qzk
 fVqb78URTdIvgLSUV85JIZr6Bf7N27oQDrxV2LY=
X-Google-Smtp-Source: ABdhPJz7Ae0EHvq0YN6aQ08nl23X9WvARjwuo8YLFoQPYxOPRVz0gMzpDH1GDXVCQ9DO3R8WelZn0HsGF2yHPI+6c1E=
X-Received: by 2002:a25:b290:: with SMTP id k16mr4873174ybj.389.1597309122020; 
 Thu, 13 Aug 2020 01:58:42 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Thu, 13 Aug 2020 01:58:41 -0700
From: Stefan Kangas <stefan@HIDDEN>
In-Reply-To: <m2a6yzhrsm.fsf@HIDDEN>
References: <CADwFkmkCryuZ6B0cgHEzX_V8mmad0gzBMQRR6dYU9958jVu9zg@HIDDEN>
 <m2a6yzhrsm.fsf@HIDDEN>
MIME-Version: 1.0
Date: Thu, 13 Aug 2020 01:58:41 -0700
Message-ID: <CADwFkmn_vfCHYe+S0E16p2Dy-v7w1MRoTDu5LJaDatSnkTH0=Q@HIDDEN>
Subject: Re: bug#42839: [PATCH] Support displaying line numbers in goto-line
To: Robert Pluim <rpluim@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 42839
Cc: 42839 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Robert Pluim <rpluim@HIDDEN> writes:

>>>>>> On Wed, 12 Aug 2020 23:30:42 -0700, Stefan Kangas <stefan@HIDDEN=
> said:
>
>     Stefan> Here's an interesting idea I picked up from Reddit: make goto=
-line
>     Stefan> enable display-line-numbers-mode temporarily when prompting. =
 Please see
>     Stefan> the attached patch.
>
>     Stefan> Comments or thoughts welcome, as always.
>
> Hmm, if the line you=CA=BCre going to is visible, why would
> you need goto-line to show line numbers?

Well, I don't always know the line number of every line in my window.

> For that matter, why not just move to the line using other motion
> commands?

I personally use `goto-line' only when I have a specific line number
that I want to go to.  It is true that there are other movement
commands that are often better to use.

> And if it=CA=BCs not visible, what does showing line numbers for the line=
s
> that are visible get you?

It serves as a reminder of where you're at before you leave.

> You'd have to add some interactive 'scroll window to show target line'
> functionality, I think.

Good idea, thanks.  Maybe I should look into that.

Best regards,
Stefan Kangas




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#42839; Package emacs. Full text available.

Message received at 42839 <at> debbugs.gnu.org:


Received: (at 42839) by debbugs.gnu.org; 13 Aug 2020 08:30:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 13 04:30:13 2020
Received: from localhost ([127.0.0.1]:46744 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k68cn-0003Zq-D7
	for submit <at> debbugs.gnu.org; Thu, 13 Aug 2020 04:30:13 -0400
Received: from mail-wr1-f49.google.com ([209.85.221.49]:37138)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rpluim@HIDDEN>) id 1k68cj-0003O0-8H
 for 42839 <at> debbugs.gnu.org; Thu, 13 Aug 2020 04:30:12 -0400
Received: by mail-wr1-f49.google.com with SMTP id y3so4464739wrl.4
 for <42839 <at> debbugs.gnu.org>; Thu, 13 Aug 2020 01:30:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :mime-version:content-transfer-encoding;
 bh=RCfgmPNwg4F4yZ/3cnEtjoGh6CzR41SzKXhHljItONc=;
 b=EWX1cfGAFu8L+Df+AkHAudwUNmjSh7yTv4EQbcs2c7VZpDh8PTKlIMomtVtbwKaxHk
 BG/un79vy/qNDjXme6upVGONpj18uGee6uSUCtTQtH6+OVAXDYwQEYCAa/1VawoaqXUS
 GwVRn2/wcB7jHbs8gDp38lIqy5QIRWESXp5jiHFBLj9lk9aZ6FU6xLZq915PnFfRpHan
 o+m5lRYlmuKXXJnqke6+fIUlE+9l2vo12N6L+LOfoy+8drubfLsYJltLPO3tNGJuMoTt
 ZI827ylL0sIJDi/+BHaiaq4Vx2cWslLhzoDvB42dKicQz6eRLqGixM2VxjItzZVZWmnm
 8Vyg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:mime-version:content-transfer-encoding;
 bh=RCfgmPNwg4F4yZ/3cnEtjoGh6CzR41SzKXhHljItONc=;
 b=afh1PWtz2+WM2+t1qcPOBStLL1C5rcc3tkWBU8jew3fwooEJVrK72ZwQeQhBVGHpiQ
 YmAl7TslV0pjxkLqFWswDPdl3cu5OJj1X4YwnAjKg7p9UOFGVxLLkYwIjCMbiRzzOnOA
 dD/WRX/gFm/gIqstYx/NRXfR9h1DiovIVdqwdu/jxDvAQPchMkKkOBq+oy2YX1Wl1sI1
 7G5WvQB0bPneKWKTXa5Nbj3NL1J867T9w1nk8wv+SmkB6yD7VBXCQy/SjSS8PMAyE+Gr
 YTdTVuzOcTZfLhO3iYTbr3PYlRVoZuxHWxA76GRQPnTwPCGGv8wGhJa1jJfuO3aXIsyu
 2b9A==
X-Gm-Message-State: AOAM532kR4o8XNCnblu6VLp5wxsPIaejQkfi3mqjTNSgaYxpQ/OtHHT6
 oMOAIa+L/hH2FdrrNLL93tk90Bcr
X-Google-Smtp-Source: ABdhPJwD00XkS4pltnWUdSUuirXRwpF6HKKSLyqA7J9EimigwNzBmQGK3CiPHBUg4k3smiR0POpvQQ==
X-Received: by 2002:adf:9591:: with SMTP id p17mr3018918wrp.237.1597307402765; 
 Thu, 13 Aug 2020 01:30:02 -0700 (PDT)
Received: from rpluim-mac ([2a01:e34:ecfc:a860:54e2:ceb7:cd47:c47b])
 by smtp.gmail.com with ESMTPSA id a11sm9423921wrq.0.2020.08.13.01.30.01
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 13 Aug 2020 01:30:02 -0700 (PDT)
From: Robert Pluim <rpluim@HIDDEN>
To: Stefan Kangas <stefan@HIDDEN>
Subject: Re: bug#42839: [PATCH] Support displaying line numbers in goto-line
References: <CADwFkmkCryuZ6B0cgHEzX_V8mmad0gzBMQRR6dYU9958jVu9zg@HIDDEN>
Date: Thu, 13 Aug 2020 10:30:01 +0200
In-Reply-To: <CADwFkmkCryuZ6B0cgHEzX_V8mmad0gzBMQRR6dYU9958jVu9zg@HIDDEN>
 (Stefan Kangas's message of "Wed, 12 Aug 2020 23:30:42 -0700")
Message-ID: <m2a6yzhrsm.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 42839
Cc: 42839 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Wed, 12 Aug 2020 23:30:42 -0700, Stefan Kangas <stefan@HIDDEN>=
 said:

    Stefan> Here's an interesting idea I picked up from Reddit: make goto-l=
ine
    Stefan> enable display-line-numbers-mode temporarily when prompting.  P=
lease see
    Stefan> the attached patch.

    Stefan> Comments or thoughts welcome, as always.

Hmm, if the line you=CA=BCre going to is visible, why would
you need goto-line to show line numbers? For that matter, why not just
move to the line using other motion commands?

And if it=CA=BCs not visible, what does showing line numbers for the lines
that are visible get you?

You'd have to add some interactive 'scroll window to show target line'
functionality, I think.

Robert




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#42839; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Aug 2020 06:30:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 13 02:30:51 2020
Received: from localhost ([127.0.0.1]:46589 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k66lH-0006dX-30
	for submit <at> debbugs.gnu.org; Thu, 13 Aug 2020 02:30:51 -0400
Received: from lists.gnu.org ([209.51.188.17]:45428)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1k66lD-0006dN-9C
 for submit <at> debbugs.gnu.org; Thu, 13 Aug 2020 02:30:49 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:57508)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <stefankangas@HIDDEN>)
 id 1k66lD-0004LY-0G
 for bug-gnu-emacs@HIDDEN; Thu, 13 Aug 2020 02:30:47 -0400
Received: from mail-yb1-f179.google.com ([209.85.219.179]:41615)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <stefankangas@HIDDEN>)
 id 1k66lA-0002gj-LB
 for bug-gnu-emacs@HIDDEN; Thu, 13 Aug 2020 02:30:46 -0400
Received: by mail-yb1-f179.google.com with SMTP id s195so2726951ybc.8
 for <bug-gnu-emacs@HIDDEN>; Wed, 12 Aug 2020 23:30:44 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:mime-version:date:message-id:subject:to;
 bh=KjBLccKdY/xCoPyorezpd1yeHsb5yBG17lrrjAwvsUw=;
 b=gQg36O1v8NFthGR9AEIAyxCLrzYIc3EbXCnhPkuHFizcYfuucGRt4DofBla2Odz2nr
 DuK/tEo8fWgEDZvhl5dpuydhMMs270MNcmSrp6GzmOq4WTHuIWVTyQCrAm4MDcTiLd3d
 GIMEiqpAFDuGmWccFaGCCCzDpXuN1Lqn3yg624IF7O8AwYJQJj+SjnK6MMliytpX0nxW
 EpporFSoG40xmfRj/5bY07nItSPVqww4M9cDTOZP76FC5zeLyESmzAwRS/fmBRibHg1s
 hRqD5+i5XKaELIxuNcJjKSwNWFW1ZvlmMDaiVFuMil/0c8yq74MswcIuOIfzpk2MOmyM
 f0Kw==
X-Gm-Message-State: AOAM532gLU14zVanD8V1zAek4CXTYbqVPKqBvDGRyS1Ie5XicAc7g3bT
 9KVs59zLi7WvzA6w0Y8OYpmXL2W5TzUi8nD4fjquTtuErqw=
X-Google-Smtp-Source: ABdhPJx92NcYsxrCP8BcdwLvJUbZo2SV2FNXHdcxH+e9ViuBcAPHMwXnOfESA/hBJPoTiLc6lgqM9+400yCK/pkMXe0=
X-Received: by 2002:a25:7007:: with SMTP id l7mr4313797ybc.85.1597300243526;
 Wed, 12 Aug 2020 23:30:43 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Wed, 12 Aug 2020 23:30:42 -0700
From: Stefan Kangas <stefan@HIDDEN>
MIME-Version: 1.0
Date: Wed, 12 Aug 2020 23:30:42 -0700
Message-ID: <CADwFkmkCryuZ6B0cgHEzX_V8mmad0gzBMQRR6dYU9958jVu9zg@HIDDEN>
Subject: [PATCH] Support displaying line numbers in goto-line
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/mixed; boundary="0000000000009d960c05acbc71f0"
Received-SPF: pass client-ip=209.85.219.179;
 envelope-from=stefankangas@HIDDEN; helo=mail-yb1-f179.google.com
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/13 01:34:11
X-ACL-Warn: Detected OS   = Linux 2.2.x-3.x [generic] [fuzzy]
X-Spam_score_int: -8
X-Spam_score: -0.9
X-Spam_bar: /
X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=1,
 FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=1,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

--0000000000009d960c05acbc71f0
Content-Type: text/plain; charset="UTF-8"

Here's an interesting idea I picked up from Reddit: make goto-line
enable display-line-numbers-mode temporarily when prompting.  Please see
the attached patch.

Comments or thoughts welcome, as always.

Best regards,
Stefan Kangas

PS. I added a new defcustom to enable this behaviour, by default set to
    nil.  But if it seems useful, it would be nifty if we could enable
    it by default.  (I have no idea if display-line-numbers-mode is
    stable enough in all scenarios, however.)

--0000000000009d960c05acbc71f0
Content-Type: text/x-diff; charset="US-ASCII"; 
	name="0001-Support-displaying-line-numbers-in-goto-line.patch"
Content-Disposition: attachment; 
	filename="0001-Support-displaying-line-numbers-in-goto-line.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id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VmZmVyLXByb21wdCkKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAo
bGlzdCBkZWZhdWx0IChsaW5lLW51bWJlci1hdC1wb3MpKQorICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICdnb3RvLWxpbmUtaGlzdG9yeSkKKwkgICAgICAgICAgICAgYnVmZmVyKSkK
KyAgICAgICAgICAgKHdoZW4gKG5vdCBzaG93aW5nKQorICAgICAgICAgICAgIChkaXNwbGF5LWxp
bmUtbnVtYmVycy1tb2RlIC0xKSkpKSkpKQogICA7OyBTd2l0Y2ggdG8gdGhlIGRlc2lyZWQgYnVm
ZmVyLCBvbmUgd2F5IG9yIGFub3RoZXIuCiAgIChpZiBidWZmZXIKICAgICAgIChsZXQgKCh3aW5k
b3cgKGdldC1idWZmZXItd2luZG93IGJ1ZmZlcikpKQotLSAKMi4yOC4wCgo=
--0000000000009d960c05acbc71f0--




Acknowledgement sent to Stefan Kangas <stefan@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#42839; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 13 Aug 2020 09:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.