From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#50721: Wrong point position or display while moving point Date: Tue, 21 Sep 2021 17:25:02 +0300 Message-ID: <83k0jaxayp.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31684"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50721@debbugs.gnu.org To: Cos Chan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 21 16:26:15 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mSgit-00080g-4z for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Sep 2021 16:26:15 +0200 Original-Received: from localhost ([::1]:57604 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSgir-00013y-5k for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Sep 2021 10:26:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSgig-00013U-5x for bug-gnu-emacs@gnu.org; Tue, 21 Sep 2021 10:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35915) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mSgif-00020t-Uu for bug-gnu-emacs@gnu.org; Tue, 21 Sep 2021 10:26:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mSgif-0001Re-RX for bug-gnu-emacs@gnu.org; Tue, 21 Sep 2021 10:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Sep 2021 14:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50721 X-GNU-PR-Package: emacs Original-Received: via spool by 50721-submit@debbugs.gnu.org id=B50721.16322343445519 (code B ref 50721); Tue, 21 Sep 2021 14:26:01 +0000 Original-Received: (at 50721) by debbugs.gnu.org; 21 Sep 2021 14:25:44 +0000 Original-Received: from localhost ([127.0.0.1]:47459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSgiN-0001Qx-UA for submit@debbugs.gnu.org; Tue, 21 Sep 2021 10:25:44 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58272) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSgiL-0001Qf-S3 for 50721@debbugs.gnu.org; Tue, 21 Sep 2021 10:25:42 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52614) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSgiG-0001df-M2; Tue, 21 Sep 2021 10:25:36 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1786 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSghm-0005gS-8o; Tue, 21 Sep 2021 10:25:11 -0400 In-Reply-To: (message from Cos Chan on Tue, 21 Sep 2021 14:26:44 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:214980 Archived-At: > From: Cos Chan > Date: Tue, 21 Sep 2021 14:26:44 +0200 > > To change system tab width by > $ tabs 4 > would create a problem that the display is wrong while moving point (for example M-b/M-f/C-up/C-down or > kill words/line). > The point or the characters would be in the wrong places until I manually run M-x redraw-display to get it > back. > > I may reproduce this problem in Debian 10, 11 and FreeBSD 12, 13. Tested in zsh and tcsh by add tabs 4 > into .zshrc and .tcshrc Thanks. We initialize the tab width used for display on TTY frames from the "tw" termcap/terminfo capability. Does anyone know whether this is updated by the 'tabs' command? If not, is there a way Emacs could know that the tab stops have been changed from their usual default? If everything else fails, I guess we could provide a variable to disable using TAB characters in cursor motion on TTYs, then users who do the above could control how Emacs behaves in this case.