From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: [BABEL] Two minor issues Date: Mon, 22 Nov 2010 14:20:06 +0000 Message-ID: <877hg5qw2x.fsf@gmail.com> References: <81aalwq74o.fsf@gmail.com> <87zkt4uac0.fsf@gmail.com> <80mxp41myt.fsf@missioncriticalit.com> <87k4k8m9fx.fsf@gmail.com> <80k4k5yabd.fsf@missioncriticalit.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=39911 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PKXGR-0005oR-7Q for emacs-orgmode@gnu.org; Mon, 22 Nov 2010 09:21:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PKXGH-0006fr-8O for emacs-orgmode@gnu.org; Mon, 22 Nov 2010 09:21:03 -0500 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:55183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PKXGH-0006f9-1V for emacs-orgmode@gnu.org; Mon, 22 Nov 2010 09:20:53 -0500 Received: from blackcap.stats.ox.ac.uk (blackcap.stats [163.1.210.5]) by markov.stats.ox.ac.uk (8.13.6/8.13.6) with ESMTP id oAMEKmD8017495 for ; Mon, 22 Nov 2010 14:20:48 GMT In-Reply-To: <80k4k5yabd.fsf@missioncriticalit.com> (=?utf-8?Q?=22S=C3=A9b?= =?utf-8?Q?astien?= Vauban"'s message of "Mon, 22 Nov 2010 10:30:46 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs org-mode mailing list S=C3=A9bastien Vauban writes: > Hi Dan, > > (resending this, as it seems to never have reached the ML) Could you tell me what I should do with the random characters in the addresses that appear in your emails? I've deleted the addresses and just sending to emacs-orgmode@gnu.org, is that OK? > Dan Davison wrote: >> S=C3=A9bastien Vauban writes: >>> Dan Davison wrote: <...> > Honestly, the way I update that code has been mainly done by sequences of > trials and errors. The above code is, for me, still quite complex to > understand with vars such as beg, beg1, end, end1 for which I hadn't > completely understood the meaning. This seems to work -- could you try it out? --8<---------------cut here---------------start------------->8--- diff --git a/lisp/org.el b/lisp/org.el index e2de48e..0b082da 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5102,9 +5102,6 @@ will be prompted for." (add-text-properties beg end '(font-lock-fontified t font-lock-multiline t)) - (add-text-properties beg beg1 '(face org-meta-line)) - (add-text-properties end1 (+ end 1) '(face org-meta-line)) - ; for end_src (cond ((and lang org-src-fontify-natively) (org-src-font-lock-fontify-block lang block-start block-end)) @@ -5117,6 +5114,8 @@ will be prompted for." (add-text-properties beg1 end1 '(face org-quote))) ((string=3D block-type "verse") (add-text-properties beg1 end1 '(face org-verse)))) + (add-text-properties beg beg1 '(face org-meta-line)) + (add-text-properties (1+ end) (1+ end1) '(face org-meta-line)) t)) ((member dc1 '("title:" "author:" "email:" "date:")) (add-text-properties --8<---------------cut here---------------end--------------->8--- Dan > Otherwise, I would even have proposed a > renaming of some of them. But, I think that whatever we do, such a code w= ill > stay complex to understand and change. > > Find here a picture of what we see (since my patch) without native > fontification. > > http://www.mygooglest.com/sva/No-Native-Fontification.png > > Also, a picture with the "new" setting of native fontification. > > http://www.mygooglest.com/sva/Native-Fontification-Minibug.png > > Hope this helps. If you need help, I'm willing to take a look back a it (= still > trying and testing the effect of changes), but it won't be before a coupl= e of > days. > > Best regards, > Seb