From: Stefan Kangas <stefan@marxist.se>
To: Robert Pluim <rpluim@gmail.com>
Cc: 42839@debbugs.gnu.org
Subject: bug#42839: [PATCH] Support displaying line numbers in goto-line
Date: Thu, 13 Aug 2020 01:58:41 -0700 [thread overview]
Message-ID: <CADwFkmn_vfCHYe+S0E16p2Dy-v7w1MRoTDu5LJaDatSnkTH0=Q@mail.gmail.com> (raw)
In-Reply-To: <m2a6yzhrsm.fsf@gmail.com>
Robert Pluim <rpluim@gmail.com> writes:
>>>>>> On Wed, 12 Aug 2020 23:30:42 -0700, Stefan Kangas <stefan@marxist.se> 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ʼre 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ʼs not visible, what does showing line numbers for the lines
> 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
next prev parent reply other threads:[~2020-08-13 8:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-13 6:30 bug#42839: [PATCH] Support displaying line numbers in goto-line Stefan Kangas
2020-08-13 8:30 ` Robert Pluim
2020-08-13 8:58 ` Stefan Kangas [this message]
2020-08-13 9:16 ` Robert Pluim
2020-08-13 13:17 ` Eli Zaretskii
2020-08-13 13:24 ` Robert Pluim
2020-08-13 13:10 ` Eli Zaretskii
2020-08-13 14:30 ` Stefan Kangas
2020-10-09 21:22 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADwFkmn_vfCHYe+S0E16p2Dy-v7w1MRoTDu5LJaDatSnkTH0=Q@mail.gmail.com' \
--to=stefan@marxist.se \
--cc=42839@debbugs.gnu.org \
--cc=rpluim@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).