From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephan Stahl" Newsgroups: gmane.emacs.devel Subject: Re: ansi-color.el and comint.el Date: Wed, 27 Apr 2005 00:12:30 +0200 (CEST) Message-ID: <46120.194.95.226.87.1114553550.squirrel@wwws.franken.de> References: <49482.217.194.34.123.1114522002.squirrel@wwws.franken.de> <200504261500.j3QF0KT22961@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Trace: sea.gmane.org 1114554363 14462 80.91.229.2 (26 Apr 2005 22:26:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Apr 2005 22:26:03 +0000 (UTC) Cc: Kevin Rodgers , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 27 00:26:00 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DQYTi-00037T-5u for ged-emacs-devel@m.gmane.org; Wed, 27 Apr 2005 00:24:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQYZV-0007NK-PU for ged-emacs-devel@m.gmane.org; Tue, 26 Apr 2005 18:30:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DQYVw-0005KL-Nm for emacs-devel@gnu.org; Tue, 26 Apr 2005 18:26:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DQYVr-0005Fa-Tb for emacs-devel@gnu.org; Tue, 26 Apr 2005 18:26:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQYVr-0004s7-No for emacs-devel@gnu.org; Tue, 26 Apr 2005 18:26:39 -0400 Original-Received: from [193.175.24.27] (helo=ilsa.franken.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DQYLq-0004Xc-E6 for emacs-devel@gnu.org; Tue, 26 Apr 2005 18:16:18 -0400 Original-Received: from wwws.franken.de (mail-n.franken.de [193.175.24.27]) by ilsa.franken.de (Postfix) with SMTP id 5A151245C8; Wed, 27 Apr 2005 00:12:30 +0200 (CEST) Original-Received: from 194.95.226.87 (SquirrelMail authenticated user eos) by wwws.franken.de with HTTP; Wed, 27 Apr 2005 00:12:30 +0200 (CEST) In-Reply-To: <200504261500.j3QF0KT22961@raven.dms.auburn.edu> Original-To: "Luc Teirlinck" User-Agent: SquirrelMail/1.4.0 X-Priority: 3 Importance: Normal 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:36426 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36426 Luc Teirlinck said: > 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, Yes that would work too. Using require might have been a nice example for "check your dependencies". Not very important. So autoload seems like the ideal solution since both files are part of emacs. Kevin Rodgers said: > Would it work if ansi-color-for-comint-mode-on added > ansi-color-process-output to comint-output-filter-functions? If so, > should ansi-color-for-comint-mode-off remove it? No, because this does not change the fact that comint.el may not be loaded. When ansi-color.el does that add-hook when comint.el is not already loaded comint-output-filter-functions is set to (ansi-color-process-output) When comint.el is already loaded comint-output-filter-functions is set to (ansi-color-process-output comint-postoutput-scroll-to-bottom comint-watch-for-password-prompt) -- Stephan Stahl