From 08c2938e7db0ae65b104759d74d67566b0d5c66f Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Sun, 27 Jan 2013 09:21:35 +0100 Subject: [PATCH] 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. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index dc000b8f1..1c6f32968 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)))) -- 2.11.4.GIT