unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* keys with meta-prefix cannot be longer than two chars?
@ 2015-10-21 15:07 Artur Malabarba
  2015-10-21 16:45 ` John Wiegley
  0 siblings, 1 reply; 3+ messages in thread
From: Artur Malabarba @ 2015-10-21 15:07 UTC (permalink / raw)
  To: emacs-devel

The following is quoted from the header comments in isearch.el

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

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?



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: keys with meta-prefix cannot be longer than two chars?
  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
  0 siblings, 1 reply; 3+ messages in thread
From: John Wiegley @ 2015-10-21 16:45 UTC (permalink / raw)
  To: emacs-devel

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

John



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: keys with meta-prefix cannot be longer than two chars?
  2015-10-21 16:45 ` John Wiegley
@ 2015-10-22 14:47   ` Eli Zaretskii
  0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2015-10-22 14:47 UTC (permalink / raw)
  To: John Wiegley, Richard Stallman; +Cc: emacs-devel

> 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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-22 14:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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