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 14:20:08 +0100 Message-ID: <87y54gk1yv.fsf@gmail.com> References: <877gc1n9vb.fsf@tsdh.uni-koblenz.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1385127543 21876 80.91.229.3 (22 Nov 2013 13:39:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Nov 2013 13:39:03 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 22 14:39:08 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 1VjqpE-00058z-PC for ged-emacs-devel@m.gmane.org; Fri, 22 Nov 2013 14:31:12 +0100 Original-Received: from localhost ([::1]:38777 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjqpE-00035x-9L for ged-emacs-devel@m.gmane.org; Fri, 22 Nov 2013 08:31:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vjqp6-00035d-ON for emacs-devel@gnu.org; Fri, 22 Nov 2013 08:31:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vjqp0-0007mt-Td for emacs-devel@gnu.org; Fri, 22 Nov 2013 08:31:04 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:59297) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vjqp0-0007mk-N6 for emacs-devel@gnu.org; Fri, 22 Nov 2013 08:30:58 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Vjqo7-0003u8-79 for emacs-devel@gnu.org; Fri, 22 Nov 2013 14:30:03 +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 14:30:03 +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 14:30:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 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:VQba9GsRuWttLIaJMzt2wEtULA4= 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:165555 Archived-At: Stefan Monnier writes: >> No annoyance so far but I'm wondering why both `electric-pair-mode' and >> `electric-indent-mode' are *global* minor modes. > > Because in my experience, most people who like those features, like > them everywhere. > >> 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: ---------------------------------------------------------------- def foo(x): print (x) def bar ():| ---------------------------------------------------------------- Put this content into a buffer and turn on python-mode and electric-indent-mode. Put the cursor where the "|" is and press RET. On my machine the "def bar():" gets reindented so it lines up with the preceding "print(x):" line. This is usually not what you want. > > Stefan Regards, Alex