unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Cos Chan <rosettas@gmail.com>
Cc: 50721@debbugs.gnu.org
Subject: bug#50721: Wrong point position or display while moving point
Date: Tue, 21 Sep 2021 17:25:02 +0300	[thread overview]
Message-ID: <83k0jaxayp.fsf@gnu.org> (raw)
In-Reply-To: <CAKV+xLAA4TirJsh_m5FeeMDy072+KK9YHhTdE-egCNHQ2bjGug@mail.gmail.com> (message from Cos Chan on Tue, 21 Sep 2021 14:26:44 +0200)

> From: Cos Chan <rosettas@gmail.com>
> 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.





      reply	other threads:[~2021-09-21 14:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-21 12:26 bug#50721: Wrong point position or display while moving point Cos Chan
2021-09-21 14:25 ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83k0jaxayp.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=50721@debbugs.gnu.org \
    --cc=rosettas@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).