all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Christopher Monsanto <chris@monsan.to>
Cc: 11840@debbugs.gnu.org
Subject: bug#11840: 24.1.50; nil keymap element on high priority overlay should fallthrough to low priority overlay
Date: Tue, 07 Sep 2021 19:36:33 +0200	[thread overview]
Message-ID: <87h7ewb84e.fsf@gnus.org> (raw)
In-Reply-To: <CAC5n7TEJ0SO9zie9s0pc20ZT8Nc6XvVSTfsvFG2HLTa7c=vMuw@mail.gmail.com> (Christopher Monsanto's message of "Sun, 1 Jul 2012 23:25:31 -0400")

Christopher Monsanto <chris@monsan.to> writes:

> 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.

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

I'm unable to reproduce this in Emacs 28 -- if I hit `k', I get the
message (as expected).  Are you still seeing this issue in recent Emacs
versions?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  parent reply	other threads:[~2021-09-07 17:36 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
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 [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h7ewb84e.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=11840@debbugs.gnu.org \
    --cc=chris@monsan.to \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.