GNU bug report logs -
#27056
25.2; goto-line doesn't default to current line when used interactively when the cursor isn't over a number
Previous Next
Reported by: kwc3iywb <at> vfemail.net
Date: Wed, 24 May 2017 15:31:02 UTC
Severity: normal
Found in version 25.2
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #35 received at 27056 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Sat, May 27, 2017 at 04:13:34PM +0300, Eli Zaretskii wrote:
> > Date: Wed, 24 May 2017 11:19:37 +0000
> > From: kwc3iywb <at> vfemail.net
> >
> > When I press M-x goto-line, it asks me for a line number. There used to
> > be a default line number, which is the current line number before
> > a5dcc929862f6727c71db5e45d8750f8c322c53b. It looks like he forgot to
> > remove the empty elements when calling `read-from-minibuffer' from
> > `read-number'.
>
> Sorry, I don't think I understand the problem. AFAIU, the default was
> taken from the number at point, if any, when the command is invoked.
> So I tried this:
>
> emacs -Q
> Type "2" and then move point back so the cursor is on "2"
> M-g M-g
>
> This prompts in the echo area:
>
> Goto line (default 2):
>
> OTOH, if cursor isn't over a number, I get no default at all, even if
> I try Emacs versions before that change, like Emacs 23.1 and 23.2 (or
> even 22.1).
>
> So it looks like the feature works as expected. What am I missing?
>
Now, I understand. So there is no such bug. Thanks for your patience
and sorry for wasting your time. How do I close this bug report?
I tried again, the feature introduced in
a5dcc929862f6727c71db5e45d8750f8c322c53b works. When the cursor isn't
on a number, invoke `goto-line', press <down>, you get the current line
number in the minibuffer. I thought I was supposed to press <up>
instead of <down>, so I there was a bug. And I know that I can use C-a
or <home>.
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 7 years and 356 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.