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: Wed, 10 Sep 2008 23:48:56 +0900 Message-ID: <87ljy012g7.fsf@catnip.gol.com> References: <87y72079mg.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 1221058233 29251 80.91.229.12 (10 Sep 2008 14:50:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2008 14:50:33 +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 Wed Sep 10 16:51:28 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 1KdR2K-0004cU-E6 for ged-emacs-devel@m.gmane.org; Wed, 10 Sep 2008 16:51:16 +0200 Original-Received: from localhost ([127.0.0.1]:60120 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdR1K-000697-AT for ged-emacs-devel@m.gmane.org; Wed, 10 Sep 2008 10:50:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdQyc-0005E0-Dm for emacs-devel@gnu.org; Wed, 10 Sep 2008 10:47:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdQya-0005Ci-OZ for emacs-devel@gnu.org; Wed, 10 Sep 2008 10:47:26 -0400 Original-Received: from [199.232.76.173] (port=56301 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdQya-0005Cc-Ex for emacs-devel@gnu.org; Wed, 10 Sep 2008 10:47:24 -0400 Original-Received: from smtp11.dentaku.gol.com ([203.216.5.73]:50419) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KdQyW-0004ai-UT; Wed, 10 Sep 2008 10:47:21 -0400 Original-Received: from 218.231.109.226.eo.eaccess.ne.jp ([218.231.109.226] helo=catnip.gol.com) by smtp11.dentaku.gol.com with esmtpa (Dentaku) id 1KdQyT-0007q6-ET; Wed, 10 Sep 2008 23:47:17 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 79BAFE00A; Wed, 10 Sep 2008 23:48:56 +0900 (JST) System-Type: x86_64-unknown-linux-gnu In-Reply-To: (Sean O'Rourke's message of "Wed, 10 Sep 2008 07:14:21 -0700") Original-Lines: 16 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:103767 Archived-At: Sean O'Rourke writes: > TextMate for Mac OS has a similar way of defining key bindings: > basically, a major mode labels regions of a buffer's text, and > keys can be bound to functions only within regions with certain > labels. It's like font-lock for keys (IIRC, TextMate's > fontification uses these same labels). I think it's a great > idea, and would like to see some general mechanism for doing it > included in Emacs. Emacs does have keymap properties... -Miles -- Next to fried food, the South has suffered most from oratory. -- Walter Hines Page