From fc374109cd1cc69144dc03f32e8268441e47e0b0 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Wed, 4 Apr 2012 08:28:17 +0200 Subject: [PATCH] org.el: Prevent an error when trying to fontify beyond (point-max). * org.el (org-fontify-meta-lines-and-blocks-1): Prevent an error when trying to fontify beyond (point-max). TINYCHANGE Thanks to Leo and Henning for reporting this, and to Nick Dokos for providing the fix. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 49a715361..77621628f 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5475,7 +5475,7 @@ will be prompted for." ((not (member (char-after beg) '(?\ ?\t))) ;; just any other in-buffer setting, but not indented (add-text-properties - beg (1+ (match-end 0)) + beg (match-end 0) '(font-lock-fontified t face org-meta-line)) t) ((or (member dc1 '("begin:" "end:" "caption:" "label:"