From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lele Gaifax Newsgroups: gmane.emacs.devel Subject: "python" c-style-alist definition and PEP7 Date: Sat, 09 Dec 2017 09:55:10 +0100 Organization: Nautilus Entertainments Message-ID: <874lp0s2kx.fsf@metapensiero.it> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1512810200 29920 195.159.176.226 (9 Dec 2017 09:03:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 9 Dec 2017 09:03:20 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 09 10:03:13 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eNb2O-0007YX-Ny for ged-emacs-devel@m.gmane.org; Sat, 09 Dec 2017 10:03:12 +0100 Original-Received: from localhost ([::1]:40546 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNb2W-0004sP-4Z for ged-emacs-devel@m.gmane.org; Sat, 09 Dec 2017 04:03:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNauo-0002V8-TW for emacs-devel@gnu.org; Sat, 09 Dec 2017 03:55:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eNaul-0005g4-QP for emacs-devel@gnu.org; Sat, 09 Dec 2017 03:55:22 -0500 Original-Received: from [195.159.176.226] (port=58065 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eNaul-0005eY-Ip for emacs-devel@gnu.org; Sat, 09 Dec 2017 03:55:19 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eNaub-000211-U6 for emacs-devel@gnu.org; Sat, 09 Dec 2017 09:55:09 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:DvDLOzhHK1lbXtlDOnL6o1t0OLE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:220810 Archived-At: Hi, I noticed that the c-style-alist default definition for "python" does not follow the style recommendations of PEP7[#], w.r.t. `c-basic-offset' and `indent-tabs-mode'. In my .emacs.d I thus added something like (defconst python-c-style '("python" (indent-tabs-mode . nil) (c-basic-offset . 4)) "Rectified CPython style") (c-add-style "python3" python-c-style) to adjust those settings, activating that style in a .dir-locals.el file in the root directory of my CPython sources checkout. While that is of course easy enough, I wonder whether the default settings should be "fixed". What's your opinion? bye, lele. [#] https://www.python.org/dev/peps/pep-0007/#code-lay-out -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. lele@metapensiero.it | -- Fortunato Depero, 1929.