unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Put hide-ifdef on menu-bar?
@ 2008-01-05  7:17 Nick Roberts
  2008-01-05  9:14 ` Dan Nicolaescu
  0 siblings, 1 reply; 17+ messages in thread
From: Nick Roberts @ 2008-01-05  7:17 UTC (permalink / raw)
  To: emacs-devel


Howa about adding the hide-ifdef commands to the menu bar for mortals,
like myself who can't remember the key bindings?


-- 
Nick                                           http://www.inet.net.nz/~nickrob


2008-01-05  Nick Roberts  <nickrob@snap.net.nz>

	* progmodes/hideif.el (hide-ifdef-mode-menu): Put hide-ifdef commands
	on menu bar.


*** hideif.el.~1.57.~	2007-07-27 09:22:52.000000000 +1200
--- hideif.el	2008-01-05 20:02:11.000000000 +1300
***************
*** 143,148 ****
--- 143,162 ----
      map)
    "Keymap used with `hide-ifdef-mode'.")
  
+ (easy-menu-define hide-ifdef-mode-menu hide-ifdef-mode-map
+   "Menu for `hide-ifdef-mode'."
+   '("Hide-Ifdef"
+     ["Hide some ifdefs" hide-ifdefs t]
+     ["Show all ifdefs" show-ifdefs t]
+     ["Hide ifdef block" hide-ifdef-block t]
+     ["Show ifdef block" show-ifdef-block t]
+     ["Define a variable" hide-ifdef-define t]
+     ["Define an alist" hide-ifdef-set-define-alist t]
+     ["Use an alist" hide-ifdef-use-define-alist t]
+     ["Undefine a variable" hide-ifdef-undef t]
+     ["Toggle read only" hide-ifdef-toggle-read-only
+               :style toggle :selected hide-ifdef-read-only]))
+ 
  (defvar hide-ifdef-hiding nil
    "Non-nil when text may be hidden.")

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

end of thread, other threads:[~2008-01-08 19:06 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-05  7:17 Put hide-ifdef on menu-bar? Nick Roberts
2008-01-05  9:14 ` Dan Nicolaescu
2008-01-05  9:58   ` Nick Roberts
2008-01-06  1:11     ` Dan Nicolaescu
2008-01-05 10:06   ` martin rudalics
2008-01-06  1:08     ` Dan Nicolaescu
2008-01-06  1:11       ` Tom Tromey
2008-01-06 10:42         ` Dan Nicolaescu
2008-01-06 20:32           ` Stefan Monnier
2008-01-06 21:21         ` Nick Roberts
2008-01-06 22:45           ` Tom Tromey
2008-01-07  1:34             ` Stefan Monnier
2008-01-07  1:36               ` Tom Tromey
2008-01-07 11:31             ` Richard Stallman
2008-01-07 12:27               ` David Kastrup
2008-01-08 19:06                 ` Richard Stallman
2008-01-07 11:31           ` Richard Stallman

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