From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Valentin_W=C3=BCstholz?= Subject: Re: [PATCH] org.el: Preserve indentation of manually indented lines in example blocks. Date: Tue, 9 Aug 2011 21:37:10 +0200 Message-ID: References: <87sjpbmyb1.fsf@gmail.com> <87obzzmt2p.fsf@gmail.com> <878vr3lz8c.fsf@gmail.com> <87vcu6lnzy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=90e6ba2121b1c50c5604aa17b19b Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qqs7M-0006zS-5U for emacs-orgmode@gnu.org; Tue, 09 Aug 2011 15:37:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qqs7H-0001eH-Hr for emacs-orgmode@gnu.org; Tue, 09 Aug 2011 15:37:36 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:36939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qqs7H-0001eD-EN for emacs-orgmode@gnu.org; Tue, 09 Aug 2011 15:37:31 -0400 Received: by yxn22 with SMTP id 22so279781yxn.0 for ; Tue, 09 Aug 2011 12:37:30 -0700 (PDT) In-Reply-To: <87vcu6lnzy.fsf@gmail.com> 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: Nicolas Goaziou Cc: emacs-orgmode --90e6ba2121b1c50c5604aa17b19b Content-Type: text/plain; charset=UTF-8 Hi Nicolas. On Tue, Aug 9, 2011 at 3:21 PM, Nicolas Goaziou wrote: >> I would love to hear how other people feel about this. > > Same here. I don't use such blocks very often after all. > > Meanwhile, could you please reformat a bit your patch (no more than 80 > columns, no parents on their own line), add a commit message followed > by TINYCHANGE (unless you have signed FSF papers already) and use git > format-patch for the output? Sure. I have attached the output. >>> To sum it up, in the first case, you only loose the ability to indent >>> the whole buffer in one go (which isn't as bad as it sounds, since you >>> can achieve that differently). >> >> How else would you be able to achieve that? > > You may still indent regions without examples blocks, you can also > indent automatically each line you're writing. True, but that gets quite tedious once you have more than two or three blocks in your file. >> I might be wrong, but I believe that at least in LaTeX indentation in >> verse blocks is not taken into account. This seems reasonable since >> they are not typeset in a monospaced font. > > Actually indentation is partially taken into account. Some \hspace*{1cm} > are added. On the other hand, HTML enforces indentation with the help of >  . Your right, it seems that org-mode somehow deals with it, even though LaTeX doesn't quite support it natively. Best regards, Valentin --90e6ba2121b1c50c5604aa17b19b Content-Type: text/plain; charset=US-ASCII; name="0001-Preserve-indentation-of-explicitly-indented-lines-in.patch.txt" Content-Disposition: attachment; filename="0001-Preserve-indentation-of-explicitly-indented-lines-in.patch.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gr59re3q1 RnJvbSBjNjRmMWI2MDdkOTM3YzY0ODRkZmMxODExMDEyNWIxMjg3MTc1YWM0IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiA9P1VURi04P3E/VmFsZW50aW49MjBXPUZDc3Rob2x6Pz0gPHd1 ZXN0aG9sekBnbWFpbC5jb20+CkRhdGU6IFR1ZSwgOSBBdWcgMjAxMSAyMToyODo1NiArMDIwMApT dWJqZWN0OiBbUEFUQ0hdIFByZXNlcnZlIGluZGVudGF0aW9uIG9mIGV4cGxpY2l0bHkgaW5kZW50 ZWQgbGluZXMgaW4gZXhhbXBsZSBibG9ja3MKCiogbGlzcC9vcmcuZWwgKG9yZy1pbmRlbnQtbGlu ZS1mdW5jdGlvbik6IE1hZGUgdGhlIHdheSBpbiB3aGljaCBleGFtcGxlIGJsb2NrcyBhcmUKICBp bmRlbnRlZCBtb3JlIGZsZXhpYmxlLgoKQmVmb3JlOiBMaW5lcyBpbiBleGFtcGxlIGJsb2NrcyB3 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ICAgIChjb25kICgoZXF1YWwgKGRvd25jYXNlIChtYXRjaC1zdHJpbmcgMSkpICJzcmMiKQorICAg ICAgICAgICAgICAgICAgIDs7IHNyYyBibG9ja3M6IGxldCBgb3JnLWVkaXQtc3JjLWV4aXQnIGhh bmRsZSB0aGVtCisgICAgICAgICAgICAgICAgICAgKG9yZy1nZXQtaW5kZW50YXRpb24pKQorICAg ICAgICAgICAgICAgICAgKChlcXVhbCAoZG93bmNhc2UgKG1hdGNoLXN0cmluZyAxKSkgImV4YW1w bGUiKQorICAgICAgICAgICAgICAgICAgIChtYXggKG9yZy1nZXQtaW5kZW50YXRpb24pCisJCQko b3JnLWdldC1pbmRlbnRhdGlvbiAobWF0Y2gtc3RyaW5nIDApKSkpCisgICAgICAgICAgICAgICAg ICAodAorICAgICAgICAgICAgICAgICAgIChvcmctZ2V0LWluZGVudGF0aW9uIChtYXRjaC1zdHJp bmcgMCkpKSkpKQogICAgICA7OyBUaGlzIGxpbmUgaGFzIG5vdGhpbmcgc3BlY2lhbCwgbG9vayBh dCB0aGUgcHJldmlvdXMgcmVsZXZhbnQKICAgICAgOzsgbGluZSB0byBjb21wdXRlIGluZGVudGF0 aW9uCiAgICAgICh0Ci0tIAoxLjcuNC5tc3lzZ2l0LjAKCg== --90e6ba2121b1c50c5604aa17b19b--