all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: John Wiegley <johnw@newartisans.com>, Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: keys with meta-prefix cannot be longer than two chars?
Date: Thu, 22 Oct 2015 17:47:41 +0300	[thread overview]
Message-ID: <83r3knt0xe.fsf@gnu.org> (raw)
In-Reply-To: <m237x441d7.fsf@newartisans.com>

> From: "John Wiegley" <johnw@newartisans.com>
> Date: Wed, 21 Oct 2015 09:45:08 -0700
> 
> >>>>> Artur Malabarba <bruce.connor.am@gmail.com> writes:
> 
> > One bug though: keys with meta-prefix cannot be longer than two chars.
> 
> > That last sentence is intriguing. I tested with this snippet and it didn't
> > hold true for me. (define-key isearch-mode-map "\M-6lo" (lambda ()
> > (interactive) (message "HI")))
> 
> > Does anyone know its origin and may I delete it?
> 
> I don't know its origin. If no one else pipes up, and you've demonstrated it
> works, please do delete.

Note that it says "longer than two chars", and I wonder whether it
means excluding the prefix char.

Anyway, this comment was written by Richard (CC'ed), so perhaps he
could remember what was the intent, although it was very long ago.

Richard, this is about the following comment from isearch.el:

  ;;; Commentary:

  ;; Instructions

  ;; For programmed use of isearch-mode, e.g. calling (isearch-forward),
  ;; isearch-mode behaves modally and does not return until the search
  ;; is completed.  It uses a recursive-edit to behave this way.

  ;; The key bindings active within isearch-mode are defined below in
  ;; `isearch-mode-map' which is given bindings close to the default
  ;; characters of the original isearch.el.  With `isearch-mode',
  ;; however, you can bind multi-character keys and it should be easier
  ;; to add new commands.  One bug though: keys with meta-prefix cannot
  ;; be longer than two chars.^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     ^^^^^^^^^^^^^^^^^^^^^^^^

Judging by the commit where this was added, it was some merge with an
isearch-related package that was absorbed into isearch.el.  You can
see the diffs with this command:

   git show 08200510




      reply	other threads:[~2015-10-22 14:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-21 15:07 keys with meta-prefix cannot be longer than two chars? Artur Malabarba
2015-10-21 16:45 ` John Wiegley
2015-10-22 14:47   ` Eli Zaretskii [this message]

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=83r3knt0xe.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=johnw@newartisans.com \
    --cc=rms@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 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.