From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: indent with emacs batch mode Date: Sun, 08 Jan 2017 16:48:06 +0300 Message-ID: <87vatp1x49.fsf@gmail.com> References: <87y3yocil2.fsf@elephly.net> <87inpr8l6y.fsf@gmail.com> <87pojyzi24.fsf@gnu.org> <87lgumd0ro.fsf@elephly.net> 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]:35939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQDpU-0001Qg-34 for guix-devel@gnu.org; Sun, 08 Jan 2017 08:48:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQDpR-0006ip-15 for guix-devel@gnu.org; Sun, 08 Jan 2017 08:48:12 -0500 In-Reply-To: <87lgumd0ro.fsf@elephly.net> (Ricardo Wurmus's message of "Sat, 07 Jan 2017 22:21:31 +0100") 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" To: Ricardo Wurmus Cc: guix-devel Ricardo Wurmus (2017-01-07 22:21 +0100) wrote: > Ludovic Court=C3=A8s writes: > >> Alex Kost skribis: >> >>> Since a user knows what file (s)he wants modify, I think it is better to >>> avoid starting the REPL, so it will be *much faster*. After all, I >>> would do it like this: >> >> Sounds cool! (The only downside is that it would indent the whole file >> so the submitter might have to undo indentation changes in other parts >> of the file before committing.) > > But we=E2=80=99re using =E2=80=9Cindent-sexp=E2=80=9D, which only indents= the expression that > belongs to the matched package name. Right, Ludo you missunderstood: only the specified package will be indented. >> What about committing it as a script, say >> etc/devel/indent-scheme-code.sh, and mention it under =E2=80=9CSubmitting >> Patches=E2=80=9D and =E2=80=9CFormatting Code=E2=80=9D? > > Sounds good to me. Alex, would you like to do it? Sorry, I wouldn't :-) --=20 Alex