Subject: Re: bug#70864: 29.3; Typo in toggle-horizontal-scroll-bar docstring

From: Charalampos Mitrodimas <[email-masked]>
Date: Fri, 10 May 2024 22:14:55 +0000

Pierre Rouleau <[email-masked]> writes:

> I just noticed a small typo in toggle-horizontal-scroll-bar docstring.
> It currently is:
>
> "Toggle whether or not the selected frame has horizontal scroll bars.
> With ARG, turn vertical scroll bars on if and only if ARG is positive."
>
> It refers to *vertical* instead of *horizontal*.
>
> It's in Emacs 29.3 and in the main branch of the Git repo.

Hi Pierre,

Thanks! Patch attached.

--
C. Mitrodimas

>From 90bf7f2473c3c24d610fd6ac6d28a6469f25e1a9 Mon Sep 17 00:00:00 2001
From: Charalampos Mitrodimas <[email-masked]>
Date: Sat, 11 May 2024 00:39:49 +0300
Subject: [PATCH] Fix docstring for toggle-horizontal-scroll-bar

The docstring incorrectly mentioned "vertical scroll bars" instead of
"horizontal scroll bars".

* lisp/scroll-bar.el (toggle-horizontal-scroll-bar): Docstring change
"vertical scroll bars" to "horizontal scroll bars".
---
 lisp/scroll-bar.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/scroll-bar.el b/lisp/scroll-bar.el
index 1358bff6da8..e7efe180e59 100644
--- a/lisp/scroll-bar.el
+++ b/lisp/scroll-bar.el
@@ -188,7 +188,7 @@ toggle-scroll-bar
 
 (defun toggle-horizontal-scroll-bar (arg)
   "Toggle whether or not the selected frame has horizontal scroll bars.
-With ARG, turn vertical scroll bars on if and only if ARG is positive."
+With ARG, turn horizontal scroll bars on if and only if ARG is positive."
   (interactive "P")
   (if (null arg)
       (setq arg
-- 
2.39.2