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.bugs Subject: bug#72331: 29.4; Modifying horizontal-scroll-bar does not fully work (MacOS only) Date: Sun, 04 Aug 2024 11:33:34 +0300 Message-ID: <86ed74sn4x.fsf@gnu.org> References: <8e515633e5357ca950d4990b03bb4897@finder.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6448"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72331@debbugs.gnu.org To: Jared Finder Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 04 10:34:59 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 1saWhe-0001Wg-1W for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Aug 2024 10:34:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1saWhS-0004Z8-Jv; Sun, 04 Aug 2024 04:34:46 -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 1saWhO-0004YX-28 for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2024 04:34:44 -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 1saWhN-0004VN-Pa for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2024 04:34:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=tpLwTLZdvH202R/1yUuN59KN095F8Gil+BGvFiduNqo=; b=ImKSjvGksYkbLRoMOuvXzRYlcaefxg+wDDYGg8If2wpZf5GSftsY0Wc/Gu4PTrI+czjmckhejec6rBag6mI/xUThltWEK2hawzg3bPGf8Ew5C5kVAskf4VSwVGl6ZpjSPZ6uCL2kow9i0N7Kfem6VVtqq258lX4Kf7qO87D19sN7fqhQmzoJdeAsyt41ZfTkQQsVQMtDab5/DIbnuybBS9L5oSlOWogvkD6Y34hNAmq8tSDWo0xhKP6nWz5tcHCgLF8VIgc81G3ADie/85qeFLrPohkM4P4Kc+2pWsTNXlA2eN53ys7sQGFLf0H/FNbd1voofyvMfN+48yccrtPVFA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1saWhi-000747-GR for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2024 04:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Aug 2024 08:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72331 X-GNU-PR-Package: emacs Original-Received: via spool by 72331-submit@debbugs.gnu.org id=B72331.172276046727063 (code B ref 72331); Sun, 04 Aug 2024 08:35:02 +0000 Original-Received: (at 72331) by debbugs.gnu.org; 4 Aug 2024 08:34:27 +0000 Original-Received: from localhost ([127.0.0.1]:55462 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1saWh9-00072R-AO for submit@debbugs.gnu.org; Sun, 04 Aug 2024 04:34:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33526) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1saWh7-000727-4a for 72331@debbugs.gnu.org; Sun, 04 Aug 2024 04:34:25 -0400 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 1saWgg-0004RG-QF; Sun, 04 Aug 2024 04:33:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=tpLwTLZdvH202R/1yUuN59KN095F8Gil+BGvFiduNqo=; b=DoPiBn3Aoel+ Wumq9Hw7Kj6/Fx6dftIHiDsxDpfe7WoXKUeoju2lOdKm8wscgQZ4DzzLmY4OzjczgGH/j6CCtXXMO R52pwZbSJgzk3EUzmPGacb9UkLqwZmErVrcmnngwAK1W+M31GwhzMQgnSi8wZDvOqu7vgOlDOOgP9 K43GYid8E5J93Sw6mwicPtPtZnaZaTWYkByC/XuVlZ0Y/rmVJZzrKQ1NzAx6aF1r/GRCQY1N3XFuO 1ZyqyH63ziQewuySP/wE9TDlEXCKiOjec4IhtQzVUIktHWTDVM+z+PQ4DgzGDWSLtLy8EYkuuaGxV JEpCMKH1lW9c1iY8x/5y1w==; In-Reply-To: <8e515633e5357ca950d4990b03bb4897@finder.org> (bug-gnu-emacs@gnu.org) 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:289732 Archived-At: > Date: Sat, 27 Jul 2024 22:10:06 -0700 > From: Jared Finder via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Directly modifying the variable horizontal-scroll-bar on MacOS doesn't > show a scroll bar unless the frame also has the horizontal-scroll-bars > frame parameter set. This only happens on MacOS, on Linux and Windows > everything behaves as I would expect. > > To reproduce, define the following function: > > (defun bug-report-toggle-buffer-horizontal-scroll-bar () > "Like `toggle-scroll-bar', but for just the current buffer. > And for horizontal scroll bars. I guess it's acutally very > different." > (interactive) > (setq horizontal-scroll-bar (if horizontal-scroll-bar nil 'bottom)) > (set-window-buffer (selected-window) (current-buffer))) > > Then run M-x bug-report-toggle-buffer-horizontal-scroll-bar repeatedly > and observe that on MacOS space gets reserved for the horizontal scroll > bar but no scroll bar is rendered. Finally, run M-x > horizontal-scroll-bar-mode and observe that now the horizontal scroll > bar is properly shown and hidden. > > I also tested this on master and observed the same behavior. Thanks. Could some macOS user please look into this?