From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.bugs Subject: bug#73752: 29.4; Ligatures are randomly rendered with extra spaces Date: Thu, 31 Oct 2024 13:42:06 +0530 Message-ID: <87zfmky9m1.fsf@gmail.com> References: <91cb4d5a6c979bf096ca9fa26711395ab29b941b.camel@timruffing.de> <86wmhp4obi.fsf@gnu.org> <86msil4mpn.fsf@gnu.org> <8f02b0490d2abb0889b760fb80c3ec492c63c784.camel@timruffing.de> <86ed3x4h7m.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5547"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Tim Ruffing , xuan@xlk.me, 73752@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 31 09:14:24 2024 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 1t6QK0-0001HE-10 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 31 Oct 2024 09:14:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t6QJi-0000oz-Np; Thu, 31 Oct 2024 04:14:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t6QJh-0000ol-3b for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2024 04:14:05 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t6QJe-00064l-TG for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2024 04:14:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=t59N5Nsn5HAqC10LUmuRgF9xJEON7LsK2aAAZZKRR9U=; b=f3ScCD/qB+IhishL7xbgEre0VnD/dh6lRpjaSdeAWuIW4J5/UpkoMBZfFcTvntQfYws9GOvpKbXRheERe0Kxj4LibsZaHX+i0aBcU7wb4CWC9YHqFthCJHEqOtVFpUuzl/wgRHnpDnF/eIZJqDz83Xbcenxlih93IFIzXZwrMGxeOMTjHAm/edKIu8I5A3PqynaMwKGR4LfA4LmJRCYcXYZMxvrpe5QH2O/0w2UPv0KGQeqnOQbGPWbdgaRtuQR86icfwpRjGE7MgfuQ12kpllr/putnObykZVARYBuQnyjavU5i21o/EFBcgVW3lwuKV2lFlsa5PY5d2fPGhzDj0w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t6QJe-0006Yw-Iz for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2024 04:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 Oct 2024 08:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73752 X-GNU-PR-Package: emacs Original-Received: via spool by 73752-submit@debbugs.gnu.org id=B73752.173036239525200 (code B ref 73752); Thu, 31 Oct 2024 08:14:02 +0000 Original-Received: (at 73752) by debbugs.gnu.org; 31 Oct 2024 08:13:15 +0000 Original-Received: from localhost ([127.0.0.1]:40779 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6QIs-0006YO-MH for submit@debbugs.gnu.org; Thu, 31 Oct 2024 04:13:15 -0400 Original-Received: from mail-pj1-f68.google.com ([209.85.216.68]:46426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6QIo-0006YE-VX for 73752@debbugs.gnu.org; Thu, 31 Oct 2024 04:13:13 -0400 Original-Received: by mail-pj1-f68.google.com with SMTP id 98e67ed59e1d1-2e3fca72a41so573341a91.1 for <73752@debbugs.gnu.org>; Thu, 31 Oct 2024 01:13:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730362330; x=1730967130; darn=debbugs.gnu.org; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=t59N5Nsn5HAqC10LUmuRgF9xJEON7LsK2aAAZZKRR9U=; b=TY+mn+Q37oOnFIw8OpI60xyrUt2qJeGrAI2VUaWvEoE2zxiOJpVoEg3+z6RqHUrSva myfOBLD6ZT2PXOl9WcWZhafWzOiKcqAXp1PnOMIlr4G+UlYjuuGKWihEiqxh6Y4vk9tJ CTsg3P3NGBrmlOmaRt5SDu6fQWTssjBnF6dz6IAB0y/qMJR9/axeWdnHdUNbEtfF5y7J dZdzviOWCZDgd2Vz8rSRWdja6B7hoYj+Wt74XnKDrgaIBQWwFQDXr0Npg+ZfaiTowKgW aB/5P+bgzcofCgdRWggpNurxkpDc5k3GLRtHXXR2i4sN2Fvt3IRqzVlWbn6a3uEWAsuX Y2+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730362330; x=1730967130; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=t59N5Nsn5HAqC10LUmuRgF9xJEON7LsK2aAAZZKRR9U=; b=kgNGpmdSlWt3hXkls4M8pUWUYSmF+bcKzIQlfYrPaQeq6WRual4bsEu2Zn8TQ1kbXK q/HONLtJ//ar3xXeXTCa9CmpsCD5pirOV1gsyK/WpUvZj5cp/8+sPyPjT+4uOOzQVaf5 6lnKuHJCYEW8EV5tANTKWAQfsd0GIQDiQviNZE9ZPbRp1hTo69e0VfyCW+AjFoL9hmFY yZgEOw1POJHVvc2yCDBP675rvkXafXpD5Xkab3/Hj/9hiXvwm6AXOP66H9L93xljiw53 9wDjxFLMow3RbJrt9M01BvvtiuZOib0WL0K6XOCoz0U+OU238+2RHirxJQrxphYu41IQ 9sHQ== X-Forwarded-Encrypted: i=1; AJvYcCWKn5ByySCFcrA5UoQjoye+6no+XIYGWIeTbCYIUw0SjveSOCt7r2X7uIvpEPhSaU5tCNz9VQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzUFbg7E3cqBuq1MYFiFFF7/lrPxsqPZqDyzkXTK1BgXBCm8TYF UgYzut/j5DPMuA372/nCEHOJhsDVAepzBwGe2ZNxtM48t+GPG2oY X-Google-Smtp-Source: AGHT+IGSPA9+kKq8u0rfFT5RagyBOMIomwTebPb71vfPdSI7ndB1/CY0g3biee6ooeuC7y08Ogfohw== X-Received: by 2002:a17:90b:1805:b0:2e2:e743:7501 with SMTP id 98e67ed59e1d1-2e93c158ce6mr2828277a91.8.1730362330018; Thu, 31 Oct 2024 01:12:10 -0700 (PDT) Original-Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e92fa5836csm3018917a91.28.2024.10.31.01.12.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Oct 2024 01:12:09 -0700 (PDT) In-Reply-To: <86ed3x4h7m.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 30 Oct 2024 19:46:05 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:294597 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable [=E0=AE=AA=E0=AF=81=E0=AE=A4=E0=AE=A9=E0=AF=8D =E0=AE=85=E0=AE=95=E0=AF=8D= =E0=AE=9F=E0=AF=8B=E0=AE=AA=E0=AE=B0=E0=AF=8D 30, 2024] Eli Zaretskii wrote: >> From: Tim Ruffing >> Cc: dev@real-or-random.org, eggert@cs.ucla.edu, 73752@debbugs.gnu.org >> Date: Wed, 30 Oct 2024 18:34:14 +0100 >>=20 >>=20 >> > > pp is calling Emacs to print to its stderr.=C2=A0 If that is redirec= ted >> > > somewhere else you won't see the output. >> >=20 >>=20 >> Ah, this was the right hint. I'm using emacs in daemon mode, started >> from systemd, so I can inspect stderr via journalctl. >>=20 >> ------ >>=20 >> Broken rendering for ligature "=3D=3D=3D" starting at pos 1290 (emacs ha= ppens >> to be in daemon mode) >>=20 >> [...] >> 39 480: COMP[19 (0..0)] pos=3D1290 w=3D20 a+d=3D20+6 face=3D39 MB >> 40 500: COMP[19 (1..1)] pos=3D1291 w=3D20 a+d=3D20+6 face=3D39 MB >> 41 520: COMP[19 (2..2)] pos=3D1292 w=3D20 a+d=3D20+6 face=3D39 MB >> [...] >>=20 >> $ pp composition_gstring_from_id(19) >>=20=20 >> [[# 61 61 61] 19 [0 0 61 5852 10 1 11 11 -4 [0 0 20]] [1 1 = 61 5896 10 -1 11 11 -4 [0 0 20]] [2 2 61 5891 10 -1 9 11 -4 [0 0 20]]] >>=20 >> ------- >>=20 >> Proper rendering (emacs happens to be not in daemon mode): >>=20 >> 39 390: COMP[13 (0..0)] pos=3D1290 w=3D10 a+d=3D20+6 face=3D39 MB >> 40 400: COMP[13 (1..1)] pos=3D1291 w=3D10 a+d=3D20+6 face=3D39 MB >> 41 410: COMP[13 (2..2)] pos=3D1292 w=3D10 a+d=3D20+6 face=3D39 MB >>=20 >> $ pp composition_gstring_from_id(13)=20 >>=20 >> [[# 61 61 61] 13 [0 0 61 5852 10 1 11 11 -4 nil] [1 1 61 58= 96 10 -1 11 11 -4 nil] [2 2 61 5891 10 -1 9 11 -4 nil]]=20 >>=20 >>=20 >> Both sessions are still running. I Hope this helps. Let me know if need >> more remote hands. I observe very similar results: Properly rendered (in a fresh Emacs session): [[# 45 45 62] 2 [0 0 45 1970 9 0 9 7 -4 nil] [1 1 45 1969 9 -1 10 = 7 -4 nil] [2 2 62 2728 9 -1 9 11 0 nil]] Misaligned: [[# 45 45 62] 2231 [0 0 45 1970 9 0 9 7 -4 [0 0 10]] [1 1 45 1969 = 9 -1 10 7 -4 [0 0 10]] [2 2 62 2728 9 -1 9 11 0 [0 0 10]]] In the misaligned session, cached entry for the same text ("-->") that is rendered properly at a different font size: [[# 45 45 62] 2179 [0 0 45 1970 10 0 11 7 -4 nil] [1 1 45 1969 10 = -1 11 7 -4 nil] [2 2 62 2728 10 -1 10 12 0 nil]] --=-=-= Content-Type: text/plain > Did the "bad" display start from "good" at the beginning of a session? > Or did it start from "bad" to begin with? If the former, the next > idea is to put a watchpoint on the cached composition in a session > with "good" display, and then do whatever it takes to make it "bad", > hoping that the watchpoint will break at some point and show us the > code which replaces nil with these [X-OFF Y-OFF WADJUST] vectors. I think it starts from "bad" to begin with. But the former theory could still apply, if you do not mind this vague answer, can you provide instructions to set a watchpoint? If the watchpoint never triggers, we might be able to at least rule out the former theory. --=-=-=--