From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: function-key-map Date: Thu, 11 Oct 2007 01:19:54 -0400 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1192080090 30936 80.91.229.12 (11 Oct 2007 05:21:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Oct 2007 05:21:30 +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 Oct 11 07:21:29 2007 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 1IfqUC-0000ZV-0b for ged-emacs-devel@m.gmane.org; Thu, 11 Oct 2007 07:21:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfqU6-00086z-3s for ged-emacs-devel@m.gmane.org; Thu, 11 Oct 2007 01:21:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IfqTg-0007b9-S1 for emacs-devel@gnu.org; Thu, 11 Oct 2007 01:20:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IfqTg-0007Zh-6A for emacs-devel@gnu.org; Thu, 11 Oct 2007 01:20:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfqTf-0007ZX-RE for emacs-devel@gnu.org; Thu, 11 Oct 2007 01:20:55 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IfqTf-0001Qv-JS for emacs-devel@gnu.org; Thu, 11 Oct 2007 01:20:55 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IfqSg-0004xj-Hc; Thu, 11 Oct 2007 01:19:54 -0400 In-reply-to: (message from Stefan Monnier on Wed, 10 Oct 2007 10:31:30 -0400) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) 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:80581 Archived-At: Yes, it's still very useful. See for example how term/xterm.el uses both. Or term/x-win.el. I.e. it's useful to give optional remapping corresponding to alternative key-names. Can you put something in the Lisp manual explaining when it is right to use `function-key-map'? Perhaps cite and explain this example. I think it'd even be worthwhile to extend the functionality of function-key-map in the following ways: - make it possible to specify a "set of keys" to remap via e.g. a predicate. - apply function-key-map repeatedly (i.e. apply it to its output). The second one would be natural (though it might break something), but I think there is no natural way to do the former. Maybe we should move read-key-sequence into Lisp, but I don't want to try to program it thru a keymap.