unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Krystian Samp <samp.krystian@gmail.com>
To: 72825@debbugs.gnu.org
Subject: bug#72825: [PATCH] Fix the doc on setting tool-bar-mode at startup
Date: Mon, 26 Aug 2024 22:19:00 +0200	[thread overview]
Message-ID: <CAKsGKChzjit+QfocXsOFCD-eYpvN7dgW2SUW_AuDD31xVsMU+Q@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 574 bytes --]

Tags: patch

Emacs info doc states: "To control the use of tool bars at startup,
customize the variable `tool-bar-mode`."

`describe-variable` for `tool-bar-mode` states: "Setting this variable
directly does not take effect;" and suggests to customize it through a call
to `tool-bar-mode` function.

The latter seems to be the correct way. Setting `tool-bar-mode` variable in
init.el has no effect, but calling (tool-bar-mode -1) does work as
expected. Therefore, the patch changes the Emacs info doc to also suggest
customization through a function call.

Thanks,
Krystian

[-- Attachment #1.2: Type: text/html, Size: 722 bytes --]

[-- Attachment #2: 0001-Fix-the-doc-on-setting-tool-bar-mode-at-startup.patch --]
[-- Type: application/octet-stream, Size: 910 bytes --]

From c0ef9595302f0d7d581d5d6f4d883e0dee1e28ee Mon Sep 17 00:00:00 2001
From: Krystian Samp <samp.krystian@gmail.com>
Date: Mon, 26 Aug 2024 00:13:37 +0200
Subject: [PATCH] Fix the doc on setting tool-bar-mode at startup

---
 doc/emacs/frames.texi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/emacs/frames.texi b/doc/emacs/frames.texi
index b5f2c5f5e84..ab046126293 100644
--- a/doc/emacs/frames.texi
+++ b/doc/emacs/frames.texi
@@ -1316,7 +1316,7 @@ prevent this replacement from happening, customize the variable
 @vindex tool-bar-mode
   To toggle the use of tool bars, type @kbd{M-x tool-bar-mode}.  This
 command applies to all frames, including frames yet to be created.  To
-control the use of tool bars at startup, customize the variable
+control the use of tool bars at startup, call the function
 @code{tool-bar-mode}.
 
 @vindex tool-bar-style
-- 
2.39.3 (Apple Git-146)


             reply	other threads:[~2024-08-26 20:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-26 20:19 Krystian Samp [this message]
2024-08-27 10:50 ` bug#72825: [PATCH] Fix the doc on setting tool-bar-mode at startup Visuwesh
2024-08-27 12:19 ` Eli Zaretskii
2024-08-27 12:26   ` Krystian Samp
2024-08-29 12:09     ` Eli Zaretskii

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=CAKsGKChzjit+QfocXsOFCD-eYpvN7dgW2SUW_AuDD31xVsMU+Q@mail.gmail.com \
    --to=samp.krystian@gmail.com \
    --cc=72825@debbugs.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).