From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: comint-carriage-motion causes severe problems. Date: Tue, 2 Jul 2002 11:18:56 -0500 (CDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200207021618.LAA20219@eel.dms.auburn.edu> References: <200207020035.TAA19789@eel.dms.auburn.edu> <200207021534.g62FYao17897@rum.cs.yale.edu> NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1025626846 13520 127.0.0.1 (2 Jul 2002 16:20:46 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 2 Jul 2002 16:20:46 +0000 (UTC) Cc: miles@lsi.nec.co.jp, Kai.Grossjohann@CS.Uni-Dortmund.DE, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17PQOT-0003Vx-00 for ; Tue, 02 Jul 2002 18:20:45 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17PQTZ-0006rM-00 for ; Tue, 02 Jul 2002 18:26:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17PQOm-0005Gf-00; Tue, 02 Jul 2002 12:21:04 -0400 Original-Received: from manatee.dms.auburn.edu ([131.204.53.104]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17PQMA-0005Ay-00 for ; Tue, 02 Jul 2002 12:18:27 -0400 Original-Received: from eel.dms.auburn.edu (eel.dms.auburn.edu [131.204.53.108]) by manatee.dms.auburn.edu (8.9.1a/8.9.1) with ESMTP id LAA14531; Tue, 2 Jul 2002 11:18:03 -0500 (CDT) Original-Received: (from teirllm@localhost) by eel.dms.auburn.edu (8.9.3+Sun/8.9.3) id LAA20219; Tue, 2 Jul 2002 11:18:56 -0500 (CDT) X-Authentication-Warning: eel.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: monnier+gnu/emacs@rum.cs.yale.edu In-Reply-To: <200207021534.g62FYao17897@rum.cs.yale.edu> (monnier+gnu/emacs@rum.cs.yale.edu) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:5330 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5330 I now agree that comint-carriage-motion is appropriate for the global value of comint-output-filter-functions. I believe that there seems to be consensus that it is not appropriate for the local ielm value. The following code would implement this, but has some drawbacks: (setq comint-output-filter-functions (default-value 'comint-output-filter-functions)) (remove-hook 'comint-output-filter-functions 'comint-carriage-motion t) The drawbacks are that this creates an "old-style" local hook without t and the Emacs Lisp manual as well as plenty of documentation strings of hook-related functions seem to very emphatically state that this is stylistically unacceptable. (Or else I am misunderstanding them.) The removal of t from the local value also means, as Stefan pointed out, that changes in the global value will no longer be seen by the local value. Fortunately, this would be limited to the duration of the present ielm run. The question of how to best remove unwanted global functions from the local values of hooks is, however, way more general and far reaching than the particular question we are discussing. I would argue for the desirability of Stefan's suggested additions to the hook machinery. I believe they are absolutely necessary. We have right here a very good example why. Sincerely, Luc Teirlinck.