Mercurial > emacs
changeset 69685:15d9920a3a63
(org-get-level-face): Fixed bug with level counting.
author | Carsten Dominik <dominik@science.uva.nl> |
---|---|
date | Mon, 27 Mar 2006 08:03:33 +0000 |
parents | b1bbdea96d2b |
children | a952be838214 |
files | lisp/textmodes/org.el |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/textmodes/org.el Mon Mar 27 08:03:14 2006 +0000 +++ b/lisp/textmodes/org.el Mon Mar 27 08:03:33 2006 +0000 @@ -2383,7 +2383,7 @@ "Get the right face for match N in font-lock matching of healdines." (setq org-l (- (match-end 2) (match-beginning 1))) (if org-odd-levels-only (setq org-l (1+ (/ org-l 2)))) - (setq org-f (nth (1- (% org-l org-n-levels)) org-level-faces)) + (setq org-f (nth (% (1- org-l) org-n-levels) org-level-faces)) (cond ((eq n 1) (if org-hide-leading-stars 'org-hide org-f)) ((eq n 2) org-f)