From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yixuan Chen Newsgroups: gmane.emacs.bugs Subject: bug#73752: 29.4; Ligatures are randomly rendered with extra spaces Date: Sun, 27 Oct 2024 15:36:06 -0400 Message-ID: References: <86zfn9ycis.fsf@gnu.org> <86o735als7.fsf@gnu.org> <87o73534dn.fsf@gmail.com> <86h68x8nuz.fsf@gnu.org> <86ed418niu.fsf@gnu.org> <6566317e-03bb-4856-9cc8-5e90c2875e44@xlk.me> <86cyjl8mqs.fsf@gnu.org> <86bjz58ik7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18377"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: luangruo@yahoo.com, 73752@debbugs.gnu.org, visuweshm@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 28 02:16:39 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 1t5EN5-0004dR-6M for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Oct 2024 02:16:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5EMA-0006H8-Ft; Sun, 27 Oct 2024 21:15:42 -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 1t5ELw-0006Fc-Dv for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2024 21:15:31 -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 1t5ELw-0003x6-5U for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2024 21:15:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=rjFJQRQoKoOJsBPb2yiNFwSwZchijt1Lcw3dajdIE90=; b=LQMUIkuWPER8z46xhlkdPAiANLU3N6KTL+Z6Bde4c9kKWqvFUbah2SsR8ou0FDnPojT33Y0z4CajsVsyVza19ICgDsCxgvkChLMhIUNDxkFWvoQ7PP1th2GJwe9kl2Lxb4ho7TTIsvLRCKf7LtkJG3R1ED7NF+A628vd+DY8SdL3IIRaUWuBus6FQY8KkSpWiiiYfWPgRMfxh+EY/GpNaI9h//o2unruFXYONDuXyqLdUkxQZZ7BRBihTVS8S3GAlfMpWfgqhO/sgTjBD7LVnFy3eWlnYenXVvrbI5KXda10kWWgQQf6EoawlwQxPnaLyVgm+4tPpXoyEuI2IIzKAg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t5EMV-0002v5-Gc for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2024 21:16:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yixuan Chen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Oct 2024 01:16:03 +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.173007816011177 (code B ref 73752); Mon, 28 Oct 2024 01:16:03 +0000 Original-Received: (at 73752) by debbugs.gnu.org; 28 Oct 2024 01:16:00 +0000 Original-Received: from localhost ([127.0.0.1]:48479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5EMR-0002u7-Di for submit@debbugs.gnu.org; Sun, 27 Oct 2024 21:16:00 -0400 Original-Received: from qs51p00im-qukt01071901.me.com ([17.57.155.8]:22369) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t594F-00074N-G7 for 73752@debbugs.gnu.org; Sun, 27 Oct 2024 15:36:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xlk.me; s=sig1; t=1730057770; bh=rjFJQRQoKoOJsBPb2yiNFwSwZchijt1Lcw3dajdIE90=; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; b=RJT4eZul91SIzjiIvByKD7VgUc3VONHm+3IiL+3mRwLEQuDi/5uAp4s8HY7WAE+gP UGlAoAW1zbCudr2Lcry3L5chQC51F3BSJtrKyriPoGCSV3bX3/5s21/WBYcfLu50nC ayrTE8GtfsKjRI1omGHWomE+KGSYpOuD4oHplVFum7ViFG9HHsGlCR/goAaANjInQ5 LF+B1upaUwYxYjI8g9yQ52k6sYJY5ovMWsRwEgXyePEB9XXY0mo8NTy/X+VrjRy75V ytcpu3gTquRPuiNdbKs7o5uDUup3dm2BABvpq6YBxh3zC9A0HtJB7a2uVMhAiCADgZ 4+GNr15w/2AfQ== Original-Received: from [192.168.1.14] (qs51p00im-dlb-asmtp-mailmevip.me.com [17.57.155.28]) by qs51p00im-qukt01071901.me.com (Postfix) with ESMTPSA id A8CAE6280354; Sun, 27 Oct 2024 19:36:08 +0000 (UTC) Content-Language: en-US In-Reply-To: <86bjz58ik7.fsf@gnu.org> X-Proofpoint-GUID: M6gklXSzpTTj7OW0eaahiAlcMdWT-F94 X-Proofpoint-ORIG-GUID: M6gklXSzpTTj7OW0eaahiAlcMdWT-F94 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-27_05,2024-10-25_02,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 clxscore=1030 spamscore=0 bulkscore=0 mlxlogscore=604 mlxscore=0 malwarescore=0 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2410270172 X-Mailman-Approved-At: Sun, 27 Oct 2024 21:15:53 -0400 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:294402 Archived-At: On 10/27/24 15:14, Eli Zaretskii wrote: >> Date: Sun, 27 Oct 2024 13:46:55 -0400 >> Cc: visuweshm@gmail.com, luangruo@yahoo.com, 73752@debbugs.gnu.org >> From: Yixuan Chen >> >>> Sorry, I still don't understand. Your code does >>> >>> (highlight-lines-matching-regexp (cdr face) (car face)) >>> >>> This potentially shows each line in a different face, and thus can >>> affect the metrics of the SPC character glyph which is what the >>> indentation is made of. So why is this a problem, let alone a bug? >> >> The problem is executing that line at 10PM today may render the font one >> way, while executing that line at 6AM tomorrow (with exactly the same >> "face" variable) may render the font a different way, even if all the >> other variables remains the same. > > But you modify the faces in a random fashion, so why is this a > surprise that it is not deterministic? I said, > ... (with exactly the same "face" variable) ... even if all the > other variables remains the same. Yes, this script is modifying the scripts in a random fashion, but let's imagine this: 1. the first time I open emacs, start the script and it randomizes the first line to a combination of face attributes (let's say (16, bold, regular)) in 5 seconds after going through 50 different combinations, it looks one way. 2. I restart emacs, start the script and it randomizes the first line to the same combination of face attributes (16, bold, regular) in 5 minutes after going through 3000 combinations, it looks differently from the first time, Do you agree that in both cases that single line should look the same? And they should always look the same as long as the randomization hits (16, bold, regular) on that line regardless of time and previous history?