From: Christopher Monsanto <chris@monsan.to>
To: 11840@debbugs.gnu.org
Subject: bug#11840: 24.1.50; nil keymap element on high priority overlay should fallthrough to low priority overlay
Date: Sun, 1 Jul 2012 23:25:31 -0400 [thread overview]
Message-ID: <CAC5n7TEJ0SO9zie9s0pc20ZT8Nc6XvVSTfsvFG2HLTa7c=vMuw@mail.gmail.com> (raw)
In-Reply-To: <87sjdavoe4.fsf@monsan.to>
One more symptom, and I doubt this could be anything but a bug: if you
delete the high priority overlay, we *still* don't use the lower
priority overlay's keymap!
Try this:
(setq m (make-sparse-keymap))
(define-key m "k" '(lambda nil (interactive) (message "overlay 1")))
(setq m2 (make-sparse-keymap))
(define-key m2 "k" nil)
(let ((o (make-overlay 0 5))
(o2 (make-overlay 0 5)))
(overlay-put o 'keymap m)
(overlay-put o 'priority 100)
(overlay-put o2 'keymap m2)
(overlay-put o2 'priority 9999)
(delete-overlay o2))
eval-buffer again, and k self inserts. If we never create the second
overlay, it prints the msg.
next prev parent reply other threads:[~2012-07-02 3:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-02 3:21 bug#11840: 24.1.50; nil keymap element on high priority overlay should fallthrough to low priority overlay Christopher Monsanto
2012-07-02 3:25 ` Christopher Monsanto [this message]
2012-07-02 14:39 ` Stefan Monnier
2012-07-02 16:32 ` Christopher Monsanto
2012-07-02 18:21 ` Stefan Monnier
2021-09-07 17:36 ` Lars Ingebrigtsen
2021-10-06 9:33 ` Lars Ingebrigtsen
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='CAC5n7TEJ0SO9zie9s0pc20ZT8Nc6XvVSTfsvFG2HLTa7c=vMuw@mail.gmail.com' \
--to=chris@monsan.to \
--cc=11840@debbugs.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).