bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#26945: Feature request: the exclusion list used by indent-according-


From: Clément Pit--Claudel
Subject: bug#26945: Feature request: the exclusion list used by indent-according-to-mode should be customizable
Date: Mon, 15 May 2017 19:19:25 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

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.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]