From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii 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: Sat, 27 May 2017 16:13:34 +0300 Message-ID: <8337bqigsh.fsf@gnu.org> References: <20170524111937.GA17052@vfemail.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1495890855 19460 195.159.176.226 (27 May 2017 13:14:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 27 May 2017 13:14:15 +0000 (UTC) Cc: 27056@debbugs.gnu.org To: kwc3iywb@vfemail.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 27 15:14: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 1dEbXn-0004pZ-NG for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 May 2017 15:14:11 +0200 Original-Received: from localhost ([::1]:40788 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEbXo-0007i8-Eu for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 May 2017 09:14:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEbXi-0007i2-F4 for bug-gnu-emacs@gnu.org; Sat, 27 May 2017 09:14:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEbXe-00053U-GY for bug-gnu-emacs@gnu.org; Sat, 27 May 2017 09:14:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37351) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dEbXe-00053Q-DQ for bug-gnu-emacs@gnu.org; Sat, 27 May 2017 09:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dEbXe-0002kR-5n for bug-gnu-emacs@gnu.org; Sat, 27 May 2017 09:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 May 2017 13:14: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.149589082610533 (code B ref 27056); Sat, 27 May 2017 13:14:02 +0000 Original-Received: (at 27056) by debbugs.gnu.org; 27 May 2017 13:13:46 +0000 Original-Received: from localhost ([127.0.0.1]:40028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEbXN-0002jp-W0 for submit@debbugs.gnu.org; Sat, 27 May 2017 09:13:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45405) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEbXM-0002ja-GL for 27056@debbugs.gnu.org; Sat, 27 May 2017 09:13:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEbXD-0004th-21 for 27056@debbugs.gnu.org; Sat, 27 May 2017 09:13:39 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEbXC-0004td-VI; Sat, 27 May 2017 09:13:34 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2886 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dEbXC-00019q-8S; Sat, 27 May 2017 09:13:34 -0400 In-reply-to: <20170524111937.GA17052@vfemail.net> (kwc3iywb@vfemail.net) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:132920 Archived-At: > 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?