From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: hokomo Newsgroups: gmane.emacs.devel Subject: Manual error in (elisp) Searching Keymaps regarding keymap char properties? Date: Sun, 18 Sep 2022 17:07:13 +0200 Message-ID: <87r108wuur.fsf@airmail.cc> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15845"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.9; emacs 28.1.91 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Sep 18 17:49:02 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZwXU-0003tf-D3 for ged-emacs-devel@m.gmane-mx.org; Sun, 18 Sep 2022 17:49:02 +0200 Original-Received: from localhost ([::1]:37032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZwXS-0000ML-TN for ged-emacs-devel@m.gmane-mx.org; Sun, 18 Sep 2022 11:48:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54864) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZwUB-0005s6-5L for emacs-devel@gnu.org; Sun, 18 Sep 2022 11:45:35 -0400 Original-Received: from [37.120.193.124] (port=54114 helo=mail.cock.li) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZwU4-0005VG-7q for emacs-devel@gnu.org; Sun, 18 Sep 2022 11:45:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=airmail.cc; s=mail; t=1663515860; bh=kMavpK3wMZHeZpUNRvNl+NqFsH3gen0O7LSRz3eo3z8=; h=From:To:Subject:Date:From; b=FFSRYVZdKAmJnsFXDoP9xR632OW4LPTOr8zRkNVsT5sz3BWQpRSq9NA0Di63tbaeO onWyO+a5WK0mWwx2h4cHwroWwRmSDlwf+TvpBS7gC9iXVf6E7E9HBbq9/YtWTEy+hW a22d3IKLqK4l9LvyLHsjEFWbZGiAELVwX38WqCLZDvgVgPWqZa5pZBcnbftmbEJR23 F1jVFoYxUhAl6ggIS152Y2vNaVRvj88CyDPvBsC2AgxUcikSSYlesl98R+jheqPt5I DrN8cOWm3sP/B4nqV0ziGUvMA2NlhSBuENva4AWZ0QJmsI07hnaRuijdn27YYOvz5U RbxM4duONGVvA== X-Host-Lookup-Failed: Reverse DNS lookup failed for 37.120.193.124 (failed) Received-SPF: pass client-ip=37.120.193.124; envelope-from=hokomo@airmail.cc; helo=mail.cock.li X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 18 Sep 2022 11:46:40 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:295582 Archived-At: Hello, The psuedo-Lisp code presented in the manual (elisp) Searching=20 Keymaps says: (if (get-text-property (point) 'local-map) (FIND-IN (get-char-property (point) 'local-map)) (FIND-IN (current-local-map))) Why does the condition use `get-text-property', but then the=20 consequent uses `get-char-property'? Shouldn't they both be=20 `get-char-property'? According to (elisp) Active Keymaps: "If there is a =E2=80=98local-map=E2=80=99 text or overlay property at poin= t, that=20 specifies the local keymap to use, in place of the buffer=E2=80=99s=20 default local keymap." Am I missing something? Additionally, perhaps the two paragraphs in (elisp) Active Keymaps=20 that mention the `keymap` and the `local-map' property should be=20 reworded slightly to emphasize that the search prefers the overlay=20 property over the text property, since that's how=20 `get-char-property' is documented to work. hokomo