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

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

bug#20846: 24.4; Electric-indent-mode does not call indent-line-function


From: Eli Zaretskii
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

> 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 via email to

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