emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] How to track down "No heading for this item in buffer or region.


From: Bastien
Subject: Re: [O] How to track down "No heading for this item in buffer or region."?
Date: Sat, 26 Jan 2013 11:51:10 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

Hi Nick,

Nick Dokos <address@hidden> writes:

> Not quite: the file *is* opened in a buffer (the agenda code opens all the
> files, I presume with find-file-noselect), but the text properties are
> not up to date. It's only when I explicitly visit the buffer
> that they get updated.

I updated the commit using the `font-lock-comment-face' for skipping
commented scheduled/deadline lines -- it now uses comment-start-skip
to skip those lines.  No need to put the # at the beginning of the
line, the optimization here is not significant enough IMHO.

Org now relies on the general font-lock mechanism for comments, and
defines comment-start etc.  See `org-setup-comments-handling'. Yes,
the text properties from font-lock are not always present when the
buffer is not visited, you're right... things seem a bit unpredictable
in this area.

Thanks,

-- 
 Bastien



reply via email to

[Prev in Thread] Current Thread [Next in Thread]