emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Henning Redestig <henning.red@googlemail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: org-mode fontification error [6 times]
Date: Tue, 03 Apr 2012 17:23:20 -0400	[thread overview]
Message-ID: <6913.1333488200@alphaville> (raw)
In-Reply-To: Message from Henning Redestig <henning.red@googlemail.com> of "Tue, 03 Apr 2012 21:43:46 +0200." <CAO8D54yDRnu7F_8-sT-3VtjsQtF=+SKw-cohSKrgTp+QguUzdA@mail.gmail.com>

Henning Redestig <henning.red@googlemail.com> wrote:

> +1 on this, I get 'org-mode fontification error' all the time after
> having typed just
> 
> #+
> 
> in an org buffer. with org 7.8.08 and emacs 23.1.50.1 and running with emacs -Q
> 
> 2011/8/18 Leo <sdl.web@gmail.com>:
> > On 2011-08-18 15:22 +0800, Bastien wrote:
> >>> Just a heads-up. I saw this in my *message* buffer. I don't know how
> >>> it happened.
> >>
> >> Is this with emacs -Q?
> >>
> >> I am unable to reproduce this with emacs-23.3.1 and emacs-24.0.50.1.
> >
> > It is in my normal running emacs session. I haven't found a reproduction
> > recipe. But I have been using the same org-mode setup for years.
> >
> > Leo
> >

Confirmed. It only happens when you start typing into an empty buffer.
Looks like an off-by-one error in org.el:org-fontify-meta-lines-and-blocks-1,
aroung line 5487:

,----
| 	    ;; just any other in-buffer setting, but not indented
| 	    (add-text-properties
| 	     beg (1+ (match-end 0))
| 	     '(font-lock-fontified t face org-meta-line))
`----

The second arg should probably be just (match-end 0).

Nick

  reply	other threads:[~2012-04-03 21:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-17 13:17 org-mode fontification error [6 times] Leo
2011-08-18  7:22 ` Bastien
2011-08-18  8:01   ` Leo
2012-04-03 19:43     ` Henning Redestig
2012-04-03 21:23       ` Nick Dokos [this message]
2012-04-04  6:30         ` Bastien
2012-04-04 17:46           ` Henning Redestig
2012-04-04 18:41             ` Nick Dokos
2012-04-09 17:21             ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6913.1333488200@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=henning.red@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).