From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: ansi-color.el and comint.el Date: Tue, 26 Apr 2005 10:00:20 -0500 (CDT) Message-ID: <200504261500.j3QF0KT22961@raven.dms.auburn.edu> References: <49482.217.194.34.123.1114522002.squirrel@wwws.franken.de> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1114527614 27422 80.91.229.2 (26 Apr 2005 15:00:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Apr 2005 15:00:14 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 26 17:00:12 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DQRVw-0002z1-QE for ged-emacs-devel@m.gmane.org; Tue, 26 Apr 2005 16:58:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQRbe-000317-C8 for ged-emacs-devel@m.gmane.org; Tue, 26 Apr 2005 11:04:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DQRbT-00030r-LA for emacs-devel@gnu.org; Tue, 26 Apr 2005 11:03:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DQRbS-00030b-0z for emacs-devel@gnu.org; Tue, 26 Apr 2005 11:03:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQRbR-0002sH-Tt for emacs-devel@gnu.org; Tue, 26 Apr 2005 11:03:57 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DQRdl-0002u8-75 for emacs-devel@gnu.org; Tue, 26 Apr 2005 11:06:21 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id j3QF2Wog027990; Tue, 26 Apr 2005 10:02:32 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j3QF0KT22961; Tue, 26 Apr 2005 10:00:20 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: stahl@eos.franken.de In-reply-to: <49482.217.194.34.123.1114522002.squirrel@wwws.franken.de> (stahl@eos.franken.de) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:36413 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36413 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.