On Apr 13, 2007, at 0:39, Nick Roberts wrote:

Looking at the local map, I see the keyword keymap in the list many times but not as a car. Is that reasonable? I can't find the entries that follow them in the menubar, i.e, "Headings", "Up", "Show All" and "Hide Leaves" which
look like they should appear under the "Tbl" top level menu item.

Carsten,

Does this keymap look right to you?

Well, here is what org-mode does:

Org-mode is derived from outline-mode, which means that it also
inherits the "Show", "Hide", and "Headings" menus.  Now, org-mode
has much better ways of changing visibility in a buffer,
so I want to get rid of these menus, before I install org-mode's
own menus ("Org" and "Tbl").

Here is the code that does this:

(define-key org-mode-map [menu-bar headings] 'undefined)
(define-key org-mode-map [menu-bar hide] 'undefined)
(define-key org-mode-map [menu-bar show] 'undefined))

(easy-menu-add org-org-menu)
(easy-menu-add org-tbl-menu)

I always thought that this would get properly get rid of these
menus, but looking at the keymap I agree that this does not
seem to be done cleanly.

If there is a better way to remove the outline-mode stuff from
the keymap, I definitely would like to know about it.

- Carsten



_______________________________________________
emacs-pretest-bug mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to