From unknown Sat Sep 06 03:34:23 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#59886 <59886@debbugs.gnu.org> To: bug#59886 <59886@debbugs.gnu.org> Subject: Status: Manual error in (elisp) Searching Keymaps regarding keymap char properties? Reply-To: bug#59886 <59886@debbugs.gnu.org> Date: Sat, 06 Sep 2025 10:34:23 +0000 retitle 59886 Manual error in (elisp) Searching Keymaps regarding keymap ch= ar properties? reassign 59886 emacs submitter 59886 hokomo severity 59886 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 07 11:30:07 2022 Received: (at submit) by debbugs.gnu.org; 7 Dec 2022 16:30:07 +0000 Received: from localhost ([127.0.0.1]:50979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2xJ8-0002Wj-PM for submit@debbugs.gnu.org; Wed, 07 Dec 2022 11:30:07 -0500 Received: from lists.gnu.org ([209.51.188.17]:54858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2xJ6-0002VY-VN for submit@debbugs.gnu.org; Wed, 07 Dec 2022 11:30:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2xJ6-00011D-9g for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 11:30:04 -0500 Received: from [37.120.193.124] (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 1p2xIy-0005s8-Ug for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 11:30:04 -0500 User-agent: mu4e 1.8.9; emacs 28.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=airmail.cc; s=mail; t=1670430532; bh=1sx6c1GYsY2gVxzGB20x/VicCJ579fxIm2SUwFnjVUg=; h=From:To:Subject:Date:From; b=kMglbq1ZN1G3pkTKNL37nVthOq4c5YIEmZ/xQm8Hh6Yhxg5hTeEenFGrxr6FXHMDz Muf3l4rT0vhAo9eOpIqMcEyJWuFSX6970U/A3bOmWxS9+0UY6axEtaIG+neAQB61AK yutgBpiEbi8BkH18aSWAGEYrlwy/5clzY0ksfWk87gN183dboZArA3zLT2epakNE8h tnkvYZ37tQAZICu5qan/lS9KnIqj7TpybLiBIKBqtGWEaEeABqNcM1p9w8XigEN1k8 ATyg9VAOGBedr9EVn3LSav3vndaEQIylZcHWs63VRBKnjuqqO/nd2vm3y/bH0IsisG XjVOd9UyRz7bA== From: hokomo To: bug-gnu-emacs@gnu.org Subject: Manual error in (elisp) Searching Keymaps regarding keymap char properties? Date: Wed, 07 Dec 2022 17:21:36 +0100 Message-ID: <87wn73qit9.fsf@airmail.cc> MIME-Version: 1.0 Content-Type: text/plain; format=flowed 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, RCVD_IN_MSPIKE_H2=-0.001, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Hello, The psuedo-Lisp code presented in the manual (elisp) Searching 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 consequent uses `get-char-property'? Shouldn't they both be `get-char-property'? According to (elisp) Active Keymaps: "If there is a 'local-map' /text or overlay/ property at point, that specifies the local keymap to use, in place of the buffer's default local keymap." Am I missing something? Additionally, perhaps the two paragraphs in (elisp) Active Keymaps that mention the `keymap` and the `local-map' property (search for "property") should be reworded slightly to emphasize that the search prefers the overlay property over the text property, since that's how `get-char-property' is documented to work. Maybe change the ordering of "text or overlay" to "overlay or text", along with an explicit emphasis? hokomo From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 10 08:07:42 2022 Received: (at 59886-done) by debbugs.gnu.org; 10 Dec 2022 13:07:42 +0000 Received: from localhost ([127.0.0.1]:42676 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3zZr-0004Sm-EU for submit@debbugs.gnu.org; Sat, 10 Dec 2022 08:07:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3zZm-0004Sc-0I for 59886-done@debbugs.gnu.org; Sat, 10 Dec 2022 08:07:38 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3zZc-0006VL-KF; Sat, 10 Dec 2022 08:07:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=sKecLSAdAUdwK/fT2GmA+pa3q0cAHAeabqgqFBYo1j4=; b=hYmMq9AfiwpH 4PGmwrTN1PHm6cPAZeOm9pNcHHluOqDBsKdauJcCdL5JV4Q8BuxRmVKeJ/09epKNJNUJTejW14wME oBxmjUhCs/okZZ3CTEtQw5rvPV1YjfRh72qxgN6Gbyp86OYvipiJCTU/0GGBC5YZOIh6+xddkI3MQ X9cyQ/JKKGokMtfpjY2Sp9zAZR9QGywvc6YmmrnY5An6UcBTOR6axnSXmwoK6AomJ6Ga0l0EHMUPq SJM/AesfLPVRg/lfB5OjjlspiMutNBGNF/aG9hfacASYaKYri+crLLA/QdSFQ6EI9AyQyw/PVmj+G 2tmp50xMu7RZd7msLGlTkw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3zZc-0006dU-5U; Sat, 10 Dec 2022 08:07:24 -0500 Date: Sat, 10 Dec 2022 15:07:20 +0200 Message-Id: <831qp7xv93.fsf@gnu.org> From: Eli Zaretskii To: hokomo In-Reply-To: <87wn73qit9.fsf@airmail.cc> (message from hokomo on Wed, 07 Dec 2022 17:21:36 +0100) Subject: Re: bug#59886: Manual error in (elisp) Searching Keymaps regarding keymap char properties? References: <87wn73qit9.fsf@airmail.cc> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59886-done Cc: 59886-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: hokomo > Date: Wed, 07 Dec 2022 17:21:36 +0100 > > > Hello, > > The psuedo-Lisp code presented in the manual (elisp) Searching > 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 > consequent uses `get-char-property'? Shouldn't they both be > `get-char-property'? According to (elisp) Active Keymaps: > > "If there is a 'local-map' /text or overlay/ property at point, > that specifies the local keymap to use, in place of the buffer's > default local keymap." > > Am I missing something? > > Additionally, perhaps the two paragraphs in (elisp) Active Keymaps > that mention the `keymap` and the `local-map' property (search for > "property") should be reworded slightly to emphasize that the > search prefers the overlay property over the text property, since > that's how `get-char-property' is documented to work. Maybe change > the ordering of "text or overlay" to "overlay or text", along with > an explicit emphasis? Thanks, I've changed the example to use get-char-property. From unknown Sat Sep 06 03:34:23 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 08 Jan 2023 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator