From: Dmitry Gutov <dgutov@yandex.ru>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 17128@debbugs.gnu.org
Subject: bug#17128: 24.3.50; `newline-and-indent' should not indent the current line
Date: Tue, 01 Apr 2014 08:37:44 +0300 [thread overview]
Message-ID: <533A50A8.8010909@yandex.ru> (raw)
In-Reply-To: <jwveh1mwgsq.fsf-monnier+emacsbugs@gnu.org>
On 28.03.2014 16:17, Stefan Monnier wrote:
>> There's `reindent-then-newline-and-indent' for that.
>
> Agreed.
Hmm, I'm not sure about the patch, though.
If `newline-and-indent' shouldn't reindent the current line [even when
electric-indent-mode is enabled] because there's
`reindent-then-newline-and-indent', then `newline' likewise probably
shouldn't (re)indent either of the lines because of the existence of the
former two functions.
In that case, my suggestion to separate the electric indent on RET from
indenting after newline wouldn't exactly work.
Could we define new commands in electric-mode, and bind them when it's on?
Something like `electric-maybe-indent-then-newline' and
`electric-maybe-reindent-then-newline-and-indent'.
next prev parent reply other threads:[~2014-04-01 5:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-28 6:17 bug#17128: 24.3.50; `newline-and-indent' should not indent the current line Dmitry Gutov
2014-03-28 14:17 ` Stefan Monnier
2014-04-01 5:37 ` Dmitry Gutov [this message]
2014-04-01 20:08 ` Stefan Monnier
2014-04-02 22:47 ` Dmitry Gutov
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=533A50A8.8010909@yandex.ru \
--to=dgutov@yandex.ru \
--cc=17128@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/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).