Eli, Visuwesh

Thanks. I interpreted it as using setq, but info says 'customize the variable' which refers to what you are pointing. So this is misinterpretation on my side!

This can be closed :)

Thanks for the comments!

On Tue, 27 Aug 2024 at 14:19, Eli Zaretskii <eliz@gnu.org> wrote:
> From: Krystian Samp <samp.krystian@gmail.com>
> Date: Mon, 26 Aug 2024 22:19:00 +0200
>
> 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.

When Emacs documentation says "customize the variable", it usually
means to invoke "M-x customize-variable RET".  (In newer versions of
Emacs you can also use 'setopt' in your init file.)

So I think this is a kind of misinterpretation of what the manual
says.

Thanks.