all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: robin.neatherway@gmail.com, monnier@iro.umontreal.ca,
	20846@debbugs.gnu.org
Subject: bug#20846: 24.4; Electric-indent-mode does not call indent-line-function after hitting RET inside a comment
Date: Fri, 28 May 2021 08:49:02 +0300	[thread overview]
Message-ID: <83fsy78l2p.fsf@gnu.org> (raw)
In-Reply-To: <87sg273fqo.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri,  28 May 2021 01:43:11 +0200)

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: robin.neatherway@gmail.com,  monnier@iro.umontreal.ca,
>   20846@debbugs.gnu.org
> Date: Fri, 28 May 2021 01:43:11 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > maybe the idea is that indent-line-function is only for indenting
> > code?
> 
> The function is called when you TAB inside a comment, though.

And the doc string says, inter alia:

  If it is called somewhere where auto-indentation cannot be done
  (e.g. inside a string), the function should simply return ‘noindent’.
  ^^^^^^^^^^^^^^^^^^^^^^





  reply	other threads:[~2021-05-28  5:49 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-18 15:40 bug#20846: 24.4; Electric-indent-mode does not call indent-line-function after hitting RET inside a comment Robin Neatherway
2015-06-18 15:50 ` bug#20846: Reproduction instruction correction Robin Neatherway
2021-05-26 23:32 ` bug#20846: 24.4; Electric-indent-mode does not call indent-line-function after hitting RET inside a comment Lars Ingebrigtsen
2021-05-27  7:00   ` Eli Zaretskii
2021-05-27 23:43     ` Lars Ingebrigtsen
2021-05-28  5:49       ` Eli Zaretskii [this message]
2021-05-28 12:56         ` Dmitry Gutov
2021-05-28 13:06           ` Eli Zaretskii
2021-05-28 13:35             ` Dmitry Gutov
2021-05-28 14:04               ` Eli Zaretskii
2021-05-28 14:09             ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-05-28 14:16               ` Eli Zaretskii
2021-05-29  2:26               ` Lars Ingebrigtsen
2021-05-29 13:24                 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-05-30  4:14                   ` Lars Ingebrigtsen

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

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

  git send-email \
    --in-reply-to=83fsy78l2p.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=20846@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=robin.neatherway@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.