From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#27490: 24.5; Elisp manual explanation of `function-key-map' and its inheritors Date: Sun, 21 Jul 2019 19:39:49 +0300 Message-ID: <83sgqzqr3e.fsf@gnu.org> References: <87v9vv4d2e.fsf@mouse.gnus.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="120107"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 27490@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 21 18:41:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hpEtZ-000V5b-UP for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Jul 2019 18:41:10 +0200 Original-Received: from localhost ([::1]:56864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpEtY-0007Cf-UN for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Jul 2019 12:41:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37302) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpEtW-0007CY-FW for bug-gnu-emacs@gnu.org; Sun, 21 Jul 2019 12:41:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hpEtS-0003q6-UX for bug-gnu-emacs@gnu.org; Sun, 21 Jul 2019 12:41:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50558) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hpEtS-0003po-LG for bug-gnu-emacs@gnu.org; Sun, 21 Jul 2019 12:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hpEtS-0006l0-H0 for bug-gnu-emacs@gnu.org; Sun, 21 Jul 2019 12:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Jul 2019 16:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27490 X-GNU-PR-Package: emacs Original-Received: via spool by 27490-submit@debbugs.gnu.org id=B27490.156372721525913 (code B ref 27490); Sun, 21 Jul 2019 16:41:02 +0000 Original-Received: (at 27490) by debbugs.gnu.org; 21 Jul 2019 16:40:15 +0000 Original-Received: from localhost ([127.0.0.1]:59379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpEsh-0006js-77 for submit@debbugs.gnu.org; Sun, 21 Jul 2019 12:40:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53112) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpEsf-0006jb-AV for 27490@debbugs.gnu.org; Sun, 21 Jul 2019 12:40:14 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hpEsZ-00038r-Sw; Sun, 21 Jul 2019 12:40:07 -0400 Original-Received: from [176.228.60.248] (port=1238 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hpEsY-0004TJ-9U; Sun, 21 Jul 2019 12:40:06 -0400 In-reply-to: <87v9vv4d2e.fsf@mouse.gnus.org> (message from Lars Ingebrigtsen on Sun, 21 Jul 2019 17:33:45 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:163538 Archived-At: > From: Lars Ingebrigtsen > Date: Sun, 21 Jul 2019 17:33:45 +0200 > Cc: 27490@debbugs.gnu.org > > This text: > > ------ > > @code{local-function-key-map} inherits from @code{function-key-map}, > but the latter should not be used directly. > > ------ > > was added by this commit: > > ------ > > commit 6b9e769476955b928b0248fef5aaa0e40754e257 > Author: Eli Zaretskii > Date: Sat Jan 17 19:14:52 2009 +0000 > > (Translation Keymaps): Rename function-key-map to local-function-key-map. > > ------ > > > So I'm assuming that there was a plan to phase out using > function-key-map or something? Perhaps Eli can clarify. I don't remember any details, and I found no discussions of this around that date. However, you will find a bunch of commits around that one which all renamed function-key-map to local-function-key-map. So yes, it appears like we wanted people to use the latter. > But there's a bunch of examples in the manual that does use the map, so > either these should be adjusted, or the documentation clarified: I think the examples which use function-key-map should be modified, yes. > The only way to affect the behavior of keys within Emacs is through > @code{xmodmap} (outside Emacs) or @code{define-key} (inside Emacs). The > @code{define-key} command should be used in conjunction with the > @code{function-key-map} map. For instance, > > @lisp > (define-key function-key-map [M-@key{TAB}] [?\M-\t]) > @end lisp Where did you find this? I must be blind, because I don't see this passage in the manual.