]> git.eshelyaron.com Git - emacs.git/commitdiff
Declare function in esh-mode before #'-ing it
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 16 Jun 2019 13:14:26 +0000 (15:14 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 16 Jun 2019 13:21:18 +0000 (15:21 +0200)
* lisp/eshell/esh-mode.el (ansi-color-apply-text-property-face):
Declare to avoid a compilation warning.

lisp/eshell/esh-mode.el

index a36ac969e55c46c05543381a6cfbbbe4a6ebbb03..5644928114e01d39b650db465887bbb49afa3157 100644 (file)
@@ -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)))