unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Stefan Kangas <stefan@marxist.se>
Cc: 42839@debbugs.gnu.org
Subject: bug#42839: [PATCH] Support displaying line numbers in goto-line
Date: Thu, 13 Aug 2020 10:30:01 +0200	[thread overview]
Message-ID: <m2a6yzhrsm.fsf@gmail.com> (raw)
In-Reply-To: <CADwFkmkCryuZ6B0cgHEzX_V8mmad0gzBMQRR6dYU9958jVu9zg@mail.gmail.com> (Stefan Kangas's message of "Wed, 12 Aug 2020 23:30:42 -0700")

>>>>> 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? For that matter, why not just
move to the line using other motion commands?

And if itʼs 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





  reply	other threads:[~2020-08-13  8:30 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 [this message]
2020-08-13  8:58   ` Stefan Kangas
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=m2a6yzhrsm.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=42839@debbugs.gnu.org \
    --cc=stefan@marxist.se \
    /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).