From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: Re: master 5a125fb5a97 1/2: Update to Org 9.7.3 Date: Fri, 14 Jun 2024 13:18:02 +0000 Message-ID: <871q4zll2t.fsf@localhost> References: <171796793548.23337.12512115872160390161@vcs2.savannah.gnu.org> <20240609211858.A2C31C1F9FB@vcs2.savannah.gnu.org> <87a5jtd403.fsf@yahoo.com> <87h6e1lhtd.fsf@kyleam.com> <8734plcvg9.fsf@yahoo.com> <87r0d271g4.fsf@localhost> <8634pi1ez8.fsf@gnu.org> <87le3a70rw.fsf@localhost> <86zfrqz3sn.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="39167"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, kyle@kyleam.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 14 15:17:20 2024 Return-path: Envelope-to: ged-emacs-devel@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 1sI6nw-000A13-1i for ged-emacs-devel@m.gmane-mx.org; Fri, 14 Jun 2024 15:17:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sI6n9-0001io-8F; Fri, 14 Jun 2024 09:16:31 -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 1sI6n6-0001iN-SS for emacs-devel@gnu.org; Fri, 14 Jun 2024 09:16:29 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sI6n3-0007aG-CN for emacs-devel@gnu.org; Fri, 14 Jun 2024 09:16:28 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 87EEF240106 for ; Fri, 14 Jun 2024 15:16:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1718370981; bh=jzD6mHEEvPX3a8BFqSGG2GoYMfWij/S9VJiwKnN6kAQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=ZI6N2ucCfK0OEZ24H0ImV8s5fxXS8GHwdRpowuP6eVGgL0Fm49uXz0yrXc1jL0Wkq RPvQAl6oiar7OVkRCjS8mk0Zuqa7Z1d/RpaLm4JnW2TV/LLu0pNPcQAxH2VwYnpiFN zxE+FalZkXbDII0f6tv4+RKWvCVCBZTL4r9ZVeY40KM6QoxiD1V96ERYOVd+a82Z3q CZVyswXhkPBRvCcHPlIRksc5dMGU38YkS7yOgjZ2IRDSyBkDAfi/NtAK+9gSSfDfBG SC2fhV+e2CVUDq1D+z2FIiWwMLiqQfxODLBb+HCJPm6N+kwLxqMnJThr+8BfVbGVg3 S2WHTSNMotscA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4W10Cm5yg5z9rxD; Fri, 14 Jun 2024 15:16:20 +0200 (CEST) In-Reply-To: <86zfrqz3sn.fsf@gnu.org> Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:320070 Archived-At: Eli Zaretskii writes: >> > Why do you use buffer-text-pixel-size if all you need is the width of >> > a symbol (which I assume is a character?). Why not use >> > font-get-glyphs instead? >> >> (1) I do not know which font. > > Emacs knows, and you can ask it (use font-at or somesuch). > >> (2) I also need width of a string, not just a symbol. That string may >> contain invisible text, which should also be accounted for. > > Then how did this yield zero in the case in point? No idea. Org mode uses (car (buffer-text-pixel-size nil nil t)) Apparently it is 0 in Po Lu's build. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at