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#24766: 26.0.50: [PATCH] Confusing behaviour for indent-relative-maybe Date: Tue, 08 Nov 2016 17:07:25 +0200 Message-ID: <83h97iggcy.fsf@gnu.org> References: <8760ok8ays.fsf@gmail.com> <83lgxgp4ts.fsf@gnu.org> <871sz8894m.fsf@gmail.com> <83h984p3lb.fsf@gnu.org> <87shro6ol6.fsf@gmail.com> <83a8dvpor2.fsf@gnu.org> <87twc2iynm.fsf@gmail.com> <837f8y5f5x.fsf@gnu.org> <87insh4keo.fsf@gmail.com> <83insh34g8.fsf@gnu.org> <878tsuivot.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1478617680 29907 195.159.176.226 (8 Nov 2016 15:08:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 8 Nov 2016 15:08:00 +0000 (UTC) Cc: 24766@debbugs.gnu.org To: Alex Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 08 16:07:56 2016 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 1c47zX-0003DG-40 for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Nov 2016 16:07:15 +0100 Original-Received: from localhost ([::1]:33695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c47za-0008CA-2O for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Nov 2016 10:07:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c47zO-0008Aw-E1 for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2016 10:07:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c47zK-00018Y-Gx for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2016 10:07:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34384) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c47zK-00018P-DC for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2016 10:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c47zK-0001xM-7Z for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2016 10:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Nov 2016 15:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24766 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 24766-submit@debbugs.gnu.org id=B24766.14786176217513 (code B ref 24766); Tue, 08 Nov 2016 15:07:02 +0000 Original-Received: (at 24766) by debbugs.gnu.org; 8 Nov 2016 15:07:01 +0000 Original-Received: from localhost ([127.0.0.1]:49783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c47zJ-0001x7-69 for submit@debbugs.gnu.org; Tue, 08 Nov 2016 10:07:01 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53992) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c47zI-0001ww-Cr for 24766@debbugs.gnu.org; Tue, 08 Nov 2016 10:07:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c47zA-00010R-67 for 24766@debbugs.gnu.org; Tue, 08 Nov 2016 10:06:55 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57610) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c47zA-00010L-2I; Tue, 08 Nov 2016 10:06:52 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2900 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1c47z9-0005Fu-GB; Tue, 08 Nov 2016 10:06:51 -0500 In-reply-to: <878tsuivot.fsf@gmail.com> (message from Alex on Mon, 07 Nov 2016 19:53:22 -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: 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:125469 Archived-At: > From: Alex > Cc: 24766@debbugs.gnu.org > Date: Mon, 07 Nov 2016 19:53:22 -0600 > > After thinking about it some more, and after properly searching on > Github for `indent-relative-maybe', I'm not sure if my previous solution > is the best one now. I found that due to some blog posts and starter kit > configurations, a surprising amount of people use indent-relative-maybe > despite docstring claiming different functionality. > > I now think the following should happen: > > 1) indent-relative-maybe's should be obsoleted in > favour of a name suiting the purpose (e.g. indent-relative-whitespace) > with a better docstring. > > 2) The docstring and second optional argument should be added as > discussed before. > > 3) Perhaps in the future a new function can be introduced that > automatically calls (indent-relative nil t), but I'm not sure if that > should be done now. To be honest, I lost my original reason that made me > interested in this function. > > Anyway, I've attached a diff that addresses this new proposal. Thanks, this is fine, except that the new function's name should be better as indent-relative-first-indent-point or somesuch.