unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: Alexander Baier <lexi.baier@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: electric-pair-mode
Date: Fri, 22 Nov 2013 20:13:35 +0100	[thread overview]
Message-ID: <87bo1cgsgw.fsf@thinkpad.tsdh.org> (raw)
In-Reply-To: <87y54gk1yv.fsf@gmail.com> (Alexander Baier's message of "Fri, 22 Nov 2013 14:20:08 +0100")

Alexander Baier <lexi.baier@gmail.com> writes:

>>> For example, in all kinds of lisp modes I'm using paredit which
>>> provides both features, too, in a slightly different form.  So there
>>> I wouldn't want to activate these modes (although it seems having them
>>> activated doesn't do any harm).
>>
>> Looks like there's no problem, then.
>
> In my experience electric-indent-mode screws up indentation in
> python-mode buffers:

That's the purpose of:

,----[ C-h v electric-indent-inhibit RET ]
| electric-indent-inhibit is a variable defined in `electric.el'.
| Its value is nil
| 
|   Automatically becomes buffer-local when set.
| 
| Documentation:
| If non-nil, reindentation is not appropriate for this buffer.
| This should be set by major modes such as `python-mode' since
| Python does not lend itself to fully automatic indentation.
`----

In the current trunk, `python-mode' sets that to t.

Bye,
Tassilo



  reply	other threads:[~2013-11-22 19:13 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-16 23:27 electric-pair-mode Stefan Monnier
2013-11-17  3:10 ` electric-pair-mode Xue Fuqiao
2013-11-17 18:30 ` electric-pair-mode Jorgen Schaefer
2013-11-17 21:12   ` electric-pair-mode Stefan Monnier
2013-11-18 11:04   ` electric-pair-mode Xue Fuqiao
2013-11-17 21:05 ` electric-indent-mode (was: electric-pair-mode) Stefan Monnier
2013-11-19  9:48 ` electric-indent-mode (was electric-pair-mode) Stephen Berman
2013-11-19 13:41   ` Stefan Monnier
2013-11-19 14:39     ` Stephen Berman
2013-11-21 13:48 ` electric-pair-mode Tassilo Horn
2013-11-22  1:13   ` electric-pair-mode Stefan Monnier
2013-11-22 13:20     ` electric-pair-mode Alexander Baier
2013-11-22 19:13       ` Tassilo Horn [this message]
2013-11-22 20:35         ` electric-pair-mode Alexander Baier
2013-11-22 21:09           ` electric-pair-mode Tassilo Horn
2013-11-23  1:53           ` electric-pair-mode Stefan Monnier
2013-11-29  7:01     ` electric-pair-mode Tassilo Horn
2013-11-29 13:44       ` electric-pair-mode Stefan Monnier
2013-11-29 17:10         ` electric-pair-mode Tassilo Horn

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=87bo1cgsgw.fsf@thinkpad.tsdh.org \
    --to=tsdh@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=lexi.baier@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 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).