From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: [PATCH] Do not indent option keywords Date: Thu, 09 May 2013 21:14:48 +0200 Message-ID: <8738twge3b.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaWLB-0001vN-Bc for emacs-orgmode@gnu.org; Thu, 09 May 2013 15:17:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UaWLA-0000Yo-8U for emacs-orgmode@gnu.org; Thu, 09 May 2013 15:17:21 -0400 Received: from plane.gmane.org ([80.91.229.3]:45775) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaWIw-0008SC-2d for emacs-orgmode@gnu.org; Thu, 09 May 2013 15:15:02 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UaWIu-0008Tk-Vj for emacs-orgmode@gnu.org; Thu, 09 May 2013 21:15:00 +0200 Received: from pd9eb3e31.dip0.t-ipconnect.de ([217.235.62.49]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 May 2013 21:15:00 +0200 Received: from Stromeko by pd9eb3e31.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 May 2013 21:15:00 +0200 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@gnu.org --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-org.el-do-not-indent-option-keyword-lines.patch >From 1ed4564cd14369758167758bb8a2eb5c4d0d8f0e Mon Sep 17 00:00:00 2001 From: Achim Gratz Date: Thu, 9 May 2013 19:28:37 +0200 Subject: [PATCH] org.el: do not indent option keyword lines * lisp/org.el (org-indent-line): Keep option keyword lines at column zero so they don't lose their decoration. --- lisp/org.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/org.el b/lisp/org.el index bbb30d6..2d2e79f 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -21975,6 +21975,8 @@ (defun org-indent-line () (org-get-indentation (match-string 0)))) (t (org-get-indentation (match-string 0)))))) + ;; Option keywords + ((looking-at "^#\\+") (setq column 0)) ;; This line has nothing special, look at the previous relevant ;; line to compute indentation (t -- 1.8.2.1 --=-=-= Content-Type: text/plain Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for KORG EX-800 and Poly-800MkII V0.9: http://Synth.Stromeko.net/Downloads.html#KorgSDada --=-=-=--