From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#24124: emacs terminal escape command error Date: Fri, 08 Nov 2019 04:54:53 +0100 Message-ID: <871rujvx82.fsf@marxist.se> References: <57A06C4B.70603@member.fsf.org> <83k2fzmb76.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="127884"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 24124@debbugs.gnu.org, modem To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 08 04:56:16 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iSvNZ-000X2f-Jc for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Nov 2019 04:56:09 +0100 Original-Received: from localhost ([::1]:49588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSvNX-0006GC-Rn for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Nov 2019 22:56:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37414) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSvNS-0006G3-NN for bug-gnu-emacs@gnu.org; Thu, 07 Nov 2019 22:56:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iSvNR-00061I-Og for bug-gnu-emacs@gnu.org; Thu, 07 Nov 2019 22:56:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35534) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iSvNR-000610-LM for bug-gnu-emacs@gnu.org; Thu, 07 Nov 2019 22:56:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iSvNR-0005xP-Jm for bug-gnu-emacs@gnu.org; Thu, 07 Nov 2019 22:56:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Nov 2019 03:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24124 X-GNU-PR-Package: emacs Original-Received: via spool by 24124-submit@debbugs.gnu.org id=B24124.157318530322807 (code B ref 24124); Fri, 08 Nov 2019 03:56:01 +0000 Original-Received: (at 24124) by debbugs.gnu.org; 8 Nov 2019 03:55:03 +0000 Original-Received: from localhost ([127.0.0.1]:44355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iSvMV-0005vn-7a for submit@debbugs.gnu.org; Thu, 07 Nov 2019 22:55:03 -0500 Original-Received: from host.gofardesign.uk ([208.79.239.190]:57221) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iSvMT-0005vB-Fn for 24124@debbugs.gnu.org; Thu, 07 Nov 2019 22:55:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=8+1aaGP3gv+uJMudmsiZ7rGVFmGj8+D9RU/g4y6+E5U=; b=svNPb4DtJ9EsQx4zyD9F7pCCqN hTwh/UwOxfZ4wAZ5SfpeI5z8e0jOeJuGOP6Ah7iYLxc/+UxGVO+GUKky0phfE+6p9AANAOZQsD8qF yJqNNybriUnXFNNwM3zd8Wod80gxDwUZEdXM1GVV7YNS/YcdiPVTRnWWdjGKy/GIgNVU=; Original-Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:50912 helo=localhost) by host.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1iSvMN-00071c-4o; Thu, 07 Nov 2019 21:54:55 -0600 In-Reply-To: <83k2fzmb76.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 02 Aug 2016 18:39:57 +0300") X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: host.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: host.gofardesign.uk: stefan@marxist.se X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:171155 Archived-At: Eli Zaretskii writes: > [Please keep the bug address on the CC list.] > >> From: modem >> Date: Tue, 2 Aug 2016 11:47:55 +0200 >> >> Thanks you for your advises. >> >> My terminfo: "echo $TERM" return "screen". Is that it ? > > Probably. > >> I recompiled emacs after commenting a few optimization in src/cm.c (cmgoto). >> Unfortunately I can still reproduce the bug with this binary. >> >> I am attaching you the patch I did. > > I think you disabled the wrong code. What you need is force Emacs to > always do this: > > if (cost <= relcost) > { /* really is cheaper */ > emacs_tputs (tty, p, 1, cmputc); > curY (tty) = row, curX (tty) = col; > return; > } That was 3 years ago. Did you ever get a chance to try the suggested fix by Eli above? Best regards, Stefan Kangas