From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: electric-pair-mode Date: Fri, 22 Nov 2013 22:09:24 +0100 Message-ID: <877gc0gn3v.fsf@thinkpad.tsdh.org> References: <877gc1n9vb.fsf@tsdh.uni-koblenz.de> <87y54gk1yv.fsf@gmail.com> <87bo1cgsgw.fsf@thinkpad.tsdh.org> <871u28jhtm.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1385154581 29540 80.91.229.3 (22 Nov 2013 21:09:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Nov 2013 21:09:41 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alexander Baier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 22 22:09:46 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 1Vjxz0-0007L9-9n for ged-emacs-devel@m.gmane.org; Fri, 22 Nov 2013 22:09:46 +0100 Original-Received: from localhost ([::1]:41069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vjxyz-0002Ar-Qv for ged-emacs-devel@m.gmane.org; Fri, 22 Nov 2013 16:09:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vjxyq-00020D-0o for emacs-devel@gnu.org; Fri, 22 Nov 2013 16:09:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vjxyj-0001zS-S6 for emacs-devel@gnu.org; Fri, 22 Nov 2013 16:09:35 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:58981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vjxyj-0001zF-Jy for emacs-devel@gnu.org; Fri, 22 Nov 2013 16:09:29 -0500 Original-Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 9BD0520E4A; Fri, 22 Nov 2013 16:09:27 -0500 (EST) Original-Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Fri, 22 Nov 2013 16:09:28 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:cc:subject:references:date :in-reply-to:message-id:mime-version:content-type; s=smtpout; bh=O5WtCN8XHCiK5kVc3Km6x9cIQEM=; b=CwpsvsuyJZHgMxN4u5JSqCDgeAHH /9Hn2Sa9ZL4UnOjHPOuOjmka7JhOOK51a901NCWDpkFvr3nyIo80K3iNM6TSWkDz jwYQAZ7CMokO58ntT+euMjMeVpOeMsrNwEnmJhbOUIvz+7hsjFrE94nNHfe4aJRL E5RTAODaB+2twTQ= X-Sasl-enc: 7075xuXFMc3sUiu+eNR6oyeWcMxJnkMbf8nRZ0KbnHrf 1385154565 Original-Received: from thinkpad.tsdh.org (unknown [91.67.164.26]) by mail.messagingengine.com (Postfix) with ESMTPA id 2C5A8C00E91; Fri, 22 Nov 2013 16:09:25 -0500 (EST) Mail-Followup-To: Alexander Baier , emacs-devel@gnu.org In-Reply-To: <871u28jhtm.fsf@gmail.com> (Alexander Baier's message of "Fri, 22 Nov 2013 21:35:17 +0100") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.25 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:165580 Archived-At: Alexander Baier writes: Hi Alex, >>> 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. > > 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. You don't need to configure anything. With 24.4, it'll work correct out of the box. Bye, Tassilo