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.

Full log


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)]

This bug report was last modified 4 years and 162 days ago.

Previous Next


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