emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master e640492 3/4: Declare function in esh-mode before #'


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master e640492 3/4: Declare function in esh-mode before #'-ing it
Date: Sun, 16 Jun 2019 09:21:27 -0400 (EDT)

branch: master
commit e6404927e3922a1c8daf38a0b9efa7cb1f1377db
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    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.
---
 lisp/eshell/esh-mode.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el
index a36ac96..5644928 100644
--- a/lisp/eshell/esh-mode.el
+++ b/lisp/eshell/esh-mode.el
@@ -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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]