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 23:00:13 +0000 Message-ID: References: <871q69237j.fsf@yahoo.com> <1ICXks4QeJPHggA-e4wSMYxpTpXSYkXJBnUqpf2GfutGPYTX-qKpvK__UEV5IV-7BZ_iTCVCXIJwF0F5Z3gkxrhRtvO-Bz40azno5wGTLdM=@protonmail.com> <86seyo3kkf.fsf@gnu.org> <86plts3g26.fsf@gnu.org> <86seyo1fda.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="25202"; 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 Sun May 12 01:01:08 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 1s5viG-0006Nx-Hw for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 12 May 2024 01:01:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5vha-0006on-LW; Sat, 11 May 2024 19:00:26 -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 1s5vhY-0006oa-H4 for help-gnu-emacs@gnu.org; Sat, 11 May 2024 19:00:25 -0400 Original-Received: from mail-40137.protonmail.ch ([185.70.40.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s5vhV-00050j-GZ; Sat, 11 May 2024 19:00:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1715468418; x=1715727618; bh=uJhNW6uqT/AByR3e6u2iTkz6+a00yF4bUj4xZgwF1sc=; 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=FrS9WALOKxsy5nVxesG63nc7EQxjsxDvXPb5RSAmMjbU8BrMLBV2jPbA9/jEasheZ eBQ5T6Vagd1CVUU6ivIgTh07t06cPGMZ3jZK8G0vNPnIxtbP2lnEcWEu2/7P2enWiL ukwBH97EYnn47S5IJmX8Vo00PNVC1vDfNKN6UQ7CZqfLHCO6uptKv4rQdbvyg0gD0K kzOxYyp79HoIl5Z5Qs3wYCltW/mxuqAN62BBHKS/v69XuRHFNDwDQ6viGJg3ujT4xL VjoqsGs0WlDcfqypiyJ3+OY5oVZqcIQVmdmepgKo2J+1w9QBaxmR0HumRZtrUAXZZO 4vBi1AmP9Cbfg== In-Reply-To: <86seyo1fda.fsf@gnu.org> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 78fa651a0c9970bb5bc76101721a8c497fe48af1 Received-SPF: pass client-ip=185.70.40.137; envelope-from=heimeborgia@protonmail.com; helo=mail-40137.protonmail.ch 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, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham 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:146682 Archived-At: Sent with Proton Mail secure email. On Sunday, May 12th, 2024 at 4:29 AM, Eli Zaretskii wrote: > > Date: Sat, 11 May 2024 15:38:54 +0000 > > From: Heime heimeborgia@protonmail.com > > Cc: help-gnu-emacs@gnu.org > >=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. > >=20 > > How do users change the scroll bars of specific windows ? >=20 >=20 > There's no Emacs feature currently to do that (but maybe there are > third-party packages out there offering such capabilities). >=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. > >=20 > > Ok, you want the minor modes not to affect window-specific scroll bars = that > > users customised. >=20 >=20 > That is the current arrangement, yes. Window-specific scroll bars > take precedence over the frame-global settings. Briefly, window-specific scroll bars are to be customised via a package, ra= ther that directly by the user. =20 Should packages change window-specific scroll bars using set-window-scroll-= bars ? And once changed, should only the package handle them rather than users usi= ng the minor modes ? =20 Should there be many windows with specific scroll bar customisations, we ca= nnot=20 usually rely on users to remember whether it happened through the global mi= nor=20 mode or the package - would you agree ?