all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* adding to the tool bar?
@ 2021-05-17  6:41 David Masterson
  2021-05-17  7:38 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: David Masterson @ 2021-05-17  6:41 UTC (permalink / raw)
  To: help-gnu-emacs

I'd like to learn how to create and/or update a toolbar.  I see in
"(emacs) Tool Bars" some talk about how to turn toolbars on and off, but
I don't see the process for (say) updating the default toolbar to add my
own commands.  Where should I look?

(similarly for menubars)

-- 
David Masterson



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: adding to the tool bar?
  2021-05-17  6:41 adding to the tool bar? David Masterson
@ 2021-05-17  7:38 ` Eli Zaretskii
  2021-05-19  3:18   ` David Masterson
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2021-05-17  7:38 UTC (permalink / raw)
  To: help-gnu-emacs

> From: David Masterson <dsmasterson92630@outlook.com>
> Date: Sun, 16 May 2021 23:41:07 -0700
> 
> I'd like to learn how to create and/or update a toolbar.  I see in
> "(emacs) Tool Bars" some talk about how to turn toolbars on and off, but
> I don't see the process for (say) updating the default toolbar to add my
> own commands.  Where should I look?

I'd start in "(elisp) Tool Bar", and also study tool-bar.el.

> (similarly for menubars)

"(elisp) Menu Keymaps" is a good starting point.

In general, since this is not user-level stuff, the right place to
look is in the ELisp manual.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: adding to the tool bar?
  2021-05-17  7:38 ` Eli Zaretskii
@ 2021-05-19  3:18   ` David Masterson
  2021-05-19 11:27     ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: David Masterson @ 2021-05-19  3:18 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

Eli Zaretskii <eliz@gnu.org> writes:

>> From: David Masterson <dsmasterson92630@outlook.com>
>> Date: Sun, 16 May 2021 23:41:07 -0700
>> 
>> I'd like to learn how to create and/or update a toolbar.  I see in
>> "(emacs) Tool Bars" some talk about how to turn toolbars on and off, but
>> I don't see the process for (say) updating the default toolbar to add my
>> own commands.  Where should I look?
>
> I'd start in "(elisp) Tool Bar", and also study tool-bar.el.
>
>> (similarly for menubars)
>
> "(elisp) Menu Keymaps" is a good starting point.
>
> In general, since this is not user-level stuff, the right place to
> look is in the ELisp manual.

How do you inspect a menu-bar or tool-bar (like describe-variable) to
determine it's structure and what functions it is calling?  That's
usually a goo way of learning how these things work.  I see the
functions used to create/add-to a menu-bar/tool-bar in the Elisp manual,
but not inspection tools.

-- 
David Masterson



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: adding to the tool bar?
  2021-05-19  3:18   ` David Masterson
@ 2021-05-19 11:27     ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2021-05-19 11:27 UTC (permalink / raw)
  To: help-gnu-emacs

> From: David Masterson <dsmasterson92630@outlook.com>
> Cc: help-gnu-emacs@gnu.org
> Date: Tue, 18 May 2021 20:18:36 -0700
> 
> How do you inspect a menu-bar or tool-bar (like describe-variable) to
> determine it's structure and what functions it is calling?  That's
> usually a goo way of learning how these things work.  I see the
> functions used to create/add-to a menu-bar/tool-bar in the Elisp manual,
> but not inspection tools.

They are keybindings, so the usual functions, like lookup-key
etc. would be my first try.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-05-19 11:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-17  6:41 adding to the tool bar? David Masterson
2021-05-17  7:38 ` Eli Zaretskii
2021-05-19  3:18   ` David Masterson
2021-05-19 11:27     ` Eli Zaretskii

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.