unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#26945: Feature request: the exclusion list used by indent-according-to-mode should be customizable
@ 2017-05-15 23:19 Clément Pit--Claudel
  2021-02-05 12:36 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Clément Pit--Claudel @ 2017-05-15 23:19 UTC (permalink / raw)
  To: 26945


[-- Attachment #1.1: Type: text/plain, Size: 738 bytes --]

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 #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#26945: Feature request: the exclusion list used by indent-according-to-mode should be customizable
  2017-05-15 23:19 bug#26945: Feature request: the exclusion list used by indent-according-to-mode should be customizable Clément Pit--Claudel
@ 2021-02-05 12:36 ` Lars Ingebrigtsen
  2021-02-09  4:52   ` Clément Pit-Claudel
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-02-05 12:36 UTC (permalink / raw)
  To: Clément Pit--Claudel; +Cc: 26945

Clément Pit--Claudel <clement.pitclaudel@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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#26945: Feature request: the exclusion list used by indent-according-to-mode should be customizable
  2021-02-05 12:36 ` Lars Ingebrigtsen
@ 2021-02-09  4:52   ` Clément Pit-Claudel
  0 siblings, 0 replies; 3+ messages in thread
From: Clément Pit-Claudel @ 2021-02-09  4:52 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 26945


[-- Attachment #1.1: Type: text/plain, Size: 132 bytes --]

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!



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-02-09  4:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-15 23:19 bug#26945: Feature request: the exclusion list used by indent-according-to-mode should be customizable Clément Pit--Claudel
2021-02-05 12:36 ` Lars Ingebrigtsen
2021-02-09  4:52   ` Clément Pit-Claudel

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).