all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [drew.adams@oracle.com: \\{...} produces duplicate entries]
@ 2007-05-07 23:27 Richard Stallman
  2007-05-08  0:46 ` Fwd: \\{...} produces duplicate entries Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Stallman @ 2007-05-07 23:27 UTC (permalink / raw)
  To: emacs-devel

It would be good to fix this for later installation.

------- Start of forwarded message -------
X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY 
	autolearn=failed version=3.1.0
From: "Drew Adams" <drew.adams@oracle.com>
To: "Emacs-Pretest-Bug" <emacs-pretest-bug@gnu.org>
Date: Sun, 6 May 2007 22:31:43 -0700
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Subject: \\{...} produces duplicate entries

emacs -Q

(define-key minibuffer-local-map [(control ?=)] 'foo)
(define-key minibuffer-local-completion-map [(control ?=)] 'foo)

(defun toto () "\\{minibuffer-local-completion-map}"  4)

C-h f toto shows a duplicate entry for C-=:

toto is a Lisp function.
(toto)

key             binding
- ---             -------

C-g		abort-recursive-edit
TAB		minibuffer-complete
C-j		exit-minibuffer
RET		exit-minibuffer
ESC		Prefix Command
SPC		minibuffer-complete-word
?		minibuffer-completion-help
C-=		foo
C-=		foo
...

Only a single C-= entry is present in Emacs 20 and Emacs 21.

In GNU Emacs 22.0.96.1 (i386-mingw-nt5.1.2600)
 of 2007-03-21 on LENNART-69DE564
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --cflags -Ic:/g/include'




_______________________________________________
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------

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

* Re: Fwd: \\{...} produces duplicate entries
  2007-05-07 23:27 [drew.adams@oracle.com: \\{...} produces duplicate entries] Richard Stallman
@ 2007-05-08  0:46 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2007-05-08  0:46 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

> (define-key minibuffer-local-map [(control ?=)] 'foo)
> (define-key minibuffer-local-completion-map [(control ?=)] 'foo)
[...]
> C-=		foo
> C-=		foo
> ...

> Only a single C-= entry is present in Emacs 20 and Emacs 21.

Actually, the bug is already present in Emacs-20.  It's just that in
Emacs-22, we have remove the duplication of bindings between
minibuffer-local-completion-map and minibuffer-local-map by making the first
inherit from the second.  If that same ineritance is added to Emacs-20, the
same bug will manifest itself.

This said, it should be fixed, of course.


        Stefan

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

end of thread, other threads:[~2007-05-08  0:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-07 23:27 [drew.adams@oracle.com: \\{...} produces duplicate entries] Richard Stallman
2007-05-08  0:46 ` Fwd: \\{...} produces duplicate entries Stefan Monnier

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.