summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2009-11-03 03:14:47 +0000
committerGlenn Morris <rgm@gnu.org>2009-11-03 03:14:47 +0000
commitdb04f33fd16c45962469cac8b94bb26ced1a8f58 (patch)
tree774aad4161ca529b1f85743f06dd4c431deee07e /lisp
parent659f64e909614e62b939087c625fd9abfbcf7073 (diff)
downloademacs-db04f33fd16c45962469cac8b94bb26ced1a8f58.tar.gz
emacs-db04f33fd16c45962469cac8b94bb26ced1a8f58.tar.bz2
emacs-db04f33fd16c45962469cac8b94bb26ced1a8f58.zip
(ansi-color-apply-on-region): Autoload it...
(eshell-handle-ansi-color): ... Rather than requiring ansi-color.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/eshell/esh-mode.el3
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 057fefd52a7..5761bac6724 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2009-11-03 Glenn Morris <rgm@gnu.org>
+
+ * eshell/esh-mode.el (ansi-color-apply-on-region): Autoload it...
+ (eshell-handle-ansi-color): ... Rather than requiring ansi-color.
+
2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
* term/ns-win.el (ns-scroll-bar-move, ns-face-at-pos):
diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el
index 0fa6347edee..1cef98794f5 100644
--- a/lisp/eshell/esh-mode.el
+++ b/lisp/eshell/esh-mode.el
@@ -1073,9 +1073,10 @@ This function could be in the list `eshell-output-filter-functions'."
(custom-add-option 'eshell-output-filter-functions
'eshell-handle-control-codes)
+(autoload 'ansi-color-apply-on-region "ansi-color")
+
(defun eshell-handle-ansi-color ()
"Handle ANSI color codes."
- (eval-and-compile (require 'ansi-color))
(ansi-color-apply-on-region eshell-last-output-start
eshell-last-output-end))