all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu>
Cc: Stefan Monnier <monnier+gnu/emacs@rum.cs.yale.edu>
Subject: Re: bug/feature - emacs doesn't tell you about keys with multiple prefixes
Date: Tue, 18 Mar 2003 11:16:20 -0500	[thread overview]
Message-ID: <200303181616.h2IGGLjN018636@rum.cs.yale.edu> (raw)
In-Reply-To: E18vH2I-0000ft-00@fencepost.gnu.org

> The new code has a bug: it finds just the last occurrence of the same
> keymap and tests whether the prefix for that occurrence is an initial
> segment.  What if the last occurrence isn't but another occurrence is?
> In that case, it won't detect the cycle.  I suspect that when M-a,
> M-b, and M-a M-b are the same keymap, this code won't compare the M-a
> with the M-a M-b.
> 
> It can't use rassq now; it has to check each previous occurrence of the same
> keymap.

Huh?! That's exactly what the code does.  I verified it correcly
breaks such cycles before posting the message.
And there's even a comment about it.


	Stefan

  reply	other threads:[~2003-03-18 16:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-02  8:59 bug/feature - emacs doesn't tell you about keys with multiple prefixes Karl Chen
2003-03-16 10:14 ` Stefan Monnier
2003-03-17  4:52   ` Richard Stallman
2003-03-17 16:35     ` Stefan Monnier
2003-03-18 13:21       ` Richard Stallman
2003-03-18 16:16         ` Stefan Monnier [this message]
2003-03-20  8:45           ` Richard Stallman

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=200303181616.h2IGGLjN018636@rum.cs.yale.edu \
    --to=monnier+gnu/emacs@rum.cs.yale.edu \
    /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.