Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Replicate the GUD tool bar (in tool-bar-mode) for convenient mouse usage #171

Open
phil-s opened this issue Nov 12, 2024 · 2 comments

Comments

@phil-s
Copy link

phil-s commented Nov 12, 2024

This would be a useful enhancement to the UI, and relevant icons are already included in Emacs.

E.g. gdb uses:

(setq-local tool-bar-map gud-tool-bar-map)

and the tool bar definition is:

(defvar gud-tool-bar-map
  (let ((map (make-sparse-keymap)))
    (dolist (x '((gud-break . "gud/break")
		 (gud-remove . "gud/remove")
		 (gud-print . "gud/print")
		 (gud-pstar . "gud/pstar")
		 (gud-pp . "gud/pp")
		 (gud-watch . "gud/watch")
		 (gud-run . "gud/run")
		 (gud-go . "gud/go")
		 (gud-stop-subjob . "gud/stop")
		 (gud-cont . "gud/cont")
		 (gud-until . "gud/until")
		 (gud-next . "gud/next")
		 (gud-step . "gud/step")
		 (gud-finish . "gud/finish")
		 (gud-nexti . "gud/nexti")
		 (gud-stepi . "gud/stepi")
		 (gud-up . "gud/up")
		 (gud-down . "gud/down")
		 (gud-goto-info . "info"))
	       map)
      (tool-bar-local-item-from-menu
       (car x) (cdr x) map gud-minor-mode-map))))
@svaante
Copy link
Owner

svaante commented Nov 13, 2024

Hey!

I agree! If you have the time and have done your FSF assignment feel free to submit an PR. If not I will get around to it eventually.

@phil-s
Copy link
Author

phil-s commented Nov 13, 2024

I've done my FSF copyright assignment for Emacs, yes. I'm not sure I'll get to it in a timely manner, so if you feel inspired then please do beat me to it :) Hopefully I can take a stab at it sometime soon, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants