all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Elena <egarrulo@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Scanning keymaps for keybindings
Date: Wed, 10 Nov 2010 03:08:05 -0800 (PST)	[thread overview]
Message-ID: <a6864627-0d9d-413c-aa4d-35a8cdb17bb8@c39g2000yqi.googlegroups.com> (raw)
In-Reply-To: 87oc9yf4bo.fsf@kuiper.lan.informatimago.com

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.  All you can do is to try to collect some keymap objects at
> some specific time.  And 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 :-(


  parent reply	other threads:[~2010-11-10 11:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <f63f2762-b0c0-45d4-a421-ca1fc1911fc4@a9g2000pro.googlegroups.com>
2010-11-09 20:37 ` Scanning keymaps for keybindings despen
     [not found]   ` <f7cba2f3-7cc9-4b6e-a62a-53fb6bae8aa6@u10g2000yqk.googlegroups.com>
2010-11-09 21:31     ` despen
     [not found]       ` <87c203d6-9a60-494e-8652-a5d47151b0ae@u10g2000yqk.googlegroups.com>
     [not found]         ` <8739rab1qf.fsf@fh-trier.de>
2010-11-09 22:17           ` Elena
     [not found]     ` <87eiaucgpf.fsf@puma.rapttech.com.au>
2010-11-09 22:10       ` Elena
     [not found] ` <87oc9yf4bo.fsf@kuiper.lan.informatimago.com>
2010-11-10 11:08   ` Elena [this message]
     [not found] ` <jwv4obpqczb.fsf-monnier+gnu.emacs.help@gnu.org>
2010-11-10 19:41   ` Elena

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a6864627-0d9d-413c-aa4d-35a8cdb17bb8@c39g2000yqi.googlegroups.com \
    --to=egarrulo@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.