emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [unicode-2] tmm-menubar breaks in org mode


From: Carsten Dominik
Subject: Re: [unicode-2] tmm-menubar breaks in org mode
Date: Fri, 13 Apr 2007 06:20:33 +0200


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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]