GNU bug report logs - #26945
Feature request: the exclusion list used by indent-according-to-mode should be customizable

Previous Next

Package: emacs;

Reported by: Clément Pit--Claudel <clement.pitclaudel <at> live.com>

Date: Mon, 15 May 2017 23:20:01 UTC

Severity: wishlist

Tags: fixed

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26945 in the body.
You can then email your comments to 26945 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#26945; Package emacs. (Mon, 15 May 2017 23:20:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Clément Pit--Claudel <clement.pitclaudel <at> live.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 15 May 2017 23:20:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Clément Pit--Claudel <clement.pitclaudel <at> live.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Feature request: the exclusion list used by indent-according-to-mode
 should be customizable
Date: Mon, 15 May 2017 19:19:25 -0400
[Message part 1 (text/plain, inline)]
Hi bug-gnu-emacs,

Many programming modes don't have a single possible indentation, and instead use a custom indent-line-function to let users cycle through reasonable indentation.
When that function is exactly indent-relative or indent-relative-maybe, indent-according-to-mode ignores it:

> However, if the value of that variable is `indent-relative' or
> `indent-relative-maybe', handle it specially (since those functions
> are used for tabbing); in that case, indent by aligning to the
> previous non-blank line.

It would be great to make the list of ignored functions extensible — this way, modes that use a variant of indent-relative could recover an appropriate behavior for indent-according-to-mode.

Clément.

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26945; Package emacs. (Fri, 05 Feb 2021 12:37:02 GMT) Full text and rfc822 format available.

Message #8 received at 26945 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Clément Pit--Claudel <clement.pitclaudel <at> live.com>
Cc: 26945 <at> debbugs.gnu.org
Subject: Re: bug#26945: Feature request: the exclusion list used by
 indent-according-to-mode should be customizable
Date: Fri, 05 Feb 2021 13:36:26 +0100
Clément Pit--Claudel <clement.pitclaudel <at> live.com> writes:

>> However, if the value of that variable is `indent-relative' or
>> `indent-relative-maybe', handle it specially (since those functions
>> are used for tabbing); in that case, indent by aligning to the
>> previous non-blank line.
>
> It would be great to make the list of ignored functions extensible —
> this way, modes that use a variant of indent-relative could recover an
> appropriate behavior for indent-according-to-mode.

I think that makes sense?  So I've now made this change in Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 05 Feb 2021 12:37:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 26945 <at> debbugs.gnu.org and Clément Pit--Claudel <clement.pitclaudel <at> live.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 05 Feb 2021 12:37:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26945; Package emacs. (Tue, 09 Feb 2021 04:53:02 GMT) Full text and rfc822 format available.

Message #15 received at 26945 <at> debbugs.gnu.org (full text, mbox):

From: Clément Pit-Claudel <clement.pitclaudel <at> live.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 26945 <at> debbugs.gnu.org
Subject: Re: bug#26945: Feature request: the exclusion list used by
 indent-according-to-mode should be customizable
Date: Mon, 8 Feb 2021 23:52:03 -0500
[Message part 1 (text/plain, inline)]
On 2/5/21 7:36 AM, Lars Ingebrigtsen wrote:
> I think that makes sense?  So I've now made this change in Emacs 28.

Thanks!


[signature.asc (application/pgp-signature, attachment)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 09 Mar 2021 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 48 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.