[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: buffer-local keymaps
From: |
Stefan Monnier |
Subject: |
Re: buffer-local keymaps |
Date: |
Thu, 12 Jan 2012 10:59:50 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) |
> 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.
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).
Stefan