emacs-devel
[Top][All Lists]
Advanced

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

Re: ansi-color.el and comint.el


From: Luc Teirlinck
Subject: Re: ansi-color.el and comint.el
Date: Tue, 26 Apr 2005 10:00:20 -0500 (CDT)

Stephan Stahl wrote:

   ansi-color.el may overwrite comint-output-filter-functions if it is
   loaded before comint.el.  That is because ansi-color.el does a simple

   (add-hook 'comint-output-filter-functions
             'ansi-color-process-output)

   Now comint-output-filter-functions is defined and when later comint.el
   is loaded its own

   (defvar comint-output-filter-functions '(comint-postoutput-scroll-to-bottom
   comint-watch-for-password-prompt)

   does nothing so those two functions may be missing.  I'm not sure how
   this is fixed best.

Would autoloading comint-output-filter-functions not work?  But the
same problem could happen to any hook whose defvar gives it a non-nil
value.  So I guess that any defvar of such a type that is not in a
preloaded file should be autoloaded,

Sincerely,

Luc.





reply via email to

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