Browse Source

Merge branch 'maint'

Nicolas Goaziou 10 years ago
parent
commit
ff1b975679
1 changed files with 12 additions and 11 deletions
  1. 12 11
      lisp/org-agenda.el

+ 12 - 11
lisp/org-agenda.el

@@ -3815,7 +3815,7 @@ FILTER-ALIST is an alist of filters we need to apply when
   "Make highest priority lines bold, and lowest italic."
   "Make highest priority lines bold, and lowest italic."
   (interactive)
   (interactive)
   (mapc (lambda (o) (if (eq (overlay-get o 'org-type) 'org-priority)
   (mapc (lambda (o) (if (eq (overlay-get o 'org-type) 'org-priority)
-			(delete-overlay o)))
+		   (delete-overlay o)))
 	(overlays-in (point-min) (point-max)))
 	(overlays-in (point-min) (point-max)))
   (save-excursion
   (save-excursion
     (let (b e p ov h l)
     (let (b e p ov h l)
@@ -3833,16 +3833,17 @@ FILTER-ALIST is an alist of filters we need to apply when
 	      ov (make-overlay b e))
 	      ov (make-overlay b e))
 	(overlay-put
 	(overlay-put
 	 ov 'face
 	 ov 'face
-	 (cons (cond ((org-face-from-face-or-color
-		       'priority nil
-		       (cdr (assoc p org-priority-faces))))
-		     ((and (listp org-agenda-fontify-priorities)
-			   (org-face-from-face-or-color
-			    'priority nil
-			    (cdr (assoc p org-agenda-fontify-priorities)))))
-		     ((equal p l) 'italic)
-		     ((equal p h) 'bold))
-	       'org-priority))
+	 (let ((special-face
+		(cond ((org-face-from-face-or-color
+			'priority nil
+			(cdr (assoc p org-priority-faces))))
+		      ((and (listp org-agenda-fontify-priorities)
+			    (org-face-from-face-or-color
+			     'priority nil
+			     (cdr (assoc p org-agenda-fontify-priorities)))))
+		      ((equal p l) 'italic)
+		      ((equal p h) 'bold))))
+	   (if special-face (list special-face 'org-priority) 'org-priority)))
 	(overlay-put ov 'org-type 'org-priority)))))
 	(overlay-put ov 'org-type 'org-priority)))))
 
 
 (defvar org-depend-tag-blocked)
 (defvar org-depend-tag-blocked)