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: Sat, 17 Aug 2002 22:59:35 -0500 (CDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200208180359.WAA02441@eel.dms.auburn.edu> References: <200207020035.TAA19789@eel.dms.auburn.edu> <200207021534.g62FYao17897@rum.cs.yale.edu> <200207021618.LAA20219@eel.dms.auburn.edu> <200207032057.g63KvX604721@aztec.santafe.edu> <200207032111.g63LBAv25925@rum.cs.yale.edu> <200207041824.g64IO8i06426@aztec.santafe.edu> <200208070116.UAA01281@eel.dms.auburn.edu> <200208072058.g77KwUo03670@wijiji.santafe.edu> <200208180239.VAA02371@eel.dms.auburn.edu> <200208180301.WAA02394@eel.dms.auburn.edu> NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1029643156 32494 127.0.0.1 (18 Aug 2002 03:59:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 18 Aug 2002 03:59:16 +0000 (UTC) Cc: rms@gnu.org, monnier+gnu/emacs@rum.cs.yale.edu, 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.35 #1 (Debian)) id 17gHDe-0008Rv-00 for ; Sun, 18 Aug 2002 05:59:14 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17gHeP-0006mG-00 for ; Sun, 18 Aug 2002 06:26:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17gHEd-0007mC-00; Sun, 18 Aug 2002 00:00:15 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17gHE6-0007ll-00 for emacs-devel@gnu.org; Sat, 17 Aug 2002 23:59:42 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17gHE3-0007lO-00 for emacs-devel@gnu.org; Sat, 17 Aug 2002 23:59:41 -0400 Original-Received: from manatee.dms.auburn.edu ([131.204.53.104]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17gHE3-0007l9-00; Sat, 17 Aug 2002 23:59:39 -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 WAA03831; Sat, 17 Aug 2002 22:59:37 -0500 (CDT) Original-Received: (from teirllm@localhost) by eel.dms.auburn.edu (8.9.3+Sun/8.9.3) id WAA02441; Sat, 17 Aug 2002 22:59:35 -0500 (CDT) X-Authentication-Warning: eel.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: teirllm@dms.auburn.edu In-Reply-To: <200208180301.WAA02394@eel.dms.auburn.edu> (message from Luc Teirlinck on Sat, 17 Aug 2002 22:01:04 -0500 (CDT)) 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:6618 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6618 On comint.el: Old version, lines 1509-1511: ;; This used to call comint-output-filter-functions, ;; but that scrolled the buffer in undesirable ways. (run-hook-with-args 'comint-output-filter-functions ""))))) New version: ;; This used to call comint-output-filter-functions, ;; but that scrolled the buffer in undesirable ways. + (unless no-carriage-motion (comint-carriage-motion "")) (run-hook-with-args 'comint-output-filter-functions ""))))) I just realized that adding the line: + (unless no-carriage-motion (comint-carriage-motion "")) here is unnecessary (though harmless), because calling comint-carriage-motion on the empty string has no effect whatsoever. Sorry for not noticing this earlier. As mentioned in my previous message, I am intrigued by the remark in this extract. Revised change log: 2002-08-17 Luc Teirlinck * comint.el: (no-carriage-motion): New variable. (comint-carriage-motion, comint-output-filter-functions, comint-output-filter): Remove comint-carriage-motion from comint-output-filter-functions and call it directly from comint-output-filter. * ielm.el: (inferior-emacs-lisp-mode): Give no-carriage-motion a buffer local value of t. Sincerely, Luc.