From db04f33fd16c45962469cac8b94bb26ced1a8f58 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Tue, 3 Nov 2009 03:14:47 +0000 Subject: [PATCH] (ansi-color-apply-on-region): Autoload it... (eshell-handle-ansi-color): ... Rather than requiring ansi-color. --- lisp/ChangeLog | 5 +++++ lisp/eshell/esh-mode.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 + + * 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 * 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)) -- 2.39.5