From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: Re: Improving Scroll Bar Tools Date: Sat, 11 May 2024 15:38:54 +0000 Message-ID: References: <875xvl25sx.fsf@yahoo.com> <871q69237j.fsf@yahoo.com> <1ICXks4QeJPHggA-e4wSMYxpTpXSYkXJBnUqpf2GfutGPYTX-qKpvK__UEV5IV-7BZ_iTCVCXIJwF0F5Z3gkxrhRtvO-Bz40azno5wGTLdM=@protonmail.com> <86seyo3kkf.fsf@gnu.org> <86plts3g26.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37526"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 11 17:39:38 2024 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 1s5op0-0009ZP-6K for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 11 May 2024 17:39:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5ooV-0007i3-5U; Sat, 11 May 2024 11:39:07 -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 1s5ooS-0007ht-LX for help-gnu-emacs@gnu.org; Sat, 11 May 2024 11:39:04 -0400 Original-Received: from mail-40132.protonmail.ch ([185.70.40.132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s5ooQ-0005Hc-Gf for help-gnu-emacs@gnu.org; Sat, 11 May 2024 11:39:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1715441938; x=1715701138; bh=l31iW6QxGAZV5zfqzAGQdRr2VmondRmu9sbrqoX6M1k=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=JcNwU0yCS2/4nQ+7aRl+ZKHwJd7togWEAeTyKpxbnq6vvfpJC3to7dzJm57CBuTf8 BeALayhT753Bapj/bXhqDtNnpdlA8z9vhwH6KHZmMh2w5gLQxfwGcppD+cghhjbhU9 wj4kF/5fWMDN+2Oca3+EnNAN74fVM2JhQk+d+cGa5cO7NBALLx1WrVzgUO+U78qxeF xGhdSHWM3s9czZAavtqku0SY76g2Uq1xo+GsrtduPdM1owG7rJ1tMqoetWQD/ScR0o nq0d7W3v0utSyd4wmVTepzQZVire7MPUaN7qcaugNGfFHFQD9LqKhGMVVGFJN7TTGQ 5PY3cYFaf98tg== In-Reply-To: <86plts3g26.fsf@gnu.org> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 6a40bfbb5070dacc4919a01f0a490d98cb744a92 Received-SPF: pass client-ip=185.70.40.132; envelope-from=heimeborgia@protonmail.com; helo=mail-40132.protonmail.ch X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146679 Archived-At: Sent with Proton Mail secure email. On Saturday, May 11th, 2024 at 8:31 PM, Eli Zaretskii wrote: > > Date: Sat, 11 May 2024 07:28:33 +0000 > > From: Heime heimeborgia@protonmail.com > > Cc: help-gnu-emacs@gnu.org > >=20 > > Sent with Proton Mail secure email. > >=20 > > On Saturday, May 11th, 2024 at 6:54 PM, Eli Zaretskii eliz@gnu.org wrot= e: > >=20 > > > > Date: Sat, 11 May 2024 00:12:11 +0000 > > > > From: Heime heimeborgia@protonmail.com > > > > Cc: Po Lu luangruo@yahoo.com, > > > > Heime via Users list for the GNU Emacs text editor help-gnu-emacs@g= nu.org > > > >=20 > > > > I have seen that applying vertical and horizontal scroll bars with > > > >=20 > > > > (set-window-scroll-bars (selected-window) nil 'right nil 'bottom ni= l) > > > >=20 > > > > will not let the following to take complete effect an all windows i= n frame > > > >=20 > > > > (scroll-bar-mode 1) > > > > (horizontal-scroll-bar-mode 0) > > >=20 > > > The ELisp manual clearly says that set-window-scroll-bars overrides > > > the frame-specific settings of scroll bars. > >=20 > > This is a problem because if one forgets changing some window with > > set-window-scroll-bars, and the modes do not work, it is a problem. > >=20 > > If one wants to remove horizontal scroll in all windows in frame, > > the command should be expected to do so, nothwithstanding any > > previous changes with a different command (e.g. set-window-scroll-bars)= . >=20 >=20 > You are mixing two different levels of functions. scroll-bar-mode and > horizontal-scroll-bar-mode are user commands, whereas > set-window-scroll-bars is a Lisp function. If there is a > contradiction between them, it is a problem for the user-level > functionality which mixes them, and it is up to that user-level > functionality (presumably, some code you have written) to fix the > problem, whatever it is. How do users change the scroll bars of specific windows ? =20 > Since scroll-bar-mode and horizontal-scroll-bar-mode are minor modes, > they each one have a hook, which could be used to turn off > window-specific scroll bars. However, I don't recommend that because > that would prevent users from having window-specific scroll bars that > do not heed to frame-global settings. IOW, you will be coding a > feature that works against documented Emacs behavior. Ok, you want the minor modes not to affect window-specific scroll bars that users customised.