From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] Fix org-indent-region's BEGIN_SRC / END_SRC indentation Date: Mon, 28 Oct 2013 09:57:20 +0100 Message-ID: <8738nlbwnj.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaidK-0008Vt-02 for emacs-orgmode@gnu.org; Mon, 28 Oct 2013 04:57:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VaidE-0004NE-5o for emacs-orgmode@gnu.org; Mon, 28 Oct 2013 04:57:09 -0400 Received: from mail-wg0-x235.google.com ([2a00:1450:400c:c00::235]:63228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaidD-0004N9-V5 for emacs-orgmode@gnu.org; Mon, 28 Oct 2013 04:57:04 -0400 Received: by mail-wg0-f53.google.com with SMTP id y10so6357598wgg.32 for ; Mon, 28 Oct 2013 01:57:02 -0700 (PDT) In-Reply-To: (Joost Diepenmaat's message of "Mon, 28 Oct 2013 09:23:36 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Joost Diepenmaat Cc: emacs-orgmode@gnu.org Hello, Joost Diepenmaat writes: > Attached is a 2 character patch that makes org-indent-region indent > #+BEGIN_SRC and #+END_SRC lines according to org document rules instead of > the indentation rules of the language /inside/ the source block. > > This is my first patch proposal for org-mode, so please let me know if I > need to modify things. In any case, feedback is welcome! [...] > From 659a071cc519ebdaabd586132f1d4d3159475c8d Mon Sep 17 00:00:00 2001 > From: Joost Diepenmaat > Date: Fri, 25 Oct 2013 11:08:46 +0200 > Subject: [PATCH] Correctly indent BEGIN_SRC and END_SRC lines Here, you need to specifying what functions and variables are modified by your patch and how. Something like the following should do: * lisp/org.el (org-indent-region): BEGIN_SRC and END_SRC lines should not be considered part of the source block for the purposes of indentation. > TINYCHANGE Otherwise, the patch looks good. So I applied it with said modifications. Thank you. Regards, -- Nicolas Goaziou