From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bird Newsgroups: gmane.emacs.bugs Subject: bug#52055: 29.0.50; emoji-insert garbles terminal display on tsdh-dark theme Date: Tue, 23 Nov 2021 17:34:48 +0000 Message-ID: <858rxeu66f.fsf@airmail.cc> References: <85sfvn88sl.fsf@laptop.mail-host-address-is-not-set> <83ee77owvb.fsf@gnu.org> <8535nmzu2d.fsf@airmail.cc> <83pmqqokr9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32872"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 52055@debbugs.gnu.org, Bird To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 23 18:35:16 2021 Return-path: Envelope-to: geb-bug-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 1mpZhH-0008CE-4U for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 23 Nov 2021 18:35:15 +0100 Original-Received: from localhost ([::1]:53826 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mpZhF-0001j7-Ft for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 23 Nov 2021 12:35:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpZh8-0001i2-1Z for bug-gnu-emacs@gnu.org; Tue, 23 Nov 2021 12:35:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40654) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mpZh7-0004UK-PO for bug-gnu-emacs@gnu.org; Tue, 23 Nov 2021 12:35:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mpZh7-00042c-Kj for bug-gnu-emacs@gnu.org; Tue, 23 Nov 2021 12:35:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Bird Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Nov 2021 17:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52055 X-GNU-PR-Package: emacs Original-Received: via spool by 52055-submit@debbugs.gnu.org id=B52055.163768884615402 (code B ref 52055); Tue, 23 Nov 2021 17:35:01 +0000 Original-Received: (at 52055) by debbugs.gnu.org; 23 Nov 2021 17:34:06 +0000 Original-Received: from localhost ([127.0.0.1]:52192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mpZgE-00040M-0O for submit@debbugs.gnu.org; Tue, 23 Nov 2021 12:34:06 -0500 Original-Received: from mail.cock.li ([37.120.193.124]:56450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mpZg9-0003zo-Uy for 52055@debbugs.gnu.org; Tue, 23 Nov 2021 12:34:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=airmail.cc; s=mail; t=1637688835; bh=y5DO2K6nJbVQoD6zX2fiIAhUoCvn7J+x5hh5BNewxlk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=vlLKtBhjewh4xLfoZYbKNh6yHW84WMr535RbtG7VxJKcBsRec5JZk2kUWnLDVrz6S EeMiHgJiGQ+sP4ruHx3TMizrXGPbKeASPacRPDsZFk91Bm3d+WOy43Q9F0hT9QSlCk Qt2Wi7KoDJauZrtGNbDMgs/b2l18Mxf3NvJIyLyXN7TQQIqezcbqn2R1iPTG7hOL8Q utf1A6r9DTVHtEJNsBWTN5H2vkbNhHLH6YoavXHC6RYTCg8n12O04gaqIka0nHQ0k5 UnUxkhCVTPL1FZa63Gn1y3YXqIztS55RlCLNE0rQ3QZJfmZVyOLuukdHEtifcX5XGv pGDTFw4OvTJeg== In-Reply-To: <83pmqqokr9.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 23 Nov 2021 19:16:26 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:220683 Archived-At: Eli Zaretskii 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.