GNU bug report logs -
#42839
[PATCH] Support displaying line numbers in goto-line
Previous Next
Reported by: Stefan Kangas <stefan <at> marxist.se>
Date: Thu, 13 Aug 2020 06:31:01 UTC
Severity: normal
Tags: patch
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Stefan Kangas <stefan <at> marxist.se>
> Date: Wed, 12 Aug 2020 23:30:42 -0700
>
> + (let ((showing display-line-numbers))
> + (unwind-protect
> + (progn
> + (when (not showing)
> + (display-line-numbers-mode 1))
> + (list (read-number (format "Goto line%s: " buffer-prompt)
> + (list default (line-number-at-pos))
> + 'goto-line-history)
> + buffer))
> + (when (not showing)
> + (display-line-numbers-mode -1)))))))
The variable display-line-numbers is not a simple boolean, it can have
several values. I think you intended to show absolute line numbers in
this case, so just testing whether display-line-numbers is non-nil is
not enough. Similarly, restoring the original setting needs more than
just a call to display-line-numbers-mode.
And this needs a NEWS entry.
Other than that, if someone wants this optional feature, why not?
This bug report was last modified 4 years and 280 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.