summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2013-01-27 09:21:35 +0100
committerBastien Guerry <bzg@altern.org>2013-01-27 09:21:35 +0100
commit08c2938e7db0ae65b104759d74d67566b0d5c66f (patch)
treee168e644e5e95fb4fd7073cf155731ad47ce4520
parenta1196499237b6a0389fba2d21b69c34068404519 (diff)
downloadorg-mode-08c2938e7db0ae65b104759d74d67566b0d5c66f.tar.gz
org.el (org-fontify-meta-lines-and-blocks-1): Don't try to add text properties outside of the buffer
* org.el (org-fontify-meta-lines-and-blocks-1): Don't try to add text properties outside of the buffer. Thanks to Leo Liu for reporting this.
-rw-r--r--lisp/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index dc000b8..1c6f329 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5420,7 +5420,7 @@ by a #."
'(font-lock-fontified t invisible t)
'(font-lock-fontified t face org-document-info-keyword)))
(add-text-properties
- (match-beginning 6) (1+ (match-end 6))
+ (match-beginning 6) (min (point-max) (1+ (match-end 6)))
(if (string-equal dc1 "+title:")
'(font-lock-fontified t face org-document-title)
'(font-lock-fontified t face org-document-info))))