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: Sun, 12 May 2024 13:51:47 +0000 Message-ID: References: <86seyo3kkf.fsf@gnu.org> <86plts3g26.fsf@gnu.org> <86seyo1fda.fsf@gnu.org> <86cypr1s0c.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="13695"; 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 15:52:32 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 1s69cu-0003Ln-2I for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 12 May 2024 15:52:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s69cN-0005tr-1s; Sun, 12 May 2024 09:51:59 -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 1s69cL-0005ti-Bp for help-gnu-emacs@gnu.org; Sun, 12 May 2024 09:51:57 -0400 Original-Received: from mail-4324.protonmail.ch ([185.70.43.24]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s69cI-0006lf-VO; Sun, 12 May 2024 09:51:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1715521911; x=1715781111; bh=UxFCWDjvoM2RvcdSmJLkbyoWqSypLIZHHf3BYd31pIk=; 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=I8pXELgfObNZRlbEL/k9lU2HMoT84SX3LjtcWr+D0h/iDCUrOIQ6Q4qJufyhwI9ZI 3kIDz+39llop8kSFVovaf8jQx6D+L0OsC4prHvAOuAl/57TdRvkojPedpc7ayAq9h6 aOKHy4bwOPICUC96OFgShSBFuT/Wom2PeeXqSZBjucxmXGGN91U2m0NQQmUjayRp7Q c2kvvzQ9jnu0J6Q2AYX8Qcevy33dIY7SdJU6lZkO9moimU8n5Q6rnj3tSv2Tljtf2J +tsuVsjLDA8Iwhuc4OJjJQiNuKIxwg6gFwEhtO8AwUmVTlfDV/XQP9ekjrBTji0Rwt HicE1cHZH0YZQ== In-Reply-To: <86cypr1s0c.fsf@gnu.org> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 033629f2b3ba0213bbe018900b34d3ddb42449e0 Received-SPF: pass client-ip=185.70.43.24; envelope-from=heimeborgia@protonmail.com; helo=mail-4324.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.01, RCVD_IN_MSPIKE_WL=-0.01, 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:146687 Archived-At: On Sunday, May 12th, 2024 at 6:08 PM, Eli Zaretskii wrote: > > Date: Sat, 11 May 2024 23:00:13 +0000 > > From: Heime heimeborgia@protonmail.com > > Cc: help-gnu-emacs@gnu.org > >=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 mo= des, > > > > > they each one have a hook, which could be used to turn off > > > > > window-specific scroll bars. However, I don't recommend that beca= use > > > > > 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 b= ars that > > > > users customised. > > >=20 > > > That is the current arrangement, yes. Window-specific scroll bars > > > take precedence over the frame-global settings. > >=20 > > Briefly, window-specific scroll bars are to be customised via a package= , rather > > that directly by the user. >=20 >=20 > 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. >=20 > > Should packages change window-specific scroll bars using set-window-scr= oll-bars ? >=20 >=20 > Yes. >=20 > > And once changed, should only the package handle them rather than users= using > > the minor modes ? >=20 >=20 > The package should resolve the issues with window-specific and > frame-global settings of scroll bars in a way that makes sense to > users. >=20 > > Should there be many windows with specific scroll bar customisations, w= e cannot > > usually rely on users to remember whether it happened through the globa= l minor > > mode or the package - would you agree ? >=20 > 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. My point was identical - the package should take care of things without=20 relying upon the user's memory. I tried using my memory and it was awful. How can a package know whether a window-specific setting was introduced by set-window-scroll-bars ? Would you be kind enough to show the specific use of scroll-bar-mode-hook a= nd=20 its ilk for the purpose you have in mind, so I can develop it ?