unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Bird <birdsite@airmail.cc>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 52055@debbugs.gnu.org, Bird <birdsite@airmail.cc>
Subject: bug#52055: 29.0.50; emoji-insert garbles terminal display on tsdh-dark theme
Date: Tue, 23 Nov 2021 17:34:48 +0000	[thread overview]
Message-ID: <858rxeu66f.fsf@airmail.cc> (raw)
In-Reply-To: <83pmqqokr9.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 23 Nov 2021 19:16:26 +0200")

Eli Zaretskii <eliz@gnu.org> writes:

>> > If nothing helps, please post screenshots showing the problematic
>> > display.
>> I disabled auto-composition-mode (with M-x auto-composition-mode) in
>> emacs -Q -nw and then selected the theme.
>> This is the display after emoji-insert (C-x 8 e i)
>
> Is this better or worse than with auto-composition-mode enabled?

It's nearly the same, i think.

> The problem is that Emacs expects each Emoji character to take 2
> columns, but the terminal emulator doesn't necessarily behave like
> that, as can be clearly seen from the images.  And that is the
> problem.  (With auto-composition-mode Emacs expects each Emoji to take
> just 1 column, so it's probably even worse.)

Ohh, could it be related to libXft? i mean, that's what terminals use
and libXft dosen't handle emoji at all.

A lot of terminal emulators workaround this problem by handling emojis
manually. st dosen't do that and hence i use a patched libXft that
handles emojis too.
The patch is at:
https://gitlab.freedesktop.org/xorg/lib/libxft/merge_requests/1.patch

If you try to display emojis on st without patched libXft, it just
crashes.

>
>> (unrelated: does copying to xorg's clipboard with emacsclient -nw on a terminal
>> emulater work? don't think it works for me now so just wanted to ask
>> to confirm) 
>
> How do you copy to the clipboard from a -nw session?

By normal copy commands (C-w and M-w). i think it worked before. it even works on
android (by launching emacs on termux). but now it can't access
clipboard or set it. I'm using an emacs-daemon if that matters.

i'll download 27.2 to see if it worked.

-- 
The hearing ear is always found close to the speaking tongue, a custom
whereof the memory of man runneth not howsomever to the contrary, nohow.





  reply	other threads:[~2021-11-23 17:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-23 10:29 bug#52055: 29.0.50; emoji-insert garbles terminal display on tsdh-dark theme bird
2021-11-23 12:54 ` Eli Zaretskii
2021-11-23 13:43   ` Lars Ingebrigtsen
2021-11-23 13:52     ` Eli Zaretskii
2021-11-23 17:22     ` Bird
2021-11-23 17:28       ` Eli Zaretskii
2021-11-24  7:09       ` Lars Ingebrigtsen
2021-11-23 16:59   ` Bird
2021-11-23 17:16     ` Eli Zaretskii
2021-11-23 17:34       ` Bird [this message]
2021-11-23 18:14         ` Eli Zaretskii

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=858rxeu66f.fsf@airmail.cc \
    --to=birdsite@airmail.cc \
    --cc=52055@debbugs.gnu.org \
    --cc=eliz@gnu.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 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).