From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Enclosing text in a box Date: Wed, 16 Nov 2022 16:47:08 +0200 Message-ID: <83y1sbez2r.fsf@gnu.org> References: <_AODCZ2cNjiSAkIvdrGzDgeSNSWqJoJ9xfXn-zFenyY-yTUYx-Ijx0k4-Lq46rN4CjdkyIrzIBD1h4YY23BAP089R0Tg0kzM9MOUnaEOFrs=@protonmail.com> <835yffgfwp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37678"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 16 15:47:54 2022 Return-path: Envelope-to: geh-help-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 1ovJhh-0009gS-Hh for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 16 Nov 2022 15:47:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovJh4-0004EG-Fn; Wed, 16 Nov 2022 09:47:14 -0500 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 1ovJh1-0004Dp-Vv for help-gnu-emacs@gnu.org; Wed, 16 Nov 2022 09:47:12 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovJh0-00086D-Ru for help-gnu-emacs@gnu.org; Wed, 16 Nov 2022 09:47:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=ju0ZN1Tplc/K3PHkJiMO1GNTm3ZKk9suBhInKEUoow8=; b=NQ9DPcv7iDqDTgWX62+4 dO6e8gGpx9R8fOLgNWJSAQnUncw1K/JXleXHzoA1JQXrQVth9r4dFM2zVI9/8cwhYabWAjd/PZgU0 1Wmnfqed99OyFBNt/FNUzBBb11zwtn8K9eFoFsHqbMnx+Ls3YGp5Mw44urAd8R4j5fGRd7UvcWfQi V+34VKyg1yUFjT03h8gpM/EX0wPYr1qZK1iWhonHK7FlkQ7J4F8ikSDgLU/KNTz3MAJcUEbA7ZRtg bMqAoq3KyO7yuXgNHtDZFNkYIg7IpAP4jtrLzmncDdrhgihukN9FUy4ByE3LFvYPXVrSrWDf1F4ZH kE8CutkuFfNVNw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovJgz-0004Oe-5T for help-gnu-emacs@gnu.org; Wed, 16 Nov 2022 09:47:10 -0500 In-Reply-To: (message from Yuri Khan on Wed, 16 Nov 2022 21:11:04 +0700) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141002 Archived-At: > From: Yuri Khan > Date: Wed, 16 Nov 2022 21:11:04 +0700 > Cc: help-gnu-emacs@gnu.org > > On Wed, 16 Nov 2022 at 20:59, Eli Zaretskii wrote: > > > Using 'length' to measure the width of text on display is not > > reliable, because there are characters of different width. It is > > better to use 'string-width' or 'string-pixel-width' instead. > > The next stumbling point is going to be “make-string does the wrong > thing when passed 17.237 as the count”, without an explanation as to > what the right thing would be. (I don’t know either.) Why would sane code call make-string with such an argument?