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.help Subject: Re: Improving Scroll Bar Tools Date: Sat, 11 May 2024 19:29:37 +0300 Message-ID: <86seyo1fda.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3839"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 11 18:30:20 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 1s5pc4-0000qJ-Hy for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 11 May 2024 18:30:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5pbU-0003FH-GW; Sat, 11 May 2024 12:29:44 -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 1s5pbR-0003F2-VB for help-gnu-emacs@gnu.org; Sat, 11 May 2024 12:29:42 -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 1s5pbR-0006Ba-NV for help-gnu-emacs@gnu.org; Sat, 11 May 2024 12:29:41 -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=hzNkDGa3sNZLlofbojWjJpQ9veommJOA0aZzCLJQEDQ=; b=GeaDJFKFJC3t O/okDcTja5U/aMd5KdLB3ofKJ/NpwMaUwS3K59PMd+rvCgfjXEuF0o9c9nidNtEQ7b1VR4K1ox2FR lX2xGRxUiw4iPIrc7OVA8XvA4qwmdHZdMvfIenhFRdEwbCCd0zvx+UtWD+LUoJRuDxSYX1JFSjS3k g1c64Jnmhi4JGEn8oNKJ30YfBN0qhZRrBKzYwIarvkP7SWmQ3Hqw43mnyjEKrwg/7WteDTfZWWyHa DfxFSgM0YVeKxbb1ryZ2q/CnLIR21j/B5urCdAe3ehuAoseJN0gOd/5z/6mhoQswm6eOFgb52h0mT 2aziJxysWBuTJhNgMhTJwQ==; In-Reply-To: (message from Heime on Sat, 11 May 2024 15:38:54 +0000) 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:146680 Archived-At: > Date: Sat, 11 May 2024 15:38:54 +0000 > From: Heime > Cc: help-gnu-emacs@gnu.org > > > 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 ? There's no Emacs feature currently to do that (but maybe there are third-party packages out there offering such capabilities). > > 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. That is the current arrangement, yes. Window-specific scroll bars take precedence over the frame-global settings.