[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: buffer-local keymaps
From: |
Roland Winkler |
Subject: |
Re: buffer-local keymaps |
Date: |
Thu, 12 Jan 2012 13:08:48 -0600 |
On Thu Jan 12 2012 Stefan Monnier wrote:
> > A proper solution of bug#10254 (a bug in lisp/textmodes/bibtex.el)
> > requires that bibtex-mode uses not only buffer-local variables but
> > also buffer-local keymaps (for buffer-local menus).
>
> There are many different ways to answer this question I think.
> If the differences are limited to menus, you can use a single keymap and
> rely on things like :filter, :enable, ... to dynamically adapt the
> menu's content to the buffer's state.
Thanks!
Yes, menus are all I have in mind. So such adaption of a single
keymap might be a better solution ...
> Otherwise, you can simply use-local-map with a different map in each
> buffer (I'd expect those maps to share a common ancestor, of course).
... than local keymaps. I'll look into this.
Roland