emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/textmodes/org-publish.el,v


From: Dan Nicolaescu
Subject: [Emacs-diffs] Changes to emacs/lisp/textmodes/org-publish.el,v
Date: Sun, 21 Oct 2007 00:24:34 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Dan Nicolaescu <dann>   07/10/21 00:24:33

Index: textmodes/org-publish.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/textmodes/org-publish.el,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- textmodes/org-publish.el    12 Oct 2007 06:40:13 -0000      1.15
+++ textmodes/org-publish.el    21 Oct 2007 00:24:30 -0000      1.16
@@ -443,7 +443,7 @@
   "Publish an org file to HTML.
 PLIST is the property list for the given project.
 FILENAME is the filename of the org file to be published."
-  (require 'org)
+  (eval-and-compile (require 'org))
   (let* ((arg (plist-get plist :headline-levels)))
     (progn
       (find-file filename)
@@ -464,7 +464,7 @@
   "Publish an org file to FORMAT.
 PLIST is the property list for the given project.
 FILENAME is the filename of the org file to be published."
-  (require 'org)
+  (eval-and-compile (require 'org))
   (let* ((arg (plist-get plist :headline-levels)))
     (progn
       (find-file filename)
@@ -478,9 +478,10 @@
 PLIST is the property list for the given project.
 FILENAME is the filename of the file to be published."
   ;; make sure eshell/cp code is loaded
+  (eval-and-compile
   (require 'eshell)
   (require 'esh-maint)
-  (require 'em-unix)
+    (require 'em-unix))
   (let ((destination (file-name-as-directory (plist-get plist 
:publishing-directory))))
     (eshell/cp filename destination)))
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]