[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: local keymap patch for key-binding

From: David Kastrup
Subject: Re: local keymap patch for key-binding
Date: Mon, 11 Sep 2006 09:05:59 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Chong Yidong <address@hidden> writes:

> David Kastrup <address@hidden> writes:
>>> C-h k followed by mouse-1 on the overlay, display string, or text
>>> propertized region all report the correct action for the given local
>>> keymap.
>> Uh, C-h k has extra code doing this sort of lookup.  It does not rely
>> on key-binding.
> It also works with (setq foo (read-key-sequence ""))
>> Do you have an idea why the stuff in read-key-sequence concerning
>> mouse related maps appears so much more complicated?  Or is it just
>> me?  Some complication, of course, is due to read-key-sequence
>> having to _assemble_ a key sequence instead of merely looking it up.
> What you said.

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)])
  byte-code("ÆÇ:address@hidden       @       
A#ˆA‰‚*ÉÊ!„(È\nËÌ#ˆÍÎÏ\"ˆƒMÐÇ\f:address@hidden @       A#ˆ\fA‰‚6*Ñ
BÒÑ!„\\ÓÑÇ\"ˆÔÑ!ˆÕÖ!‡" [--cl-var-- x reftex-mode-map reftex-extra-bindings 
--cl-var-- current-load-list (("=" . reftex-toc) ("-" . reftex-toc-recenter) 
("(" . reftex-label) (")" . reftex-reference) ("[" . reftex-citation) ("<" 
. reftex-index) (">" . reftex-display-index) ("/" . 
reftex-index-selection-or-word) ("\\" . reftex-index-phrase-selection-or-word) 
("|" . reftex-index-visit-phrases-buffer) ("&" . reftex-view-crossref)) nil 
define-key key-binding [(shift mouse-2)] [(shift mouse-2)] 
reftex-mouse-view-crossref eval-after-load "bibtex" (define-key bibtex-mode-map 
"&" (quote reftex-view-crossref-from-bibtex)) (("t" . reftex-toc) ("l" . 
reftex-label) ("r" . reftex-reference) ("c" . reftex-citation) ("v" . 
reftex-view-crossref) ("g" . reftex-grep-document) ("s" . 
reftex-search-document)) reftex-isearch-minor-mode default-boundp set-default 
make-variable-buffer-local require easymenu] 5)
  run-hooks(text-mode-hook TeX-mode-hook LaTeX-mode-hook)
  apply(run-hooks (text-mode-hook TeX-mode-hook LaTeX-mode-hook))
  TeX-run-mode-hooks(text-mode-hook TeX-mode-hook LaTeX-mode-hook)

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

[Prev in Thread] Current Thread [Next in Thread]