From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: kwc3iywb@vfemail.net Newsgroups: gmane.emacs.bugs Subject: bug#27056: 25.2; goto-line doesn't default to current line when used interactively when the cursor isn't over a number Date: Sun, 28 May 2017 08:11:19 +0000 Message-ID: <20170528081117.GA17810@vfemail.net> References: <20170524111937.GA17052@vfemail.net> <8337bqigsh.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ReaqsoxgOBHFXBhH" X-Trace: blaine.gmane.org 1495959976 24298 195.159.176.226 (28 May 2017 08:26:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 28 May 2017 08:26:16 +0000 (UTC) User-Agent: Mutt/1.8.2 (2017-04-18) Cc: 27056@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 28 10:26:12 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEtWd-00065S-3Y for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 May 2017 10:26:11 +0200 Original-Received: from localhost ([::1]:43141 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEtWd-0006v6-G6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 May 2017 04:26:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEtWX-0006tn-VG for bug-gnu-emacs@gnu.org; Sun, 28 May 2017 04:26:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEtWU-0000zU-NR for bug-gnu-emacs@gnu.org; Sun, 28 May 2017 04:26:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38556) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dEtWU-0000zO-KW for bug-gnu-emacs@gnu.org; Sun, 28 May 2017 04:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dEtWU-0002cF-CF for bug-gnu-emacs@gnu.org; Sun, 28 May 2017 04:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: kwc3iywb@vfemail.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 May 2017 08:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27056 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27056-submit@debbugs.gnu.org id=B27056.149595993410022 (code B ref 27056); Sun, 28 May 2017 08:26:02 +0000 Original-Received: (at 27056) by debbugs.gnu.org; 28 May 2017 08:25:34 +0000 Original-Received: from localhost ([127.0.0.1]:41233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEtW2-0002bZ-8z for submit@debbugs.gnu.org; Sun, 28 May 2017 04:25:34 -0400 Original-Received: from onethreetwo.vfemail.net ([199.16.11.132]:1746 helo=vfemail.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEtW1-0002bO-3D for 27056@debbugs.gnu.org; Sun, 28 May 2017 04:25:33 -0400 Original-Received: (qmail 39515 invoked by uid 89); 28 May 2017 08:25:27 -0000 Original-Received: from localhost (HELO freequeue.vfemail.net) (127.0.0.1) by localhost with (DHE-RSA-AES256-SHA encrypted) SMTP; 28 May 2017 08:25:27 -0000 Original-Received: (qmail 39473 invoked by uid 89); 28 May 2017 08:25:10 -0000 Original-Received: by simscan 1.4.0 ppid: 39469, pid: 39471, t: 0.0023s scanners:none Original-Received: from unknown (HELO smtp101-2.vfemail.net) (172.16.100.61) by FreeQueue with SMTP; 28 May 2017 08:25:10 -0000 Original-Received: (qmail 4350 invoked by uid 89); 28 May 2017 08:25:10 -0000 Original-Received: by simscan 1.4.0 ppid: 3148, pid: 3163, t: 837.2097s scanners:none Original-Received: from unknown (HELO vfemail.net) (a3djM2l5d2JAdmZlbWFpbC5uZXQ=@178.217.187.39) by 172.16.100.61 with ESMTPA; 28 May 2017 08:11:12 -0000 Content-Disposition: inline In-Reply-To: <8337bqigsh.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:132945 Archived-At: --ReaqsoxgOBHFXBhH Content-Type: text/plain; charset=us-ascii Content-Disposition: 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@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 , you get the current line number in the minibuffer. I thought I was supposed to press instead of , so I there was a bug. And I know that I can use C-a or . --ReaqsoxgOBHFXBhH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEwDlXGhappiWTpfDDYMrq6KZEr9sFAlkqhiQACgkQYMrq6KZE r9uq9w/+Mz/xZRL5yFL2BmM8RnawZaTRwr/E0ZhVBqfxpk4aXbKTtCIJ0T1SZtxd 9jjwpL2iM5+O9KOLhwlvxs5NkRjKFkvVYAarQhWnh6OV88ZhtZbivGirHKXIKIsD 8qmdS5dSAO4EDK2JE4qfREQmaaTni7XMiI+i3nulwcItIBIXELePEJJmmPUSMvxV M/SxkQpf2ksMq7zkdKSrEjFUdK+HRnbiay4yqnT8MWU4SKKjGGEikZJUwPgjiYI4 s9L3Gh+QNEpGTBWdvsLxcSsbb0s912xSlr44oqrHsK0gCzzQDmzE/NmmLJL1ov1U s6peEGbK6XpUW07kbGbE5hlIG468ScjHXXLkT3wqt0ZlqKt/4YhS9Wy68L5vhWzs 1+Fr9Yknbl5De9xxohUzRN2TILc/ytj9bAgnmKlqUzOiPuf02aEQtOQjHCGgowEf AQyvsRdxizpGTA6xaaA20iEAC7HXyjhU59+wuHgHi5hDXhba6U+2MKwpZBUx7it2 OgxgN5ATxu5nxiZl7YN5Gsbzb8zzNbjPpGFWSk/xtUDuHheNy6wTizNvrCuwxkwd 1WxNWeGPFv9M6DXQfae5GbT8jDR20xCznSQ6+YDZr72B0CebqGiMIYvr9g2a6J8T Ofs/drD/fw/82ixk2atBkyum+sfuKXrx/hdq3Ij/z2KTM2ejOgo= =7Fia -----END PGP SIGNATURE----- --ReaqsoxgOBHFXBhH--