From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34858: indent-relative called with prefix calls tab-to-tab-stop Date: Fri, 15 Mar 2019 06:52:00 +0200 Message-ID: <83k1h020zz.fsf@gnu.org> References: <871s39mpu6.fsf@gmail.com> <83wol11m5b.fsf@gnu.org> <87o96d5rrn.fsf@gmail.com> <83tvg51ghz.fsf@gnu.org> <87k1h15lob.fsf@gmail.com> <83lg1h1a6n.fsf@gnu.org> <87ftrp5ep1.fsf@gmail.com> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="153856"; mail-complaints-to="usenet@blaine.gmane.org" Cc: alex.branham@gmail.com, 34858@debbugs.gnu.org To: Alex Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 15 05:58:42 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h4eva-000dtg-77 for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Mar 2019 05:58:42 +0100 Original-Received: from localhost ([127.0.0.1]:49806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4evZ-0008GW-8m for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Mar 2019 00:58:41 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4evD-00083e-Ph for bug-gnu-emacs@gnu.org; Fri, 15 Mar 2019 00:58:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h4eq6-0002oF-Qa for bug-gnu-emacs@gnu.org; Fri, 15 Mar 2019 00:53:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58992) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h4eq6-0002o5-JW for bug-gnu-emacs@gnu.org; Fri, 15 Mar 2019 00:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h4eq6-0004tx-9W for bug-gnu-emacs@gnu.org; Fri, 15 Mar 2019 00:53: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: Fri, 15 Mar 2019 04:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34858 X-GNU-PR-Package: emacs Original-Received: via spool by 34858-submit@debbugs.gnu.org id=B34858.155262554618796 (code B ref 34858); Fri, 15 Mar 2019 04:53:02 +0000 Original-Received: (at 34858) by debbugs.gnu.org; 15 Mar 2019 04:52:26 +0000 Original-Received: from localhost ([127.0.0.1]:44303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h4epV-0004t6-Ni for submit@debbugs.gnu.org; Fri, 15 Mar 2019 00:52:25 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h4epU-0004st-HM for 34858@debbugs.gnu.org; Fri, 15 Mar 2019 00:52:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49967) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4epP-0002Z4-6e; Fri, 15 Mar 2019 00:52:19 -0400 Original-Received: from [176.228.60.248] (port=1887 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h4epO-0001jg-No; Fri, 15 Mar 2019 00:52:19 -0400 In-reply-to: <87ftrp5ep1.fsf@gmail.com> (message from Alex on Thu, 14 Mar 2019 15:27:54 -0600) 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: 209.51.188.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:156370 Archived-At: > From: Alex > Cc: alex.branham@gmail.com, 34858@debbugs.gnu.org > Date: Thu, 14 Mar 2019 15:27:54 -0600 > > >> The usage of `beyond' does not change the behaviour when the starting > >> column is on the first indent point, which outside of this special case > >> is doing nothing. > > > > When there are previous lines to align with, yes. But here there's > > nothing before, so what is the justification for doing nothing? > > I don't see the justification for calling `tab-to-tab-stop' since that > behaviour would be surprising given that `tab-to-tab-stop' is otherwise > called only if FIRST-ONLY is nil. I view FIRST-ONLY as meaning "this > procedure will not indent past the first indent point"; in the case of > no such point, I believe that doing nothing is the more reasonable > action. Also,` indent-relative-first-indent-point' expects this > behaviour. > > If one wants `indent-relative' to call `tab-to-tab-stop' in the case of > no previous non-blank line, then one could call it without the > FIRST-ONLY/prefix argument. I guess we will have to disagree, then. Alex, feel free to start a discussion on emacs-devel regarding what to do in this special case, it seems like there's a certain controversy. Thanks.