From mboxrd@z Thu Jan 1 00:00:00 1970 From: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer?=) Subject: Re: [PATCH 4/4] gnu: Add python-requests-mock. Date: Tue, 15 Sep 2015 20:36:46 +0200 Message-ID: <87twqvy1fl.fsf@T420.taylan> References: <1442265803-26218-1-git-send-email-tipecaml@gmail.com> <1442265803-26218-5-git-send-email-tipecaml@gmail.com> <8737yfaahw.fsf@openmailbox.org> <20150915171744.GA3054@debian> <87y4g7y4ey.fsf@T420.taylan> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbv60-0004uS-Pu for guix-devel@gnu.org; Tue, 15 Sep 2015 14:36:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zbv5z-0006nN-P9 for guix-devel@gnu.org; Tue, 15 Sep 2015 14:36:48 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:35287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbv5z-0006nG-J5 for guix-devel@gnu.org; Tue, 15 Sep 2015 14:36:47 -0400 Received: by wicge5 with SMTP id ge5so41721075wic.0 for ; Tue, 15 Sep 2015 11:36:47 -0700 (PDT) In-Reply-To: <87y4g7y4ey.fsf@T420.taylan> ("Taylan Ulrich \=\?utf-8\?Q\?\=5C\=22Bay\=C4\=B1rl\=C4\=B1\=2FKammer\=5C\=22\=22's\?\= message of "Tue, 15 Sep 2015 19:32:21 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Andreas Enge Cc: guix-devel@gnu.org taylanbayirli@gmail.com (Taylan Ulrich "Bay=C4=B1rl=C4=B1/Kammer") writes: > Emacs will use 2 spaces when the symbol (e.g. sha256 in this case) has > its 'scheme-indent-function' property set, and 1 space otherwise. So > you get > > (let (...) > foobar) ;two spaces because 'let has its 'scheme-indent-function > ;set to 1 (meaning *one* argument is "special", here the > ;list of bindings) > > and > > (display > (string-append > foobar > quux)) ;one space each because they're plain functions and have > ;no 'scheme-indent-function property set > > Under Guix's sources, the .dir-locals.el file contains expressions of > the form (put 'foo 'quux value), which insert properties into symbols. > (Here the 'foo symbol gets its 'quux property set.) Symbols appearing > there, like for instance 'with-store or 'modify-phases or 'substitute* > should probably have their arguments 2-space indented, and others > 1-space, since that's what Emacs will do automatically. > > By the way, shall you put a newline directly before the "special" > argument of such a form, e.g. the bindings-list of a let expression, > then you use 4 spaces for the "special" argument: > > (let > (...) > foobar) > > (modify-phases > %standard-phases > (replace 'foo bar) > ...) > > And also, as you might have noticed, it's mostly macros that get their > 'scheme-indent-function set. I don't know if this rule is enforced > under Guix. I sent off my mail in kind of a hurry there. I should clarify that I was merely assuming that Emacs's default behavior would be desirable to imitate in manual formatting, because otherwise it's pretty annoying for Emacs users who will constantly have to be careful not to cause whitespace changes due to Emacs's automatic behavior. (But it's also otherwise sensible, what Emacs does.) The higher-ups shall say the final word. :-) Taylan