From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Riel Newsgroups: gmane.emacs.help Subject: comint-previous-input mangles current line Date: Tue, 18 Aug 2015 08:32:56 -0700 Message-ID: <20150818083256.6edef13d@gauss> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1439912018 2192 80.91.229.3 (18 Aug 2015 15:33:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Aug 2015 15:33:38 +0000 (UTC) To: Help GNU Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 18 17:33:30 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZRit6-0004ny-K7 for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Aug 2015 17:33:20 +0200 Original-Received: from localhost ([::1]:57879 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRit6-0008Ca-3D for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Aug 2015 11:33:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38548) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRisq-00088f-PT for help-gnu-emacs@gnu.org; Tue, 18 Aug 2015 11:33:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRisl-0000AZ-Ru for help-gnu-emacs@gnu.org; Tue, 18 Aug 2015 11:33:04 -0400 Original-Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.231]:37099 helo=cdptpa-oedge-vip.email.rr.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRisl-00009j-Nl for help-gnu-emacs@gnu.org; Tue, 18 Aug 2015 11:32:59 -0400 Original-Received: from [75.80.189.125] ([75.80.189.125:38017] helo=gauss) by cdptpa-oedge03 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id 44/EA-26358-92053D55; Tue, 18 Aug 2015 15:32:57 +0000 X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) X-RR-Connecting-IP: 107.14.168.142:25 X-Cloudmark-Score: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 107.14.166.231 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106679 Archived-At: Is there a simple fix for the following problem. I'm running shell. I then use C-up (comint-previous-input) to scroll through the history of inputs. This mangles the input on the screen. For example, if I had src $ echo nonsense nonsense src $ [type C-up] The last line becomes echo nonsensesrc $ That is, the previous command is displayed before the prompt. Sometimes, when starting emacs this works fine. Sometimes it does not. When not, it never works properly. -- Joe Riel