Commit e6404927 authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

Declare function in esh-mode before #'-ing it

* lisp/eshell/esh-mode.el (ansi-color-apply-text-property-face):
Declare to avoid a compilation warning.
parent bba5cc96
......@@ -1015,9 +1015,12 @@ This function could be in the list `eshell-output-filter-functions'."
(autoload 'ansi-color-apply-on-region "ansi-color")
(defvar ansi-color-apply-face-function)
(declare-function ansi-color-apply-text-property-face "ansi-color"
(BEG END FACE))
(defun eshell-handle-ansi-color ()
"Handle ANSI color codes."
(require 'ansi-color)
(let ((ansi-color-apply-face-function #'ansi-color-apply-text-property-face))
(ansi-color-apply-on-region eshell-last-output-start
eshell-last-output-end)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment