unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Clément Pit--Claudel" <clement.pitclaudel@live.com>
To: 26945@debbugs.gnu.org
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	[thread overview]
Message-ID: <6288b135-d1cc-e165-cbd0-c465181e15d8@live.com> (raw)


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

             reply	other threads:[~2017-05-15 23:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-15 23:19 Clément Pit--Claudel [this message]
2021-02-05 12:36 ` bug#26945: Feature request: the exclusion list used by indent-according-to-mode should be customizable Lars Ingebrigtsen
2021-02-09  4:52   ` Clément Pit-Claudel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6288b135-d1cc-e165-cbd0-c465181e15d8@live.com \
    --to=clement.pitclaudel@live.com \
    --cc=26945@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).