all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Jean Louis <bugs@gnu.support>
Cc: larsi@gnus.org, schwab@linux-m68k.org, 44664@debbugs.gnu.org
Subject: bug#44664: 28.0.50; troubles with some chars in term
Date: Thu, 19 Nov 2020 16:26:58 +0200	[thread overview]
Message-ID: <833615pglp.fsf@gnu.org> (raw)
In-Reply-To: <X7V+xl3V+FG0zOEJ@protected.rcdrun.com> (message from Jean Louis on Wed, 18 Nov 2020 23:06:30 +0300)

> Date: Wed, 18 Nov 2020 23:06:30 +0300
> From: Jean Louis <bugs@gnu.support>
> Cc: larsi@gnus.org, schwab@linux-m68k.org, 44664@debbugs.gnu.org
> 
> I have been searching to find references:
> 
> https://github.com/jquast/wcwidth
> 
> https://github.com/streamlink/streamlink/pull/2032

This is not relevant, Emacs has this data as well.  But since you are
running a GUI session, the width of characters is not what's
important; what's important is the width of the font glyphs that Emacs
uses to display the non-ASCII characters in the term buffer.

> But I can also see many problems without any wide characters. 
> 
> I am also observing various switches of fonts. I have tried setting
> Terminus font and then I see that when I run mutt that the font
> changes to something else. After $ reset, it seem to have half
> Terminus and prompts to be DejaVu Sans, then after several killing of
> terminal buffer and restarts it started appearing everything to be
> using Terminus font.

First, start by trying this in "emacs -Q", to make sure it isn't due
to some customizations of yours.  Then, to see what fonts are used for
the "unusual" characters, use

  M-: (font-at POS) RET

where POS is the buffer position of the offending character.
Alternatively, go to the character and type "C-u C-x =", it will pop
up a buffer with a lot of information including the font.

My guess is that Emacs uses a font other than the default for those
problematic characters.

> There are 2 screenshots attached:
> 
> 1. One is Emacs M-x term there is line, above the line (53) and one
>    can see it being pulled to the left side
> 
> 2. XTerm version shows it is displayed aligned to the column.

There's no magic here.  Xterm uses the same -misc-fixed-medium font
that Emacs does, at least by default.  It is possible that you or
someone else (the distribution managers?) provided X resources for
xterm that configure it in some optimal way by specifying fixed-pitch
fonts for some non-ASCII scripts, so I would suggest to look at
.Xdefaults and other sources of X resources and customizations; you
could then use that information in Emacs, because Emacs supports
similar font customization features.

You could also try running term.el in a -nw session inside the same
xterm, to see if there is a difference -- in that case, Emacs doesn't
control the fonts at all.

> I have:
> 
> alias ls='ls --color=auto'
> 
> and each time I invoke ls I can see that font also changed for the
> rest of work. If I invoke $ reset and then /bin/ls then I remain in
> the same font.

Again, what are the two fonts used in this screenshot?  Use the
above-mentioned techniques to tell, and use "emacs -Q" to eliminate
the possibility that it's due to your customizations.

Also, do you have the LS_COLORS environment variable set, and if so,
what is its value?





  reply	other threads:[~2020-11-19 14:26 UTC|newest]

Thread overview: 67+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-15 19:45 bug#44664: 28.0.50; troubles with some chars in term Jean Louis
2020-11-16 22:30 ` Lars Ingebrigtsen
2020-11-17  4:15   ` Jean Louis
2020-11-17  9:00 ` Andreas Schwab
2020-11-17  9:43   ` Jean Louis
2020-11-17  9:55     ` Andreas Schwab
2020-11-17 10:00       ` Jean Louis
2020-11-17 15:12         ` Eli Zaretskii
2020-11-17 17:15           ` Jean Louis
2020-11-17 21:05             ` Eli Zaretskii
2020-11-17 21:54               ` Jean Louis
2020-11-17 22:02               ` Andreas Schwab
2020-11-18  3:30                 ` Eli Zaretskii
2020-11-18  6:05                   ` Jean Louis
2020-11-18  8:25                   ` Andreas Schwab
2020-11-18  8:39                     ` Lars Ingebrigtsen
2020-11-18  8:45                     ` Lars Ingebrigtsen
2020-11-18 15:11                       ` Eli Zaretskii
     [not found]                         ` <X7U/qT7sSLW4wcTg@protected.rcdrun.com>
2020-11-18 18:14                           ` Eli Zaretskii
2020-11-18 20:06                             ` Jean Louis
2020-11-19 14:26                               ` Eli Zaretskii [this message]
     [not found]                                 ` <X7aLF3tMx3yfkb9k@protected.rcdrun.com>
2020-11-19 16:15                                   ` Eli Zaretskii
2020-11-19 16:38                                     ` Jean Louis
2020-11-19 17:27                                       ` Eli Zaretskii
2020-11-19 16:53                                     ` Jean Louis
2020-11-19 17:28                                       ` Eli Zaretskii
2020-11-19 17:41                                         ` Jean Louis
2020-11-19 17:56                                           ` Eli Zaretskii
2020-11-18 21:04                         ` Lars Ingebrigtsen
2020-11-19  3:29                           ` Eli Zaretskii
2020-11-19 21:07                             ` Lars Ingebrigtsen
2020-11-20  7:39                               ` Eli Zaretskii
2020-11-24  5:58                                 ` Lars Ingebrigtsen
2020-11-24 15:32                                   ` Eli Zaretskii
2020-11-25  6:55                                     ` Lars Ingebrigtsen
2020-11-25  8:30                                       ` Andreas Schwab
2020-11-25  9:08                                         ` Lars Ingebrigtsen
2020-11-25  9:23                                           ` Basil L. Contovounesios
2020-11-26  9:46                                             ` Lars Ingebrigtsen
2020-11-26 10:13                                               ` Andreas Schwab
2020-11-26 10:16                                                 ` Lars Ingebrigtsen
2020-11-26 11:15                                                   ` Robert Pluim
2020-11-26 11:21                                                     ` Lars Ingebrigtsen
2020-11-26 21:14                                               ` Basil L. Contovounesios
2020-11-27  7:53                                                 ` Lars Ingebrigtsen
2020-11-25  9:27                                           ` Andreas Schwab
2020-11-25 15:35                                       ` Eli Zaretskii
2020-11-26  9:50                                         ` Lars Ingebrigtsen
2020-11-26 14:17                                           ` Eli Zaretskii
2020-11-27  7:51                                             ` Lars Ingebrigtsen
2020-11-27  8:14                                               ` Eli Zaretskii
2020-11-29  9:58                                                 ` Lars Ingebrigtsen
2020-11-29 15:46                                                   ` Eli Zaretskii
2020-11-30 10:05                                                     ` Lars Ingebrigtsen
2020-11-30 16:12                                                       ` Eli Zaretskii
2020-12-02  9:39                                                         ` Lars Ingebrigtsen
2020-12-02 15:02                                                           ` Eli Zaretskii
2020-12-02 16:33                                                             ` Jean Louis
2020-12-03  8:44                                                               ` Lars Ingebrigtsen
2020-12-03  8:52                                                                 ` Jean Louis
2020-12-03  9:02                                                                   ` Lars Ingebrigtsen
2020-12-03 15:19                                                                     ` Eli Zaretskii
2020-12-03 15:14                                                                 ` Eli Zaretskii
2020-12-03 16:59                                                                   ` Lars Ingebrigtsen
2020-12-03 17:04                                                                     ` Eli Zaretskii
2020-11-19  8:20                           ` Andreas Schwab
2020-11-19 21:06                             ` Lars Ingebrigtsen

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

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

  git send-email \
    --in-reply-to=833615pglp.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=44664@debbugs.gnu.org \
    --cc=bugs@gnu.support \
    --cc=larsi@gnus.org \
    --cc=schwab@linux-m68k.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.