GNU bug report logs - #46167
28.0.50; [Feature Request] Handle goto-map digit as goto-line

Previous Next

Package: emacs;

Reported by: Michael Welsh Duggan <mwd <at> md5i.com>

Date: Fri, 29 Jan 2021 03:17:01 UTC

Severity: wishlist

Tags: wontfix

Found in version 28.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 46167 in the body.
You can then email your comments to 46167 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#46167; Package emacs. (Fri, 29 Jan 2021 03:17:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michael Welsh Duggan <mwd <at> md5i.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 29 Jan 2021 03:17:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Welsh Duggan <mwd <at> md5i.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; [Feature Request] Handle goto-map digit as goto-line
Date: Thu, 28 Jan 2021 22:16:29 -0500
I recommend that the ten decimal digits be bound in `goto-map' to a
function that calls `goto-line', bringing up a prompt with the given
digit as the default value.  For example:

`M-g 4' should result in the following prompt:

  Goto line: 4!

where ! represents the location of the point.  I've implemented this in
my init file, but as I have had difficulty getting a legal disclaimer
from my employer in the past (they want to have every single change go
to the lawyers separately), I'm holding back on sending any
implementation.

-- 
Michael Welsh Duggan
(md5i <at> md5i.com)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46167; Package emacs. (Fri, 29 Jan 2021 05:35:02 GMT) Full text and rfc822 format available.

Message #8 received at 46167 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Michael Welsh Duggan <mwd <at> md5i.com>
Cc: 46167 <at> debbugs.gnu.org
Subject: Re: bug#46167: 28.0.50; [Feature Request] Handle goto-map digit as
 goto-line
Date: Fri, 29 Jan 2021 06:34:21 +0100
Michael Welsh Duggan <mwd <at> md5i.com> writes:

> I recommend that the ten decimal digits be bound in `goto-map' to a
> function that calls `goto-line', bringing up a prompt with the given
> digit as the default value.  For example:
>
> `M-g 4' should result in the following prompt:
>
>   Goto line: 4!
>
> where ! represents the location of the point.

We've recently had a long discussion about `goto-line' vs
`goto-line-relative', and some people prefer the one and some people the
other.  `M-g 4' (etc) would have to choose one or the other.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46167; Package emacs. (Fri, 29 Jan 2021 09:00:03 GMT) Full text and rfc822 format available.

Message #11 received at 46167 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Michael Welsh Duggan <mwd <at> md5i.com>
Cc: 46167 <at> debbugs.gnu.org
Subject: Re: bug#46167: 28.0.50; [Feature Request] Handle goto-map digit as
 goto-line
Date: Fri, 29 Jan 2021 10:47:10 +0200
> I recommend that the ten decimal digits be bound in `goto-map' to a
> function that calls `goto-line', bringing up a prompt with the given
> digit as the default value.  For example:
>
> `M-g 4' should result in the following prompt:
>
>   Goto line: 4!
>
> where ! represents the location of the point.  I've implemented this in
> my init file, but as I have had difficulty getting a legal disclaimer
> from my employer in the past (they want to have every single change go
> to the lawyers separately), I'm holding back on sending any
> implementation.

Fortunately, it's already easy to go to e.g. line 42 by typing just

  42gg

while holding the Meta key, i.e. M-4 M-2 M-g M-g.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46167; Package emacs. (Mon, 01 Feb 2021 09:25:01 GMT) Full text and rfc822 format available.

Message #14 received at 46167 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: Michael Welsh Duggan <mwd <at> md5i.com>, 46167 <at> debbugs.gnu.org
Subject: Re: bug#46167: 28.0.50; [Feature Request] Handle goto-map digit as
 goto-line
Date: Mon, 01 Feb 2021 10:24:42 +0100
Juri Linkov <juri <at> linkov.net> writes:

> Fortunately, it's already easy to go to e.g. line 42 by typing just
>
>   42gg
>
> while holding the Meta key, i.e. M-4 M-2 M-g M-g.

Yeah, I guess there's no reason to add yet another way to enter the line
number.  And this is a more general way, because it also works for
`goto-line-relative', which some people prefer.

So I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 01 Feb 2021 09:25:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 46167 <at> debbugs.gnu.org and Michael Welsh Duggan <mwd <at> md5i.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 01 Feb 2021 09:25:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 01 Mar 2021 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 106 days ago.

Previous Next


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