From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: A simple implementation of context-sensitive keys Date: Thu, 11 Sep 2008 17:17:00 +0900 Message-ID: References: <87y72079mg.fsf@thinkpad.tsdh.de> <87ljy012g7.fsf@catnip.gol.com> <87k5djjft7.fsf@thinkpad.tsdh.de> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1221121049 19853 80.91.229.12 (11 Sep 2008 08:17:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2008 08:17:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Sean O'Rourke" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 11 10:18:25 2008 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.50) id 1KdhNd-00006s-9c for ged-emacs-devel@m.gmane.org; Thu, 11 Sep 2008 10:18:21 +0200 Original-Received: from localhost ([127.0.0.1]:49622 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdhMd-0002k2-1Z for ged-emacs-devel@m.gmane.org; Thu, 11 Sep 2008 04:17:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdhMY-0002jO-Jj for emacs-devel@gnu.org; Thu, 11 Sep 2008 04:17:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdhMU-0002hF-Ld for emacs-devel@gnu.org; Thu, 11 Sep 2008 04:17:13 -0400 Original-Received: from [199.232.76.173] (port=39433 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdhMU-0002gy-Dp for emacs-devel@gnu.org; Thu, 11 Sep 2008 04:17:10 -0400 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.206]:39971) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KdhMS-0003MY-24; Thu, 11 Sep 2008 04:17:08 -0400 Original-Received: from relay31.aps.necel.com ([10.29.19.54]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id m8B8GoIO019047; Thu, 11 Sep 2008 17:17:01 +0900 (JST) Original-Received: from relay31.aps.necel.com ([10.29.19.16] [10.29.19.16]) by relay31.aps.necel.com with ESMTP; Thu, 11 Sep 2008 17:17:01 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.112.215] [10.114.112.215]) by relay31.aps.necel.com with ESMTP; Thu, 11 Sep 2008 17:17:01 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id BBB1D45D; Thu, 11 Sep 2008 17:17:00 +0900 (JST) System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <87k5djjft7.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Thu, 11 Sep 2008 09:35:16 +0200") Original-Lines: 19 X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) 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:103801 Archived-At: Tassilo Horn writes: > Hey, nice feature. I didn't know it till now. But how to I [re]set > this property in a good fashion? Currently I think hooking into > after-change-function would be TRTD. after-change-functions is a very blunt hammer, and overuse of it is not good. I suspect the right thing depends what you're actually trying to do at the application level. In that sense, I'm not sure your attempt to define a single do-everything function like `define-context-keymap' is actually a very good idea; in many cases it would seem simpler and more efficient to simply add keymap properties in an application-dependent manner. -Miles -- Twice, adv. Once too often.