From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Cos Chan Newsgroups: gmane.emacs.help Subject: Re: Have to run redraw-display manually Date: Tue, 21 Sep 2021 13:33:40 +0200 Message-ID: References: <83h7eez3dd.fsf@gnu.org> <835yuuyy9a.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11002"; 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:36:49 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 1mSe4u-0002fC-VJ for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 21 Sep 2021 13:36:48 +0200 Original-Received: from localhost ([::1]:58782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSe4t-0001sb-Rj for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 21 Sep 2021 07:36:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSe2A-0007w5-L6 for help-gnu-emacs@gnu.org; Tue, 21 Sep 2021 07:33:58 -0400 Original-Received: from mail-vs1-xe36.google.com ([2607:f8b0:4864:20::e36]:33708) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mSe27-0007hT-Cm for help-gnu-emacs@gnu.org; Tue, 21 Sep 2021 07:33:58 -0400 Original-Received: by mail-vs1-xe36.google.com with SMTP id p24so19950868vsg.0 for ; Tue, 21 Sep 2021 04:33:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=TdeXPpzIRQ/MpmudtLvKVxW8/G5Q4rOmQv4nsFI+who=; b=GfGE5SUT1HiQRieAV3Ofp9XApNq0X09U6KCE8Y5qX7Kc3jDInTVRj3San7Rf/DKn38 kkytdeBUpKSzLQFgMqq3oPjRrqeo6KV9LT2WlJ5LmefYSoOcN7wq4MyM1NXp3LlnXt5n jv712A5+aFf3oOWapiqDem4v0mCIPxevleQja9d4iufAQplvTp7hC9Q/fE1c9Nc7aZ/D BW8MJFs8T0NusMmUztY9mq+04vrb9i21MApmBAJ6sFhX9ve9tnq1mU090jN5jbJ3ku52 tyjCUFRxppXINNNhZi20WHPUOIrGzeyIeimJKg6MBROu/Af+0CG5TQSbNlKdKacO46lJ OW9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=TdeXPpzIRQ/MpmudtLvKVxW8/G5Q4rOmQv4nsFI+who=; b=Wdd7ewEARpV8TpPkBgpniQ3Fx/bThRFlPOCoY/B973tUog4oJSkR/O0BI+oKHl+MSW E54rPbgxIYoHg25ucfaUHc682gGgO0UuAlAVM/8cdZbFD99ezs+ImVOLIf9w1fiQEhjH 9DMWw9NR+jYNR6K+3nwEB8BUA41RbsFVjgmBickyPFGJ+V25lRLQtOKkQEzw304l7TbJ 7xkdQvoBQ4xy2IVAZRxPHa+GGL5j12kan2qsIhJFPT6Mn3JHCB2xQXVd6xdFpzURGYHx 1VsMjBjLxiQ3UgkTN5aPwzDdMHDGF6t1v5PdbGy7ja/t8olgClUVQa3AQ/9QmVlO7huP GOFA== X-Gm-Message-State: AOAM530xN7qSqSdxleomTCaEWLzT9DsHOyXucwXkMou5bMtMBcAgMAWB WXptYTaQgyugJRlc3oZgqSDpZdJk6pRwlqotdcri9hV8fA8= X-Google-Smtp-Source: ABdhPJzT2r+WVWlZ71N66uAJdDzXcyEz5uWTvmb7ElDHlHWTLV2Hqc2DDgsPEEyoV74EwDyyR2g2UvBewmoYqW6dMZU= X-Received: by 2002:a67:a24f:: with SMTP id t15mr19995470vsh.25.1632224032453; Tue, 21 Sep 2021 04:33:52 -0700 (PDT) In-Reply-To: <835yuuyy9a.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::e36; envelope-from=rosettas@gmail.com; helo=mail-vs1-xe36.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:133128 Archived-At: On Tue, Sep 21, 2021 at 1:16 PM Eli Zaretskii wrote: > [Why private email?] > Sorry I didn't notice that Gmail automatically put the private Email in reply. > > 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. > > Clear and I will not do it. May I suggest adding this warning to the Emacs documents? In case I may reproduce in several systems, that can be a common issue. And I am pretty sure before I upgraded the Emacs there was no such issue. But I don't remember the version number of the Emacs I had. -- Regards Cos Chan