From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: local keymap patch for key-binding Date: Mon, 11 Sep 2006 12:11:04 +0200 Message-ID: <85ejuiiuh3.fsf@lola.goethe.zz> References: <87slj1hybl.fsf@stupidchicken.com> <85pse5cbqw.fsf@lola.goethe.zz> <87zmd7yjq4.fsf@furball.mit.edu> <85pse3n99c.fsf@lola.goethe.zz> <87r6yjxh7k.fsf@furball.mit.edu> <85venuc27c.fsf@lola.goethe.zz> <85r6yiivi7.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1157969495 8706 80.91.229.2 (11 Sep 2006 10:11:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Sep 2006 10:11:35 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 11 12:11:32 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GMilB-0000ip-KK for ged-emacs-devel@m.gmane.org; Mon, 11 Sep 2006 12:11:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMilB-0008Qa-15 for ged-emacs-devel@m.gmane.org; Mon, 11 Sep 2006 06:11:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GMikx-0008Ps-6I for emacs-devel@gnu.org; Mon, 11 Sep 2006 06:11:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GMikw-0008Pg-JY for emacs-devel@gnu.org; Mon, 11 Sep 2006 06:11:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMikw-0008Pd-GG for emacs-devel@gnu.org; Mon, 11 Sep 2006 06:11:10 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GMimB-0003EN-Rs for emacs-devel@gnu.org; Mon, 11 Sep 2006 06:12:27 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1GMikv-000558-9r; Mon, 11 Sep 2006 06:11:09 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 927AD1C40B5C; Mon, 11 Sep 2006 12:11:04 +0200 (CEST) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: <85r6yiivi7.fsf@lola.goethe.zz> (David Kastrup's message of "Mon\, 11 Sep 2006 11\:48\:48 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:59668 Archived-At: David Kastrup writes: > storm@cua.dk (Kim F. Storm) writes: > >> David Kastrup writes: >> >>> Well, it does not seem just as easy as that. I now can't start >>> RefTeX anymore without getting the error: >>> >>> Debugger entered--Lisp error: (wrong-type-argument sequencep mouse-2) >>> key-binding([(shift mouse-2)]) >> >> Should be fixed now. > > Hm, looks like it works now. I have removed string-key-binding from > help.el (it is no longer necessary) and the results appear fine to me. > > Since we want to get good testing for the key-binding stuff, I'll > check this change to help.el in. Ok, here I triggered a problem: I used C-h k (with the new help.el) followed by a mouse-2 click on an overlay's 'before-string which has its own 'keymap and 'display properties (the string, not the overlay). I get Debugger entered--Lisp error: (args-out-of-range 806 806) key-binding([(mouse-2 (# 806 ... -61397984 ... 806 ... ... ... ...))] t) describe-key([(mouse-2 (# 806 ... -61397984 ... 806 ... ... ... ...))] 1 nil) call-interactively(describe-key) It would appear that 806 is the buffer position, and I would guess that this is erroneously used as in index into the before-string property of the overlay. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum