From: Heime <heimeborgia@protonmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Improving Scroll Bar Tools
Date: Sat, 11 May 2024 15:38:54 +0000 [thread overview]
Message-ID: <NlfwtlLjC6o2810G1yOWQSUs8WGmnNmxgxMEne68rtaaUKEfmLpK7ilnTFOc9R8gaFHALJhQwIibLIxlScLpw_b5yUBwwrMRNrHnQ-B4Ujs=@protonmail.com> (raw)
In-Reply-To: <86plts3g26.fsf@gnu.org>
Sent with Proton Mail secure email.
On Saturday, May 11th, 2024 at 8:31 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> > Date: Sat, 11 May 2024 07:28:33 +0000
> > From: Heime heimeborgia@protonmail.com
> > Cc: help-gnu-emacs@gnu.org
> >
> > Sent with Proton Mail secure email.
> >
> > On Saturday, May 11th, 2024 at 6:54 PM, Eli Zaretskii eliz@gnu.org wrote:
> >
> > > > Date: Sat, 11 May 2024 00:12:11 +0000
> > > > From: Heime heimeborgia@protonmail.com
> > > > Cc: Po Lu luangruo@yahoo.com,
> > > > Heime via Users list for the GNU Emacs text editor help-gnu-emacs@gnu.org
> > > >
> > > > I have seen that applying vertical and horizontal scroll bars with
> > > >
> > > > (set-window-scroll-bars (selected-window) nil 'right nil 'bottom nil)
> > > >
> > > > will not let the following to take complete effect an all windows in frame
> > > >
> > > > (scroll-bar-mode 1)
> > > > (horizontal-scroll-bar-mode 0)
> > >
> > > The ELisp manual clearly says that set-window-scroll-bars overrides
> > > the frame-specific settings of scroll bars.
> >
> > This is a problem because if one forgets changing some window with
> > set-window-scroll-bars, and the modes do not work, it is a problem.
> >
> > If one wants to remove horizontal scroll in all windows in frame,
> > the command should be expected to do so, nothwithstanding any
> > previous changes with a different command (e.g. set-window-scroll-bars).
>
>
> 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 ?
> 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.
next prev parent reply other threads:[~2024-05-11 15:38 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-10 10:40 Improving Scroll Bar Tools Heime
2024-05-10 12:46 ` Po Lu
2024-05-10 13:28 ` Heime
2024-05-10 13:42 ` Po Lu
2024-05-10 14:09 ` Heime
2024-05-10 22:59 ` Heime
2024-05-11 0:12 ` Heime
2024-05-11 6:54 ` Eli Zaretskii
2024-05-11 7:28 ` Heime
2024-05-11 7:37 ` Heime
2024-05-11 8:36 ` Eli Zaretskii
2024-05-11 8:31 ` Eli Zaretskii
2024-05-11 15:38 ` Heime [this message]
2024-05-11 16:29 ` Eli Zaretskii
2024-05-11 23:00 ` Heime
2024-05-12 6:08 ` Eli Zaretskii
2024-05-12 13:51 ` Heime
2024-05-12 15:01 ` Eli Zaretskii
2024-05-12 16:10 ` Heime
2024-05-12 17:11 ` Eli Zaretskii
2024-05-12 17:28 ` Heime
2024-05-12 17:49 ` Eli Zaretskii
2024-05-15 8:50 ` Jean Louis
2024-05-15 20:16 ` Emanuel Berg
2024-05-18 13:37 ` Heime
2024-05-23 10:30 ` Emanuel Berg
2024-05-15 21:27 ` Heime
2024-05-16 8:43 ` Jean Louis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='NlfwtlLjC6o2810G1yOWQSUs8WGmnNmxgxMEne68rtaaUKEfmLpK7ilnTFOc9R8gaFHALJhQwIibLIxlScLpw_b5yUBwwrMRNrHnQ-B4Ujs=@protonmail.com' \
--to=heimeborgia@protonmail.com \
--cc=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).