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: Mon, 24 Oct 2016 11:23:22 +0300 Message-ID: <837f8y5f5x.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> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1477297466 14562 195.159.176.226 (24 Oct 2016 08:24:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 24 Oct 2016 08:24:26 +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 Mon Oct 24 10:24:22 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 1byaYC-0001lM-Tw for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Oct 2016 10:24:09 +0200 Original-Received: from localhost ([::1]:45228 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byaYF-0002M7-3b for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Oct 2016 04:24:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byaY9-0002Ly-3H for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2016 04:24:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byaY5-000338-W7 for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2016 04:24:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36433) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1byaY5-000334-Se for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2016 04:24:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1byaY5-0005vV-NF for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2016 04:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Oct 2016 08:24:01 +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.147729741422736 (code B ref 24766); Mon, 24 Oct 2016 08:24:01 +0000 Original-Received: (at 24766) by debbugs.gnu.org; 24 Oct 2016 08:23:34 +0000 Original-Received: from localhost ([127.0.0.1]:51831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byaXd-0005ue-Pu for submit@debbugs.gnu.org; Mon, 24 Oct 2016 04:23:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36375) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byaXc-0005uL-Cz for 24766@debbugs.gnu.org; Mon, 24 Oct 2016 04:23:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byaXU-0002xg-7x for 24766@debbugs.gnu.org; Mon, 24 Oct 2016 04:23:27 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byaXU-0002xZ-4K; Mon, 24 Oct 2016 04:23:24 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1406 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1byaXT-0006Xv-GK; Mon, 24 Oct 2016 04:23:23 -0400 In-reply-to: <87twc2iynm.fsf@gmail.com> (message from Alex on Sun, 23 Oct 2016 14:43:57 -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:124945 Archived-At: > From: Alex > Cc: 24766@debbugs.gnu.org > Date: Sun, 23 Oct 2016 14:43:57 -0600 > > What about changing `indent-relative-maybe' and adding an extra argument > to `indent-relative'? Since `indent-relative-maybe' has had that > docstring for a good 15 years, and the name fits the new behaviour more. > > Then in Emacs core we can replace the single instance of it with > (indent-relative t). The corresponding diff: I'd prefer a backward-compatible change, i.e. make the new argument be the 2nd one, and keep the current behavior when the 1st arg is non-nil and the 2nd is nil or omitted. Also, please add the necessary text to the doc string to document the new argument. Thanks.