From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Combining face and map stuff Date: Sun, 03 Oct 2010 00:16:16 -0400 Message-ID: <87aamv3o8f.fsf@stupidchicken.com> References: <87lj6gsgyt.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1286079785 20916 80.91.229.12 (3 Oct 2010 04:23:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 3 Oct 2010 04:23:05 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 03 06:23:04 2010 Return-path: Envelope-to: ged-emacs-devel@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 1P2G6J-0004Dq-1g for ged-emacs-devel@m.gmane.org; Sun, 03 Oct 2010 06:23:03 +0200 Original-Received: from localhost ([127.0.0.1]:36321 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P2G6I-0003OF-Cg for ged-emacs-devel@m.gmane.org; Sun, 03 Oct 2010 00:23:02 -0400 Original-Received: from [140.186.70.92] (port=49043 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P2G69-0003Lm-Bx for emacs-devel@gnu.org; Sun, 03 Oct 2010 00:22:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P2Fzt-0006rx-QX for emacs-devel@gnu.org; Sun, 03 Oct 2010 00:16:30 -0400 Original-Received: from pantheon-po43.its.yale.edu ([130.132.50.104]:35702) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P2Fzt-0006rt-Mo for emacs-devel@gnu.org; Sun, 03 Oct 2010 00:16:25 -0400 Original-Received: from furry (adsl-99-111-197-225.dsl.wlfrct.sbcglobal.net [99.111.197.225]) (authenticated bits=0) by pantheon-po43.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o934GHd8026299 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 3 Oct 2010 00:16:24 -0400 Original-Received: by furry (Postfix, from userid 1000) id D3E57C018; Sun, 3 Oct 2010 00:16:16 -0400 (EDT) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sat, 02 Oct 2010 18:41:21 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:131273 Archived-At: Lars Magne Ingebrigtsen writes: > Chong Yidong writes: > >> Easiest way is probably to use overlay faces. > > Oh, combining faces with overlays worked fine. > > But combining keymaps with overlays doesn't work? The face code goes to some lengths to handle inheritance, so that all the face properties from text properties and all overlays are combined into the final displayed result. The way keymaps are handled is a little simpler: the highest-priority overlay with a keymap property (or, failing that an underlying keymap text property) is used for the local map. In the past, it's been pretty painful making sure face inheritance works just right. So I can't say I'm enthusiastic about implementing anything similar for local keymaps...