From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel =?UTF-8?Q?Mart=C3=ADn?= via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#55410: 28.1; Button text is sometimes trimmed in the NS port Date: Sat, 14 May 2022 13:29:05 +0200 Message-ID: References: Reply-To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22436"; mail-complaints-to="usenet@ciao.gmane.io" To: 55410@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 14 13:30:18 2022 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 1nppyT-0005c7-8E for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 May 2022 13:30:17 +0200 Original-Received: from localhost ([::1]:48594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nppyR-0007LF-Ks for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 May 2022 07:30:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nppyF-0007Ki-N9 for bug-gnu-emacs@gnu.org; Sat, 14 May 2022 07:30:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51993) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nppyF-00059x-Dr for bug-gnu-emacs@gnu.org; Sat, 14 May 2022 07:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nppyF-0001CE-7M for bug-gnu-emacs@gnu.org; Sat, 14 May 2022 07:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 May 2022 11:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55410 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16525277564477 (code B ref -1); Sat, 14 May 2022 11:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 May 2022 11:29:16 +0000 Original-Received: from localhost ([127.0.0.1]:45884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nppxU-0001A9-99 for submit@debbugs.gnu.org; Sat, 14 May 2022 07:29:16 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:57398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nppxS-0001A2-VV for submit@debbugs.gnu.org; Sat, 14 May 2022 07:29:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nppxS-00075w-Of for bug-gnu-emacs@gnu.org; Sat, 14 May 2022 07:29:14 -0400 Original-Received: from sonic307-53.consmr.mail.ir2.yahoo.com ([87.248.110.30]:34003) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nppxR-00052r-3F for bug-gnu-emacs@gnu.org; Sat, 14 May 2022 07:29:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1652527748; bh=4aAoYthEln3RLi55eyBemMr1j4B5uuNdCRRPgyxA0PI=; h=From:To:Subject:Date:References:From:Subject:Reply-To; b=nBXC2K7vs/8XaH9CMawW/vbiut4SmF0pzBuge9NYhv7mt6jGNoDwMbSGtp9Gr6FP4gDLNRooH5ZV4N7XGh9DRUdGEKGm8JDFXFDXgIIyHKpAtAHv08B/0nagBLljYG4pPbQg/Wvl6MxrySuWaRe7Q0bIo1zmaj2ZFC7BJB9ofX4KY4P5ySUZx+TIWxVGjwVh+qfL7/kwyNotVTMUwCjzkPhTlmk5jizg/F8mNQoqqGtdTQi5vPRFRPtIXx4cLtswBnIHB3A+77LX7ZIxsvy09qNB4NvorX7gz9K4KYp3yoHd8uyPjlavXg4UtBqLLDkvMzTf3N8kOCiCiGwFk24BPw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1652527748; bh=HWTEDY8XPusmC5GkQSGSouBgmwMEnHH4V8b7++k+GY6=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=INh5/jBYH8RAWKoCrOttopIIr+q8jcNlbC/mJ1oYBXaHbtdEJc3dPmxmcB3gwQhjNZ4izM917ftCtn5KVtQ1IpnQBo9dg9lDIxNKoBvRgKL0BIn7QSECzNkGVW+NmD4lSMFiIYrodmTi4V86lvvy7R5d2pEIex3zATbzu3/danwLSP9QGvwfl3KUKDiRIQK/yxE3/kkrlOTs0vjt5H3eufDX3oEMpZQX8UCZhDg0F6+vewa4dH5ZM8ecSvYdUFUVibGlPr1twvdjL1imGsYdsgf3e510GIkj0lYWTOpWIc9wUBsPCk8jCeZzGMXLXZyswBUEmFxF2ejuJDk9/UuSkA== X-YMail-OSG: e5lk7S0VM1mBpOhJfrTjnn_bBB0sgG3wRBo2cI7g5Oib2rQrK4MLy.IMGd9qOku wQQiyqqNKAAIvI_s1PbEpOLS6DWnmxOrY8EwQb6bkB_sEPBpnxp_GHNJ9XXtVkmsT2P3dpdFNfOw Kfo.0U4ubMtvjP2txsj3gsrMc2VHl_hqYvy57at.Fyb2vC0gBdFgtqePAv2oIOR9kZXOwyM_T5v4 Yf91BjQL5vcLnBt7c3r3NtP55p5VHml28X7KUlP01yP2hjpWcfnV1lgNleUY1NIhOlYnxUJaWKmJ zW3AQqxfG7CVCy2x63iOnylvsRjmt8ARcBUtMazuU0oi4K1zOnsO8HLrxH5pGh9drUhNLSOaX7pU zbfE8UFX6vgHOCwJD0o5.cb8k9cXJsIS1TOAxCNQXEe3MyU2_CZyeR8fn4hNgDLq0GuJtLhUfZfO 4VJMLF2y9O9symkuY5F7nNXLwuTWKiYyt9k6dp6D02eBPz6qtc9ihysf7PaRU0BgP97k9TES1I6u .2P8xqNTPmfd1pbfecFOU.sgz6kpfq56GNdETnl.FGoeXzioITQmPVq3dRgo8r2McPT4XPLcIFZQ IyRwSGqsDyN48I1ko53XT5i6gvi6OJVOI2n68zOVuH8Jt1l7P0hJ47zqMRNbvn.g7f1fYUZXiEWs is8RVF5nJxJbN9sJ5yAsnwMyASHrc5t3OF1Rna3TlL70Bw_QdXPUbE5Yc5OgiT82ZDN5IoG04Frh 2kl_PR2vXSZ507mGe3uCH6WPBPbtkxJBNGDYWZmPNurPNU59F3xH7U7Qr.WN7M9ZLOXo_Nsc4c1N Lg1Y.nuyrRbYliqhKBrL8tXu4GuPII9THO3H6Oa1TI X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ir2.yahoo.com with HTTP; Sat, 14 May 2022 11:29:08 +0000 Original-Received: by hermes--canary-production-ir2-695448f88c-qt4sn (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID cc87201fb04cd04a8c26df0c43bd24ce; Sat, 14 May 2022 11:29:06 +0000 (UTC) X-Mailer: WebService/1.1.20188 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=87.248.110.30; envelope-from=mardani29@yahoo.es; helo=sonic307-53.consmr.mail.ir2.yahoo.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: 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" Xref: news.gmane.io gmane.emacs.bugs:232227 Archived-At: Steps to reproduce: emacs -Q C-x C-f foo Type something Click on the upper-left red button to close the frame. Actual result: The text "Close Without Saving" is trimmed. Expected result: The text of all buttons is completely visible. I think this bug happens whenever the button text is longer than the minimum button width (MINCELLWIDTH in nsmenu.m). I've taken a look at the code and I can avoid the problem if I remove the expression [cell setBezelStyle: NSBezelStyleRounded] from the NSButtonCell preparation code in [EmacsDialogPanel initWithContentRect:styleMask:backing:defer]. But, of course, buttons look ugly if I do that. In GNU Emacs 28.1 (build 1, aarch64-apple-darwin21.1.0, NS appkit-2113.00 Version 12.0.1 (Build 21A559)) of 2022-04-04 built on armbob.lan Windowing system distributor 'Apple', version 10.3.2113 System Description: macOS 12.3.1 Configured using: 'configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER THREADS TOOLKIT_SCROLL_BARS ZLIB Important settings: value of $LANG: en_ES.UTF-8 locale-coding-system: utf-8-unix