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: Sun, 12 May 2024 09:08:51 +0300 Message-ID: <86cypr1s0c.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23003"; 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 Sun May 12 08:09:46 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 1s62P3-0005kk-O2 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 12 May 2024 08:09:45 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s62OM-0007IC-SN; Sun, 12 May 2024 02:09:02 -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 1s62OD-0007Hh-HL for help-gnu-emacs@gnu.org; Sun, 12 May 2024 02:08:55 -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 1s62OC-0000jl-TV for help-gnu-emacs@gnu.org; Sun, 12 May 2024 02:08:53 -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=DkfhxNXxmrriYzCI5B7oKVANqBSnqcXLKOO6TYu6Kkg=; b=JfTEfciZROCl X3ejb8RXcCXHNNyiRPMYpOprcT/Zo7zyV2XJkwn9HkYMxNcl0Jhjf8ht6RADeyPVkByDpN/N+PBvd 6iQvdxX8X9xfKHC0zm0WAROzirrA9Tg98IYaKv5Y116AdOBR0+YSRGMYJKDGP61RNtxyBF6SBnmiU Tw9LDzgz3B7df/QovdV1YLfTB8VcA9MetkN6POufZmJtKghT1fnNIJrVysn+whPraThVJisJVdff2 M36sQ5814FyZIpZO+1+mANAQCDTbdwDYDlQ2MpcSMpzOpVCS8YXMoPcLz9oVFdb4IFcMLYnBXt3pM 1nKXafZU9W+AEY9HtamXzg==; In-Reply-To: (message from Heime on Sat, 11 May 2024 23:00:13 +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:146685 Archived-At: > Date: Sat, 11 May 2024 23:00:13 +0000 > From: Heime > Cc: help-gnu-emacs@gnu.org > > > 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. > > Briefly, window-specific scroll bars are to be customised via a package, rather > that directly by the user. No, that's not what I meant. What I meant was that Emacs currently doesn't have built-in commands to customize window-specific scroll bars. An add-on package could offer such commands, and then users who install that package will have such commands at their disposal. > Should packages change window-specific scroll bars using set-window-scroll-bars ? Yes. > And once changed, should only the package handle them rather than users using > the minor modes ? The package should resolve the issues with window-specific and frame-global settings of scroll bars in a way that makes sense to users. > Should there be many windows with specific scroll bar customisations, we cannot > usually rely on users to remember whether it happened through the global minor > mode or the package - would you agree ? No, I don't agree. The commands and features implemented by such a package should be able to take care of that without relying on the user's memory. The infrastructure exists already, for example in the form of scroll-bar-mode-hook and its ilk.