From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jared Finder via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#72331: 29.4; Modifying horizontal-scroll-bar does not fully work (MacOS only) Date: Sat, 27 Jul 2024 22:10:06 -0700 Message-ID: <8e515633e5357ca950d4990b03bb4897@finder.org> Reply-To: Jared Finder Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10526"; mail-complaints-to="usenet@ciao.gmane.io" To: 72331@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 28 07:11:15 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 1sXwBe-0002aw-Jw for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Jul 2024 07:11:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXwBN-0001og-Gk; Sun, 28 Jul 2024 01:10:57 -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 1sXwBJ-0001oM-Ir for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2024 01:10:53 -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 1sXwBI-00016v-Pt for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2024 01:10:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=From:Date:MIME-Version:To:Subject; bh=v0jehBj6T0GEPSORQIMEcTv6B4oJRzkg0dDkb8qWkxs=; b=WYUB9bObJs8n15K8FpqZ6CW5//GWP6T62I20bLEXNYqyB6cEw/Q3yjR4HO+2oV7XBH+UVOtU8JjBOvTJxpyBBBb521SQg+RQuDCSBzdPeZEKhOjZ/ZM1b4ptYZWN+n834eIpHeBcBS3C9TugTt2+wTYg61YiFaBOOt9XM6jONTjRGwdd7iF1FtoyaxFdQVqGVM32d+qdkdWIbfBG+mlVZPAAKdBg8Kq4ZggvMVBGpVOoVxp2qxo8gK1UhstILTW/9r5GQ9Kj1tN0vMdr+VFK8d1J+3IrauElvbrS4g37gY6BgeHRn+6T5SlsXO96K4PlQic9NJLn0ludWC8aDdJs4w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sXwBS-0004eO-KM for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2024 01:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jared Finder Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Jul 2024 05:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72331 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.172214342817835 (code B ref -1); Sun, 28 Jul 2024 05:11:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Jul 2024 05:10:28 +0000 Original-Received: from localhost ([127.0.0.1]:42615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXwAu-0004db-5V for submit@debbugs.gnu.org; Sun, 28 Jul 2024 01:10:28 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:35534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXwAs-0004dT-8l for submit@debbugs.gnu.org; Sun, 28 Jul 2024 01:10:27 -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 1sXwAg-0001d5-Vv for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2024 01:10:15 -0400 Original-Received: from greenhill.hpalace.com ([192.155.80.58]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sXwAe-0000qa-8s for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2024 01:10:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=finder.org; s=2018; t=1722143406; bh=5RFbNdP2Js11qqtFJ2H6opT4sX0nS4oAFdgIaMdklyY=; h=Date:From:To:Subject:From; b=QWn6bNMhrf6AdxGZl83Hll/+ZGv4wGDr+Ji9ffOxdMsYDJmTmY/5LfT0CUgZbbPmU E5yNVE1wNpKdaUgeuYVJMgctDd6Mu9W0TvDY61iVpMwQETrOpOtw4wTaFd4rt0FJoE 9tXPCFjkw6THQFPW8IzrWe5wHTYFdYoRgwm9GtMz1kBTnAdzqHjtD/1cSrPrzVCdhD GNSYdSY2cT0u6EZn+Pgn5CG7MLaWzKniKS0v3ecoEcMIwRSfhI+M5ygknjrf8RbzBS AbrwLfj+Zbi6Ah5R/Jfgs3YK5xkw5wZdIn1Cxm1+f0zeyYdxtJaZn9NQc43ZXHUTas YrIiTOVMXUWZg== Original-Received: from mail.finder.org (unknown [192.155.80.58]) by greenhill.hpalace.com (Postfix) with ESMTPSA id 83F927A1 for ; Sun, 28 Jul 2024 05:10:06 +0000 (UTC) X-Sender: jared@finder.org Received-SPF: pass client-ip=192.155.80.58; envelope-from=jared@finder.org; helo=greenhill.hpalace.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:289457 Archived-At: 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. In GNU Emacs 29.4 (build 1, aarch64-apple-darwin21.6.0, NS appkit-2113.60 Version 12.6.6 (Build 21G646)) of 2024-07-24 built on armbob.lan Windowing system distributor 'Apple', version 10.3.2487 System Description: macOS 14.5 Configured using: 'configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules 'CFLAGS=-DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT' --with-x-toolkit=no' Configured features: ACL GLIB GMP GNUTLS JPEG JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: ELisp/l Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr vc-git diff-mode easy-mmode vc-dispatcher cl-extra cl-print byte-opt gv bytecomp byte-compile thingatpt help-fns radix-tree help-mode dabbrev emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 60165 20431) (symbols 48 6527 0) (strings 32 20561 2286) (string-bytes 1 561629) (vectors 16 13714) (vector-slots 8 194672 14038) (floats 8 33 135) (intervals 56 399 17) (buffers 984 14))