From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alex Branham Newsgroups: gmane.emacs.bugs Subject: bug#34858: indent-relative called with prefix calls tab-to-tab-stop Date: Thu, 14 Mar 2019 11:17:16 -0500 Message-ID: <87wol1l9bn.fsf@gmail.com> References: <871s39mpu6.fsf@gmail.com> <83wol11m5b.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="194281"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.1.0; emacs 27.0.50 Cc: 34858@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 14 17:18:30 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 1h4T3t-000oPz-Qa for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Mar 2019 17:18:30 +0100 Original-Received: from localhost ([127.0.0.1]:40783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4T3s-0001ji-NB for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Mar 2019 12:18:28 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4T3Y-0001gs-8D for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2019 12:18:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h4T3W-0004GD-2Z for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2019 12:18:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58616) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h4T3T-0004EK-3r for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2019 12:18:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h4T3S-0002uo-Tv for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2019 12:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex Branham Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Mar 2019 16:18: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.155258024811138 (code B ref 34858); Thu, 14 Mar 2019 16:18:02 +0000 Original-Received: (at 34858) by debbugs.gnu.org; 14 Mar 2019 16:17:28 +0000 Original-Received: from localhost ([127.0.0.1]:43922 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h4T2t-0002tY-Kk for submit@debbugs.gnu.org; Thu, 14 Mar 2019 12:17:28 -0400 Original-Received: from mail-oi1-f171.google.com ([209.85.167.171]:38059) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h4T2r-0002tL-6m for 34858@debbugs.gnu.org; Thu, 14 Mar 2019 12:17:25 -0400 Original-Received: by mail-oi1-f171.google.com with SMTP id a15so4884394oid.5 for <34858@debbugs.gnu.org>; Thu, 14 Mar 2019 09:17:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=/tdpiMo93xuGTNZXNkSVs9xdRMtppn0F2LhKS0F6Dpk=; b=RvQu2Atf0X+DeVv1VOBcQV8xKL/LMxAeldMLmjIvxesNL/zuvVzQWyFrmPtlwvw2hP KDtGPwvalV+sLEuOaWeEUuUBm4esDJn+YvjVKD0586VQUEijakzLdrDIUUViUkxrF3Zx Eh2Y/4yGt6xAcVvTYDee7sDc+LOrqF5LqXcxqJ9E/qxxhylSsDz3zsgwbB/7h3fQMEET 8jFCDUf8N6SvgL/wXFdOH+eojzImqMTULerv85SvngpA1IvaBH4pI3B1qjMS2+CbaNBU FngmCJVy94zY9RqdC1RkL8Nr2/qdZHog9NixanFoRbTMAmhsjpT0cj0McnOHtv8VyQbO /vPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=/tdpiMo93xuGTNZXNkSVs9xdRMtppn0F2LhKS0F6Dpk=; b=gsOTwSGFeqMFHgeQTB32tlDng7qhiQB4jgurfe5HA3Uep93F3UQKcXwcRRXWaJZ+c+ ZKtIsV12VRg+jQShCMzL4sQ7Ydcu8hhf68X4tcilPopTjYhYvdZ4ABOAQszOPwIB8sOd ADr5CmpMfXGfB9HuIqjuDDdOgh8rlTAHotzZhNqf8rIGq/PId4U+20aGppZa7zSKmyYJ 5wke9NM4vwzuxkE9JwKQP3D4JgBjC6ECHlaY+/lw3yint0ntemzOHoZnlmpEDWOfS/pl ZCVW5LqiYxokkGpixDSSxO9o9ROi0ygKfCLioow5US8TefUZSzP2B/grMiH6Xvkecdge PXUg== X-Gm-Message-State: APjAAAWZU0QG9+nWLyLe7/KfFvcfQbOQg1rnGndU48iqRR/tYYWqSatd LWoHwSJXgByzaHm4bYTVNgn2aSAfjZk= X-Google-Smtp-Source: APXvYqxz/JbokpVnf0goI1LLHXfR/XGk61b2NJ0/yQTIaG70E33eUaasI1IOyv2z7yJB9UGA+xKJ0Q== X-Received: by 2002:aca:857:: with SMTP id 84mr2335922oii.125.1552580238229; Thu, 14 Mar 2019 09:17:18 -0700 (PDT) Original-Received: from mars (nat-128-62-56-8.public.utexas.edu. [128.62.56.8]) by smtp.gmail.com with ESMTPSA id o67sm3483287oia.9.2019.03.14.09.17.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Mar 2019 09:17:17 -0700 (PDT) In-reply-to: <83wol11m5b.fsf@gnu.org> 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:156336 Archived-At: --=-=-= Content-Type: text/plain On Thu 14 Mar 2019 at 11:00, Eli Zaretskii wrote: > I think this is a documentation bug, as it doesn't describe the > special case of "no previous nonblank line". OK, patch attached. While looking over this I noticed the lisp reference manual also needed to be updated a bit so I did that as well. Thanks, Alex >From cefe6581558e45558907996ea39ac44e512f7944 Mon Sep 17 00:00:00 2001 From: Alex Branham Date: Thu, 14 Mar 2019 11:14:18 -0500 Subject: [PATCH] Update documentation for indent-relative functions * lisp/indent.el (indent-relative): Document what happens when there is no previous nonblank line. * doc/lispref/text.texi (Relative Indent): Document indent-relative-first-indent-point instead of obsolete indent-relative-maybe. Fix documentation of which argument from 'indent-relative' is used. Bug#34858 --- doc/lispref/text.texi | 4 ++-- lisp/indent.el | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index 21c5a73f88..abcea17010 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi @@ -2571,11 +2571,11 @@ The quick brown fox jum @point{}ped. @end example @end deffn -@deffn Command indent-relative-maybe +@deffn Command indent-relative-first-indent-point @comment !!SourceFile indent.el This command indents the current line like the previous nonblank line, by calling @code{indent-relative} with @code{t} as the -@var{unindented-ok} argument. The return value is unpredictable. +@var{first-only} argument. The return value is unpredictable. If the previous nonblank line has no indent points beyond the current column, this command does nothing. diff --git a/lisp/indent.el b/lisp/indent.el index 34757a43d7..25615f4113 100644 --- a/lisp/indent.el +++ b/lisp/indent.el @@ -598,8 +598,8 @@ considered. If the previous nonblank line has no indent points beyond the column point starts at, then `tab-to-tab-stop' is done, if both -FIRST-ONLY and UNINDENTED-OK are nil, otherwise nothing is done -in this case. +FIRST-ONLY and UNINDENTED-OK are nil, otherwise nothing is done. +If there isn't a previous nonblank line, call `tab-to-tab-stop'. See also `indent-relative-first-indent-point'." (interactive "P") -- 2.19.2 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-Update-documentation-for-indent-relative-functions.patch >From cefe6581558e45558907996ea39ac44e512f7944 Mon Sep 17 00:00:00 2001 From: Alex Branham Date: Thu, 14 Mar 2019 11:14:18 -0500 Subject: [PATCH] Update documentation for indent-relative functions * lisp/indent.el (indent-relative): Document what happens when there is no previous nonblank line. * doc/lispref/text.texi (Relative Indent): Document indent-relative-first-indent-point instead of obsolete indent-relative-maybe. Fix documentation of which argument from 'indent-relative' is used. Bug#34858 --- doc/lispref/text.texi | 4 ++-- lisp/indent.el | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index 21c5a73f88..abcea17010 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi @@ -2571,11 +2571,11 @@ The quick brown fox jum @point{}ped. @end example @end deffn -@deffn Command indent-relative-maybe +@deffn Command indent-relative-first-indent-point @comment !!SourceFile indent.el This command indents the current line like the previous nonblank line, by calling @code{indent-relative} with @code{t} as the -@var{unindented-ok} argument. The return value is unpredictable. +@var{first-only} argument. The return value is unpredictable. If the previous nonblank line has no indent points beyond the current column, this command does nothing. diff --git a/lisp/indent.el b/lisp/indent.el index 34757a43d7..25615f4113 100644 --- a/lisp/indent.el +++ b/lisp/indent.el @@ -598,8 +598,8 @@ considered. If the previous nonblank line has no indent points beyond the column point starts at, then `tab-to-tab-stop' is done, if both -FIRST-ONLY and UNINDENTED-OK are nil, otherwise nothing is done -in this case. +FIRST-ONLY and UNINDENTED-OK are nil, otherwise nothing is done. +If there isn't a previous nonblank line, call `tab-to-tab-stop'. See also `indent-relative-first-indent-point'." (interactive "P") -- 2.19.2 --=-=-=--