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: Glenn Morris
Subject: Re: [unicode-2] tmm-menubar breaks in org mode
Date: Thu, 12 Apr 2007 18:45:06 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Nick Roberts wrote:

> It fails on Emacs 22 too (it would be best if you checked this first).  I'm
> pretty sure it relates to my changes, but I'm not sure yet that the bug is
> in tmm.el.  org-mode has an awesome menubar!
[...]
> Looking at the local map, I see the keyword keymap in the list many times but
> not as a car.  Is that reasonable?

According to the lispref "Inheritance and Keymaps", yes. Eg:

(let ((map (make-sparse-keymap)))
       (set-keymap-parent map text-mode-map)
       map)

So how about this fix:

*** tmm.el      3 Apr 2007 10:09:45 -0000       1.52
--- tmm.el      12 Apr 2007 22:46:20 -0000
***************
*** 547,555 ****
          ;; the global list.
          (dolist (minor minorbind)
            (dolist (item (cdr minor))
!             (setq globalbind (assq-delete-all (car item) globalbind))))
          (dolist (item (cdr localbind))
!           (setq globalbind (assq-delete-all (car item) globalbind)))
  
          (setq globalbind (cons 'keymap globalbind))
          (setq allbind (cons globalbind (cons localbind minorbind)))
--- 547,555 ----
          ;; the global list.
          (dolist (minor minorbind)
            (dolist (item (cdr minor))
!               (setq globalbind (assq-delete-all (car-safe item) globalbind))))
          (dolist (item (cdr localbind))
!             (setq globalbind (assq-delete-all (car-safe item) globalbind)))
  
          (setq globalbind (cons 'keymap globalbind))
          (setq allbind (cons globalbind (cons localbind minorbind)))





reply via email to

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