From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Emre Yolcu Newsgroups: gmane.emacs.bugs Subject: bug#71085: text-scale-adjust does not adjust margin width Date: Mon, 20 May 2024 18:50:28 -0400 Message-ID: Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Content-Type: text/plain; charset=us-ascii; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12456"; mail-complaints-to="usenet@ciao.gmane.io" To: 71085@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 21 02:04:33 2024 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 1s9CzY-0002xc-1W for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 May 2024 02:04:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9CzA-0001WB-6o; Mon, 20 May 2024 20:04:08 -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 1s9Cz8-0001Vx-O7 for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 20:04:06 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s9Cyz-0006S2-VN for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 20:04:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s9Cz4-0004FF-Lx for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 20:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Emre Yolcu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 May 2024 00:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71085 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.171624982916307 (code B ref -1); Tue, 21 May 2024 00:04:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 May 2024 00:03:49 +0000 Original-Received: from localhost ([127.0.0.1]:45720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9Cyq-0004Ex-OS for submit@debbugs.gnu.org; Mon, 20 May 2024 20:03:49 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:37254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9Bq4-00035Q-6O for submit@debbugs.gnu.org; Mon, 20 May 2024 18:50:41 -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 1s9Bpz-00021E-2M for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 18:50:35 -0400 Original-Received: from fhigh6-smtp.messagingengine.com ([103.168.172.157]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s9Bpw-0002T2-Bl for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 18:50:33 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 9AAE11140161 for ; Mon, 20 May 2024 18:50:29 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 20 May 2024 18:50:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emreyolcu.com; h=cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:message-id:mime-version:reply-to :subject:subject:to:to; s=fm2; t=1716245429; x=1716331829; bh=Lf pi0mXktfjaASgdGfcxk146SBN/mVBLt0hcfCO2zhU=; b=FxYaoypst3nHY7WK39 0dF/Sqx58PqcZ1P7T5OykjCjt8zoOzL0WGya0fYRLLjGrzzTyaR0uD09rPOWyO8L HAUvMwgfJ+Ob7/BGxO0am5tqCt0HCqLetgeJMabFS0ufR+H4vrkt1NLB9xF44nXb sXsBqP9Kygwhb1ZFmAuu3lIcdlolS0pVER0AyZmEzBZfpDzFhA+C9QlL/nCSRtL3 DwmrXLZgzC/LrBpVMXvo8w54/bjYJDGFyP3atMfebmkbUZSOPJMwCWRRzSNBA8G+ 0vPkgMq148xT6+pLvdCYbNOJ3DlHWJQBOqopA8QnS3//u6pybbkh5aS7iIQnYWf8 FJOQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1716245429; x=1716331829; bh=Lfpi0mXktfjaASgdGfcxk146SBN/ mVBLt0hcfCO2zhU=; b=qt0rRmSyo6PV3FsxZuyDuXuv4IgkXV56MzCiFubCAUvQ v7fryGJrKD6jORd5zbba0yW8IGzP2npGW26+Z0DZyvACXIbgRFvLwDfGke4Te6En h2GyG3l/BGlaF9WP7KkG2LuQOeqtgoEwyg3hLinohsV72XOKwra7iTHnhg8EBrfN olyb5UgfnlmRMJpqpyuRmcKWeNrI2d4qxaCilxKsKDfm1WItVeiPkERYX+IBSEu6 qOYDT7FOe72lDua65H5Q+gP8LY5fFEbIdY9ZcN+2VjhcvHsLrYfoPVdO6F/E938F V+XeJ8IS1e8jeLsUlacVyZ3lNcafDzwr7Gm9pqdkcQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeiuddgudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhtgfgggfukfffvffosehtjehmtd hhtddvnecuhfhrohhmpefgmhhrvgcujgholhgtuhcuoehmrghilhesvghmrhgvhiholhgt uhdrtghomheqnecuggftrfgrthhtvghrnhepueeuveejfeetjeevvdehheetkeefvdefff fgvdffgfetffffieethfffuedtgeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepmhgrihhlsegvmhhrvgihohhltghurdgtohhm X-ME-Proxy: Feedback-ID: i1b09467c:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 20 May 2024 18:50:29 -0400 (EDT) X-Mailer: Apple Mail (2.3608.120.23.2.7) Received-SPF: pass client-ip=103.168.172.157; envelope-from=mail@emreyolcu.com; helo=fhigh6-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 20 May 2024 20:03:46 -0400 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:285510 Archived-At: As of Emacs 29.3, changing the text size in a buffer using text-scale-adjust has no affect on margin width. Since the text displayed in the margins has the same height as the text in the buffer, this behavior causes the text in the margin to be clipped if we increase the text size too much by using text-scale-adjust. Here are the steps to confirm: 1. Launch with "emacs -Q". 2. Evaluate: (set-window-fringes nil 0) (set-window-margins nil 1) 3. Switch to a scratch buffer. 4. Place the cursor, which should be box-shaped by default, on the first-column of the buffer. 5. Increase the text size in the buffer by pressing C-x C-= several times. Expected behavior: Left margin has exactly the same width as that of the cursor. Current behavior: Left margin has width much smaller than that of the cursor. It also seems to me that there is no way to work around this problem in the Elisp layer, because text-scale-mode works by remapping faces in a buffer-local manner; however, - there is no face defined for the margins, and - it seems that the pixel width of the margins is not determined in a buffer-local manner. Given that {left,right}-margin-width are buffer-local variables, I would expect their pixel width to be determined in a buffer-local manner.