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 18:01:44 +0300 Message-ID: <86le4fysyv.fsf@gnu.org> References: <86seyo3kkf.fsf@gnu.org> <86plts3g26.fsf@gnu.org> <86seyo1fda.fsf@gnu.org> <86cypr1s0c.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29314"; 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 17:02:34 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 1s6Aif-0007NO-P8 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 12 May 2024 17:02:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s6Ahz-0002oE-KY; Sun, 12 May 2024 11:01:51 -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 1s6Ahv-0002n9-BW for help-gnu-emacs@gnu.org; Sun, 12 May 2024 11:01:49 -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 1s6Ahu-0005sq-PL for help-gnu-emacs@gnu.org; Sun, 12 May 2024 11:01:47 -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=B5cA82NY+sig2ytRNuW75LS1HDRSbLfmpTg8tjSEsug=; b=AHtxJCI68+r4 +IBJ3z1x6ffxpMwl5e4fYZnX6rCVLQNWIsq2iLdAeyU3i+OtGkAFmXRdalR05Nh/w8Ub0oOJplYZl /O+Y0KdRKlLS8eplkO7kVzsFZXmTzbQFzuCIIBvelDkVQNDTPoV0nnzaFhUWFw7LlKUpEQimIKJnL gJ5t0hs4Tt0+teevhVnHwxWqT3VfySYGM9i3jeca6/OykWp2ZA/0/y8/R70e7EpQGLiKQl25m1fvF k63iKDIxojkjgGBGw30541mD7ZXkUWsx7JcqRJcD4uSVHDEgP6Yz7pFtsC3sbjLLRPj1S30mREqQd I2FOZPmQXyrFzK+rcdgdYQ==; In-Reply-To: (message from Heime on Sun, 12 May 2024 13:51:47 +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:146688 Archived-At: > Date: Sun, 12 May 2024 13:51:47 +0000 > From: Heime > Cc: help-gnu-emacs@gnu.org > > On Sunday, May 12th, 2024 at 6:08 PM, Eli Zaretskii wrote: > > > 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 > 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 ? By looking at the value returned by window-scroll-bars. > Would you be kind enough to show the specific use of scroll-bar-mode-hook and > its ilk for the purpose you have in mind, so I can develop it ? Sorry, I don't have time (and I don't really know what you'd like to do when frame's scroll-bars are changed). I can describe the idea: in the hook function use set-window-scroll-bars to change the window-specific scroll bars according to what you want.