From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#9917: bug#5042: bug#9917: 24.0.90; Make `goto-line' consistent with the line number from the minibuffer Date: Fri, 30 Oct 2020 09:27:43 +0200 Organization: LINKOV.NET Message-ID: <87r1pgch84.fsf@mail.linkov.net> References: <877dspmzo3.fsf@gnus.org> <83zh5l1uqw.fsf@gnu.org> <87wo0osspd.fsf@gnus.org> <87lfh3dtoj.fsf@mail.linkov.net> <878sd1j2rv.fsf@gnus.org> <878sbps834.fsf@mail.linkov.net> <83sg9xaysh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31015"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: larsi@gnus.org, 5042@debbugs.gnu.org, 9917@debbugs.gnu.org, monnier@iro.umontreal.ca, dmoncayo@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 30 08:29:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kYOqV-0007xm-Sy for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Oct 2020 08:29:11 +0100 Original-Received: from localhost ([::1]:60946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYOqU-0000bK-Tc for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Oct 2020 03:29:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYOqN-0000Yb-8O for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 03:29:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44387) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kYOqM-0003Xf-Ul for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 03:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kYOqM-0006u6-RR for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 03:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Oct 2020 07:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9917 X-GNU-PR-Package: emacs Original-Received: via spool by 9917-submit@debbugs.gnu.org id=B9917.160404290026462 (code B ref 9917); Fri, 30 Oct 2020 07:29:02 +0000 Original-Received: (at 9917) by debbugs.gnu.org; 30 Oct 2020 07:28:20 +0000 Original-Received: from localhost ([127.0.0.1]:55930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYOpg-0006sf-Fd for submit@debbugs.gnu.org; Fri, 30 Oct 2020 03:28:20 -0400 Original-Received: from relay2-d.mail.gandi.net ([217.70.183.194]:33459) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYOpc-0006s8-Uv; Fri, 30 Oct 2020 03:28:17 -0400 X-Originating-IP: 91.129.102.160 Original-Received: from mail.gandi.net (m91-129-102-160.cust.tele2.ee [91.129.102.160]) (Authenticated sender: juri@linkov.net) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 658D640002; Fri, 30 Oct 2020 07:28:08 +0000 (UTC) In-Reply-To: <83sg9xaysh.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 29 Oct 2020 16:31:58 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:192034 Archived-At: >> 2. Re-bind 'M-g g' to goto-line-relative as many asked to do >> with the reasoning that 'M-g g' should use by default the >> same numbering scheme as is displayed by display-line-numbers-mode; > > Two comments: > > 1) display-line-numbers-mode by default behaves the same as > line-number-mode > 2) display-line-numbers-mode has the display-line-numbers-widen > option which disregards narrowing, so if you want to follow > display-line-numbers-mode, you will need to heed that option as > well > >> 3. Leave the existing 'M-g g' bound to goto-line, but allow changing >> the numbering scheme using a prefix arg and a user option. > > I like this the best. If making the current goto-line 'M-g g' more DWIM is not easy to do, maybe really a user option could help with such choices: - always use absolute line numbers; - always use relative line numbers; - follow the value of display-line-numbers-widen; ... Also more explicit keys are needed, e.g.: M-g l a - with mnemonics: goto line absolute M-g l r - with mnemonics: goto line relative