From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: How to font-lock diffs? Date: Thu, 23 Aug 2018 15:25:06 -0700 Message-ID: References: <87muteg4xm.fsf@mbork.pl> <87zhxek1hk.fsf@alphaville.usersys.redhat.com> <87ftz4ucqf.fsf@mbork.pl> 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]:59838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fsy2R-0007ic-8j for emacs-orgmode@gnu.org; Thu, 23 Aug 2018 18:25:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fsy2Q-0002Nn-8b for emacs-orgmode@gnu.org; Thu, 23 Aug 2018 18:25:11 -0400 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]:39096) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fsy2P-0002Ks-W3 for emacs-orgmode@gnu.org; Thu, 23 Aug 2018 18:25:10 -0400 Received: by mail-lj1-x22b.google.com with SMTP id l15-v6so5379293lji.6 for ; Thu, 23 Aug 2018 15:25:09 -0700 (PDT) In-Reply-To: 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" To: leslie@watter.net Cc: Nick Dokos , org-mode-email i ran into this type of thing years ago and wrote this summary in comments to remind myself of the issues. maybe it will be useful to somebody. ;; when you edit a source or data block, org will by default ;; remove some leading whitespace and then add 2 spaces, so the ;; whole block in org is indented by 2. ;; ;; (the deleted rectangle seems to be the maximum amount of ;; whitespace common to all lines in each block.) ;; ;; initial tabs get converted to spaces, which breaks things. ;; example blocks get unindented during export incorrectly. ;; mistakes are possible. ;; ;; this as non-nil prevents all that. ;; ;; we EITHER unindent all and set this non-nil, OR put up with ;; stripping of leading whitespace from blocks. ;; ;; /i prefer t./ it is not possible in babel to indent without ;; having the special feature of removing the whitespace ;; rectangle. ;; ;; you can use -i to locally do t. there isn't the reverse of ;; -i. there are no long options. ;; ;; source blocks might actually work without indentation even ;; with the default value, but then when you edit it indents. (setq org-src-preserve-indentation t) --=20 The Kafka Pandemic: The disease DOES progress. MANY people have died from it. And ANYBODY can get it at any time. "You=E2=80=99ve really gotta quit this and get moving, because this is murd= er by neglect." --- .