From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Baier Newsgroups: gmane.emacs.devel Subject: Re: electric-pair-mode Date: Fri, 22 Nov 2013 21:35:17 +0100 Message-ID: <871u28jhtm.fsf@gmail.com> References: <877gc1n9vb.fsf@tsdh.uni-koblenz.de> <87y54gk1yv.fsf@gmail.com> <87bo1cgsgw.fsf@thinkpad.tsdh.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1385152557 6429 80.91.229.3 (22 Nov 2013 20:35:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Nov 2013 20:35:57 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 22 21:36:01 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VjxSL-0008Bx-Do for ged-emacs-devel@m.gmane.org; Fri, 22 Nov 2013 21:36:01 +0100 Original-Received: from localhost ([::1]:40970 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjxSK-0006jq-U9 for ged-emacs-devel@m.gmane.org; Fri, 22 Nov 2013 15:36:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjxSC-0006iT-06 for emacs-devel@gnu.org; Fri, 22 Nov 2013 15:35:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjxS3-0000eS-9A for emacs-devel@gnu.org; Fri, 22 Nov 2013 15:35:51 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:38599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjxS2-0000eM-QV for emacs-devel@gnu.org; Fri, 22 Nov 2013 15:35:43 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VjxS1-0007wG-OA for emacs-devel@gnu.org; Fri, 22 Nov 2013 21:35:41 +0100 Original-Received: from nat-wh-wh36.rz.uni-karlsruhe.de ([141.70.81.154]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Nov 2013 21:35:41 +0100 Original-Received: from lexi.baier by nat-wh-wh36.rz.uni-karlsruhe.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Nov 2013 21:35:41 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 39 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: nat-wh-wh36.rz.uni-karlsruhe.de User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:kjhbVYQbqYOOKMph0TojaL8a/To= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:165576 Archived-At: Tassilo Horn writes: > Alexander Baier 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 Thank you, I did not know about this. I am still running 24.3, which does not offer this. I will add this to my config as soon as 24.4 is released. Regards, Alex