From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Valentin_W=C3=BCstholz?= Subject: [PATCH] org.el: Preserve indentation of manually indented lines in example blocks. Date: Mon, 8 Aug 2011 21:48:36 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=000325573ef6ce4ac704aa03bc1a Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqVoo-0007f1-AQ for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 15:48:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqVon-0005i2-Dm for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 15:48:58 -0400 Received: from mail-iy0-f175.google.com ([209.85.210.175]:62071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqVon-0005hs-3d for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 15:48:57 -0400 Received: by iyn15 with SMTP id 15so7265264iyn.6 for ; Mon, 08 Aug 2011 12:48:56 -0700 (PDT) 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: emacs-orgmode --000325573ef6ce4ac704aa03bc1a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, lines in example blocks are currently indented like the surrounding begin and end delimiters. =C2=A8This works fine unless, you want to indent some lines manually; in this case, auto-indenting the buffer reverts the manual indentation. This patch should prevent this from happening. Best regards, Valentin --000325573ef6ce4ac704aa03bc1a Content-Type: text/plain; charset=US-ASCII; name="org.el.patch.txt" Content-Disposition: attachment; filename="org.el.patch.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gr3ugm660 ZGlmZiAtLWdpdCBhL2xpc3Avb3JnLmVs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AgICAgICAob3JnLWdldC1pbmRlbnRhdGlvbiAobWF0Y2gtc3RyaW5nIDApKSkNCisgICAgICAg ICAgICAgICAgICApKSkNCiAgICAgIDs7IFRoaXMgbGluZSBoYXMgbm90aGluZyBzcGVjaWFsLCBs b29rIGF0IHRoZSBwcmV2aW91cyByZWxldmFudA0KICAgICAgOzsgbGluZSB0byBjb21wdXRlIGlu ZGVudGF0aW9uDQogICAgICAodA0K --000325573ef6ce4ac704aa03bc1a--