From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: Enclosing text in a box Date: Wed, 16 Nov 2022 21:11:04 +0700 Message-ID: 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: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1878"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 16 15:13:06 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 1ovJ9z-0000GB-9L for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 16 Nov 2022 15:13:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovJ8U-0007IU-EV; Wed, 16 Nov 2022 09:11:30 -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 1ovJ8L-0007F2-8a for help-gnu-emacs@gnu.org; Wed, 16 Nov 2022 09:11:22 -0500 Original-Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovJ8J-0006wy-4I; Wed, 16 Nov 2022 09:11:20 -0500 Original-Received: by mail-wr1-x42d.google.com with SMTP id d9so25396686wrm.13; Wed, 16 Nov 2022 06:11:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dUwQGyYF9mZ67AwZMYjySWJTIKRG3M4AocsfRuPf6XE=; b=Hx+2eNn+1NPBKGoMw5PzO0sCHIO/Asqk7xmgyQt7eN+ltjdBRX+m580NAc5siUID+s vhdWeWbxCk1cY/RxY0HKCTzkDZDa5rRXlGjz5ISxEcNmcXHGqiTAJ29seHyvRuhqEo1Q 3RDmfnrNOz5ctV9EAJypl/XTZVaxrtQRUNYLEzXFB3yKnninXZCQX2xJr85vzdJ99po1 deXqG6/BrogQruXRQG0AKtqJVLrvBxkBcyNtCi4U/E5Uq3TLa9bVotmiq2Kd8NuqW+QQ 99BzFnL+QM3K6RE0veCk0fhZWBaefJPke0KcVSnUYWK3aoV8iXciVP6f2apRq9iz9Fyp 5hNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dUwQGyYF9mZ67AwZMYjySWJTIKRG3M4AocsfRuPf6XE=; b=Knk65DVapviTZtWLsmjpsfZwXKJBPXBr39ew9PjQ9nBMDn2lQazGB48HfnXI9iYC2W N6J1A2FaUjfo/oCjoKxl4M8H545llBERkiIldfnyuNTZFSxfyExv3pr3tFXsZSR1WVvF 8Glg4ac6qaw5Z8bgU3F+lhX1HU7gw3mxYF6Sjoa/Z7h9/4eHutIHIZIcaZaIfpE6mnHd jek71+fFu107+tN5ZOVDnlx1JEdlpHrFDACKX7fV5eN4XTRFfC2fcffeB2PS36mD1wQN LOTU44h+yD+wUg9eb3v5uIi1DQ8a4+4h1YWliCAc/N2AlHxPZ+dhOx1ypMoiKo/HzSNj Va1w== X-Gm-Message-State: ANoB5pnSKtyjjmWxC5mMdi3vszyoDwGbDdJnQfJ/8FeJeUTjEdTmuXof q9qOyhMPG1YfbNeW7MhNfNhpsqTA6euTn1+msOQk8r/XZ8g= X-Google-Smtp-Source: AA0mqf4C4ve2SI/XVPgpuXNAo0ouSfGP/qKcpnFI/hDCEmBIHQHqyX3CnFlifjOzDTRbpitaEcMMBNHJXnDTj/jXxWg= X-Received: by 2002:a5d:6089:0:b0:236:58f5:84dd with SMTP id w9-20020a5d6089000000b0023658f584ddmr13861594wrt.603.1668607876233; Wed, 16 Nov 2022 06:11:16 -0800 (PST) In-Reply-To: <835yffgfwp.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=yurivkhan@gmail.com; helo=mail-wr1-x42d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:141000 Archived-At: 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 =E2=80=9Cmake-string does the wrong thing when passed 17.237 as the count=E2=80=9D, without an explanation as t= o what the right thing would be. (I don=E2=80=99t know either.)