From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Elena Newsgroups: gmane.emacs.help Subject: Re: Scanning keymaps for keybindings Date: Wed, 10 Nov 2010 03:08:05 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <87oc9yf4bo.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291884430 1965 80.91.229.12 (9 Dec 2010 08:47:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 08:47:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 09:47:05 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQc9Y-00031O-FN for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 09:47:04 +0100 Original-Received: from localhost ([127.0.0.1]:43674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQc9X-0003MG-9U for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 03:47:03 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!c39g2000yqi.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: 89.96.190.244 Original-X-Trace: posting.google.com 1289387285 24868 127.0.0.1 (10 Nov 2010 11:08:05 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 10 Nov 2010 11:08:05 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c39g2000yqi.googlegroups.com; posting-host=89.96.190.244; posting-account=AFCLjAoAAABJAOf_HjgEEEi3ty-lG5m2 User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.80 (Windows NT 5.1; U; en) Presto/2.6.30 Version/10.63,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:182309 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76886 Archived-At: On 9 Nov, 23:46, p...@informatimago.com (Pascal J. Bourguignon) wrote: > It means that there may exist a lot of keymaps that are not bound to any > variable, but that will nontheless be activated upon a mode change (and > then accessible via the current-active-maps function). > > More over, a mode may very well compute its keymaps dynamically, when it > is activated or at some other time. > > So there is no way to get an exhaustive list of keymaps with a static > analysis. =A0All you can do is to try to collect some keymap objects at > some specific time. =A0And perhaps try again later. How true! Being stucked on keymap scanning, I thought I'd just write a simpler function with a regex guessing based search. The first command I have tried is `ido-prev-work-directory', bound to "M-p". I thought it should have existed a keymap variable whose name would match "ido-.*-map", but according to `describe-variable' there isn't any. Digging into "ido.el", showed such function was being bound by `ido-init-completion-maps', thus requiring source modification, I think. Hard times in Emacs for keyboard remappers :-(