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.help Subject: Re: Have to run redraw-display manually Date: Tue, 21 Sep 2021 14:16:33 +0300 Message-ID: <835yuuyy9a.fsf@gnu.org> References: <83h7eez3dd.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32766"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 21 13:17:04 2021 Return-path: Envelope-to: geh-help-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 1mSdlo-0008JQ-7y for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 21 Sep 2021 13:17:04 +0200 Original-Received: from localhost ([::1]:59748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSdlm-0005Ud-6Q for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 21 Sep 2021 07:17:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSdlR-0005UV-9L for help-gnu-emacs@gnu.org; Tue, 21 Sep 2021 07:16:41 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45892) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSdlR-0004xV-2s for help-gnu-emacs@gnu.org; Tue, 21 Sep 2021 07:16:41 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1967 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 1mSdlQ-0001ph-IP for help-gnu-emacs@gnu.org; Tue, 21 Sep 2021 07:16:40 -0400 In-Reply-To: (message from Cos Chan on Tue, 21 Sep 2021 13:03:46 +0200) Original-Subject: Re: Have to run redraw-display manually X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:133125 Archived-At: [Why private email?] > From: Cos Chan > Date: Tue, 21 Sep 2021 13:03:46 +0200 > > I did more testing, and it seems that changing the system tab width by > $ tabs 4 > would create this problem(also in tcsh). If I change it back to 8 the problem is gone. > > Here is content of my .emacs file: > (add-to-list 'load-path "~/.emacs.d/lisp/") > ;; lisp scripts > (require 'sudo-save) > ;; editting settings > (setq-default indent-tabs-mode t) > (setq-default tab-width 4) > (normal-erase-is-backspace-mode 1) > ;; backup and autosave to temporary directory > (setq backup-directory-alist > `((".*" . ,temporary-file-directory))) > (setq auto-save-file-name-transforms > `((".*" ,temporary-file-directory t))) > ;; set color to be compatible with dark background > (setq frame-background-mode 'dark) > > I made a simple file test_emacs for testing, here is the content: > HISTSIZE=999 > SAVEHIST=999 > setopt appendhistory autocd beep extendedglob nomatch notify > > How to reproduce: > $ emacs test_emacs > type 2 times ctrl-n, the point is on "s" (from setopt, line 3) > type alt-f, the point is on character "t" (from setopt, line 3, the third character) > type alt-x and redraw display, the point is on the first space (line3, the 7th character) > > With little tuning for the testing file, I removed the last "t" from "setopt" and the testing result was: > $ emacs test_emacs > type 2 times ctrl-n, the point is on "s" (from setopt, line 3) > type alt-f, the point is on the first space. (Which is correct) > type alt-f, the point is on the second space. (Which is correct) > type alt-f, the point is on the third space. (Which is correct) > type alt-f, the point is on the "b". (from beep, which is incorrect) > type alt-x and redraw display, the point is on the fourth space. > > Please suggest. My suggestion is not to do "tabs 4", it changes how the terminal behaves regarding cursor motion.