Commits

Ivan Andrus  committed 753fe96

Make byte-compilation more robust to work around a problem reported by
Dan Drake: http://trac.sagemath.org/sage_trac/ticket/13182

  • Participants
  • Parent commits 4987810
  • Tags sage-mode-0.9.1

Comments (0)

Files changed (3)

File emacs/sage-flymake.el

-(eval-when-compile (require 'flymake))
+(eval-when-compile (require 'flymake nil t))
 
 (when (require 'flymake nil t)
   (defun flymake-pylint-init ()

File emacs/sage-latex.el

 ;;; Code:
 
 (eval-when-compile
+  (require 'cl)
   (and (require 'tex-site nil t)
-       (require 'tex)
-       (require 'tex-buf))
-  (require 'org-latex nil t)
-  (require 'cl))
+       (require 'tex nil t)
+       (require 'tex-buf nil t))
+  (and (require 'org nil t)
+       (require 'org-latex nil t)))
 
 ;;;###autoload
 (defun sage-run-sagetex (name command file)

File emacs/sage-mode.el

 ;;; Code:
 
 (eval-when-compile (require 'cl))
-(eval-when-compile (require 'hippie-exp))
-(eval-when-compile (require 'eshell))
-(eval-when-compile (require 'esh-cmd))
-(eval-when-compile (require 'esh-io))
-(eval-when-compile (require 'pcomplete))
+(eval-when-compile (require 'hippie-exp nil t))
+(eval-when-compile (require 'eshell nil t))
+(eval-when-compile (require 'esh-cmd nil t))
+(eval-when-compile (require 'esh-io nil t))
+(eval-when-compile (require 'pcomplete nil t))
 (require 'sage-compat)
 (require 'python)
 (require 'comint)