From: Nick Roberts <nickrob@snap.net.nz>
To: emacs-devel@gnu.org
Subject: Put hide-ifdef on menu-bar?
Date: Sat, 5 Jan 2008 20:17:38 +1300 [thread overview]
Message-ID: <18303.12050.877970.348893@kahikatea.snap.net.nz> (raw)
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.")
next reply other threads:[~2008-01-05 7:17 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-05 7:17 Nick Roberts [this message]
2008-01-05 9:14 ` Put hide-ifdef on menu-bar? 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
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=18303.12050.877970.348893@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=emacs-devel@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).