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:18:53 +0000 Message-ID: <20170528081853.GA17956@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="liOOAslEiF7prFVr" X-Trace: blaine.gmane.org 1495959616 26023 195.159.176.226 (28 May 2017 08:20:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 28 May 2017 08:20: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:20:10 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 1dEtQl-0006VP-Ly for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 May 2017 10:20:07 +0200 Original-Received: from localhost ([::1]:43129 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEtQr-0005pU-2R for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 May 2017 04:20:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEtQk-0005nL-Jb for bug-gnu-emacs@gnu.org; Sun, 28 May 2017 04:20:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEtQh-0007zI-Ch for bug-gnu-emacs@gnu.org; Sun, 28 May 2017 04:20:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38552) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dEtQh-0007zC-9a for bug-gnu-emacs@gnu.org; Sun, 28 May 2017 04:20:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dEtQg-0002Tq-Ni for bug-gnu-emacs@gnu.org; Sun, 28 May 2017 04:20: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:20: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.14959595609483 (code B ref 27056); Sun, 28 May 2017 08:20:02 +0000 Original-Received: (at 27056) by debbugs.gnu.org; 28 May 2017 08:19:20 +0000 Original-Received: from localhost ([127.0.0.1]:41229 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEtQ0-0002St-Hg for submit@debbugs.gnu.org; Sun, 28 May 2017 04:19:20 -0400 Original-Received: from onethreetwo.vfemail.net ([199.16.11.132]:57036 helo=vfemail.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEtPy-0002Sf-OO for 27056@debbugs.gnu.org; Sun, 28 May 2017 04:19:19 -0400 Original-Received: (qmail 37331 invoked by uid 89); 28 May 2017 08:19:12 -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:19:12 -0000 Original-Received: (qmail 37263 invoked by uid 89); 28 May 2017 08:18:55 -0000 Original-Received: by simscan 1.4.0 ppid: 37259, pid: 37261, t: 0.0025s scanners:none Original-Received: from unknown (HELO smtp101-2.vfemail.net) (172.16.100.61) by FreeQueue with SMTP; 28 May 2017 08:18:55 -0000 Original-Received: (qmail 3809 invoked by uid 89); 28 May 2017 08:18:55 -0000 Original-Received: by simscan 1.4.0 ppid: 3786, pid: 3805, t: 1.0720s scanners:none Original-Received: from unknown (HELO vfemail.net) (a3djM2l5d2JAdmZlbWFpbC5uZXQ=@91.223.82.156) by 172.16.100.61 with ESMTPA; 28 May 2017 08:18:54 -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:132944 Archived-At: --liOOAslEiF7prFVr 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 that it's not a bug. Thanks for your patience and sorry for wasting your time. How do I close this bug report? When the cursor isn't on a number, invoke `goto-line', press , you'll get the current line number in the minibuffer. The problem is that I thought I should press instead of , so I thought there was a bug. --liOOAslEiF7prFVr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEwDlXGhappiWTpfDDYMrq6KZEr9sFAlkqh+0ACgkQYMrq6KZE r9s1fw/9ET+0dCwVbr6eHSNmp5c2ghGARx9acRSdY16REc2hjtKY0xmmB5uepp3T vAQHNPh/Q5HN3cGGvgnKoVfQlN1mmT7g8FWWCuO7uAzMM1PZmYfzillsjBXA0w4T fgju78YsRPh+ex8tlwgr3GXPQ0is7ctcVVaIYlzAnDeeM916ddfEl53jZzVIa1Hb U7KdnWLTc+gQ3hrAVw41Eib7XtfAjXg5w0JArnWWbctDmwsr9PGUgyeCaNOoC+NW +mOM0LDm/+wU2CuQ46x7MHV2VwKYN2theSTK+Pi4Zfn9imxHGRg9MxG3MRkHSotN CnKN4eRZoMrCHbPNzIVhNavaieKpgVev5uG3MPmAM7Pgz33NqWDUL51c6DnoBYye JWKvbCxqLjrO7Jbp1docMr7ToBiPbH+DOdejq1puFWJO7C+iRS0xF0aO0DUCKqYC cweZV2n5rnCshRVNNJ006mU5rMrXmPKdJNPNB+r3J50U3p3aPyC3rSL5h0bIKqOZ aBHa/3COh8z15wOn1ZLLEpjvgAuHfBxhyObyxLHdWT5eZ+/V9mpJGbagbbcpV52E vCJ5fwPK9s5DvykeAHwhH6YoRZ8vlz8yxUhKzOzRM8dMTmdrbUTbCrMTw+zEjj5D 2Ild6igLC7SRZeIKZTLuCyKcsyHBCVFep8uRK8yEXZi+ELWiC/s= =BnEL -----END PGP SIGNATURE----- --liOOAslEiF7prFVr--