Browse Source

More changes from downstream Emacs.

Carsten Dominik 16 years ago
parent
commit
f6413e23ba
2 changed files with 7 additions and 11 deletions
  1. 6 6
      lisp/org-agenda.el
  2. 1 5
      lisp/org-publish.el

+ 6 - 6
lisp/org-agenda.el

@@ -5061,12 +5061,12 @@ the new TODO state."
 				(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)

+ 1 - 5
lisp/org-publish.el

@@ -535,13 +535,9 @@ See `org-publish-org-to' to the list of arguments."
   "Publish a file with no transformation of any kind.
 See `org-publish-org-to' to the list of arguments."
   ;; make sure eshell/cp code is loaded
-  (eval-and-compile
-    (require 'eshell)
-;    (require 'esh-maint)
-    (require 'em-unix))
   (unless (file-directory-p pub-dir)
     (make-directory pub-dir t))
-  (eshell/cp filename pub-dir))
+  (copy-file filename pub-dir))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;;; Publishing files, sets of files, and indices