From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thuna Newsgroups: gmane.emacs.help Subject: Reliable way to get the string-width of buttons Date: Mon, 24 Jan 2022 13:08:27 +0300 Message-ID: <87czkhzbs4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2657"; 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 Mon Jan 24 15:44:00 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 1nC0Zc-0000bq-0r for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 24 Jan 2022 15:44:00 +0100 Original-Received: from localhost ([::1]:38632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nC0Zb-000492-1W for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 24 Jan 2022 09:43:59 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42368) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBwMV-0001WY-MV for help-gnu-emacs@gnu.org; Mon, 24 Jan 2022 05:14:11 -0500 Original-Received: from [2a00:1450:4864:20::141] (port=40723 helo=mail-lf1-x141.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nBwMT-0005w4-VT for help-gnu-emacs@gnu.org; Mon, 24 Jan 2022 05:14:11 -0500 Original-Received: by mail-lf1-x141.google.com with SMTP id a28so18008494lfl.7 for ; Mon, 24 Jan 2022 02:14:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version; bh=nwtn146DYBJrw3P8NDHZ2cNxPy5ZX6uXPax3uUOAuWQ=; b=ezwqLUMLscbCoz2Ci/OSjYcYS7+Na4cvvAUOW5kH70OHwY6SB3q4ceGfJscKhtTIS8 HxcI7opXQr5lq9LP8T7Bm3yNjqxHrJmSr/EPFe5zlYy2bCzKaEis0phIt+U3xNmjkwhP 8nTOFMmazLC5SL0SFZ6TbBNiQ+eCIl+2vldb10pvB5yjXN3j9uD7kqdw7ePuysBDdG+H a3XlBR7zKy7IpV9vXELAJup6F3UfhldQAmICNIAJoINGtGNRy6GoigZ98eJYYlyaf5fI YBRu5nobzM50F7VDXnWvAtgKCjKkJgFrFJdrpuBoRsxBs8lhs3I9quUIBnEiltDnNE+V 9n1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=nwtn146DYBJrw3P8NDHZ2cNxPy5ZX6uXPax3uUOAuWQ=; b=QmAijBdAh1W/RJhrhpO1w5ogiptQMfr7Kke5PaP42y7JQ5GokBX8PO5pgUC5DItD3f M/jsyN/3t/Z52bxIuyBq2D+Zge4x6KRyZnNGdK68brqK12XjQ9eRQvqAF3wReExtjKS9 Q80qb90AILSQafGBrzG8OOtKn4FAjQ7wUSLeZS8GFqBZ09cUxZwHZmFr/jPWe4M1jm2a uy8qtZa1w5UMlA5Jvoz6pql97lcN+rc2mvPr4i5UlZDlHEdRusQBXZU1YuZOmkMQKeRZ Z2NA1iDClm2GGJNlFnUhIBloLS/1zPRzAuMJJ/whhtq0BbFFqVRlFyR4V2FneaOD/Y2/ tSgQ== X-Gm-Message-State: AOAM5311LOfJBJL6dNMpNpx6SSe5bxuBHt2YsDARvFodPamMGgqkExje 9YBGCYHMGX1iWk0PYrro4aLKpo7jhhs= X-Google-Smtp-Source: ABdhPJzOfs14B7tlkKad9i7hFdzrEwl4MFELYXyaJ/YOp4dacJAZECdexWm7V3AEMxBy2IkoEJ5wTA== X-Received: by 2002:a17:907:3f83:: with SMTP id hr3mr11770068ejc.684.1643018909923; Mon, 24 Jan 2022 02:08:29 -0800 (PST) Original-Received: from Thuna ([78.161.73.233]) by smtp.gmail.com with ESMTPSA id by16sm4680812ejb.73.2022.01.24.02.08.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 02:08:29 -0800 (PST) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::141 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::141; envelope-from=thuna.cing@gmail.com; helo=mail-lf1-x141.google.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) BAYES_40=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 24 Jan 2022 09:39:57 -0500 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" Xref: news.gmane.io gmane.emacs.help:135515 Archived-At: There doesn't seem to be a way to get the string-width of a button while accounting for its properties. Maybe a button-width function is warranted?