From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.devel Subject: Re: buffer-local keymaps Date: Thu, 12 Jan 2012 13:08:48 -0600 Message-ID: <20239.12224.814237.491301@gargle.gargle.HOWL> References: <20238.58214.589922.778218@gargle.gargle.HOWL> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1326395346 10547 80.91.229.12 (12 Jan 2012 19:09:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 12 Jan 2012 19:09:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 12 20:09:02 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RlQ1F-000693-Ot for ged-emacs-devel@m.gmane.org; Thu, 12 Jan 2012 20:09:01 +0100 Original-Received: from localhost ([::1]:40745 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlQ1F-0000nG-5N for ged-emacs-devel@m.gmane.org; Thu, 12 Jan 2012 14:09:01 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:54862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlQ19-0000kw-K4 for emacs-devel@gnu.org; Thu, 12 Jan 2012 14:08:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RlQ18-0006Tm-2z for emacs-devel@gnu.org; Thu, 12 Jan 2012 14:08:55 -0500 Original-Received: from essmail.ess.niu.edu ([131.156.1.18]:55023) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlQ17-0006TP-V4 for emacs-devel@gnu.org; Thu, 12 Jan 2012 14:08:54 -0500 Original-Received: from regnitz (lukas.physics.niu.edu [131.156.85.221]) by essmail.ess.niu.edu (8.14.3/8.14.3) with ESMTP id q0CJ8mLC016301; Thu, 12 Jan 2012 13:08:50 -0600 (CST) In-Reply-To: X-Mailer: VM 8.2 trial under 24.0.92.1 (x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 131.156.1.18 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:147630 Archived-At: 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