changeset 99179:ff3f463a949c

(org-agenda-align-tags): Replace use of cl `adjoin'.
author Glenn Morris <rgm@gnu.org>
date Tue, 28 Oct 2008 02:57:01 +0000
parents 8af0a96bf7da
children 84fe37d605df
files lisp/org/org-agenda.el
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/org/org-agenda.el	Tue Oct 28 01:02:44 2008 +0000
+++ b/lisp/org/org-agenda.el	Tue Oct 28 02:57:01 2008 +0000
@@ -4984,12 +4984,12 @@
 				(if line (point-at-eol) nil) t)
 	(add-text-properties
 	 (match-beginning 2) (match-end 2)
-	 (list 'face (delq nil (adjoin 'org-tag
-                                       (let ((prop (get-text-property
-                                                    (match-beginning 2) 'face)))
-                                         (if (listp prop)
-                                             prop
-                                           (list prop)))))))
+	 (list 'face (delq nil (let ((prop (get-text-property
+					    (match-beginning 2) 'face)))
+				 (or (listp prop) (setq prop (list prop)))
+				 (if (memq 'org-tag prop)
+				     prop
+				   (cons 'org-tag prop))))))
 	(setq l (- (match-end 2) (match-beginning 2))
 	      c (if (< org-agenda-tags-column 0)
 		    (- (abs org-agenda-tags-column) l)