From unknown Sat Sep 06 09:27:48 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#64645 <64645@debbugs.gnu.org> To: bug#64645 <64645@debbugs.gnu.org> Subject: Status: [PATCH] * src/lisp.h: Describe a simple mnemonics to understand XLI/XIL/XLP macros Reply-To: bug#64645 <64645@debbugs.gnu.org> Date: Sat, 06 Sep 2025 16:27:48 +0000 retitle 64645 [PATCH] * src/lisp.h: Describe a simple mnemonics to understa= nd XLI/XIL/XLP macros reassign 64645 emacs submitter 64645 Ihor Radchenko severity 64645 normal tag 64645 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 15 05:49:47 2023 Received: (at submit) by debbugs.gnu.org; 15 Jul 2023 09:49:47 +0000 Received: from localhost ([127.0.0.1]:44196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKbuN-0004uU-5O for submit@debbugs.gnu.org; Sat, 15 Jul 2023 05:49:47 -0400 Received: from lists.gnu.org ([2001:470:142::17]:56452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKbuL-0004uD-4t for submit@debbugs.gnu.org; Sat, 15 Jul 2023 05:49:45 -0400 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 1qKbuF-0000YW-Qg for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2023 05:49:39 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qKbuD-00025O-Dt for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2023 05:49:39 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 0494D24002A for ; Sat, 15 Jul 2023 11:49:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1689414575; bh=Gb7/h5V7zmjTRbIkbd4T5L2CXYCqQyT1V2aqq0mfrMc=; h=From:To:Subject:Date:Message-ID:MIME-Version:From; b=eT9DzU8vYCsw+LziF/ZHZEdRLT2Sqex17AAa87oTUTSmb7RTIVuvyYDibZq2Wwqp6 jZesqSYVEsoljz01C3zR1b+BvGk6JCl8EZHBnezDYN5V4pU429FsAw+m9wjxOdCvlh d1oPhpRCf7chgCwHwQ2hpsKQsQqg2X0f/L7q1yDdN0unNcJ8Rwf4XRDzLPXeikZk6M tbyjNA2MwZjh5PoTUyjgB4i4rEWcf2cNUk9wDOHkw1UKRXk/QOnnMh/4/dYE0jRHCd J8/wWite0mDyLGXYXlywkRXbpPVoJy+0GIgqeUep4d8Qd14HNZORrupGhw3pP62IX5 kXvm0ctsRIowA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R33Tp1WCnz9rxL for ; Sat, 15 Jul 2023 11:49:33 +0200 (CEST) From: Ihor Radchenko To: bug-gnu-emacs@gnu.org Subject: [PATCH] * src/lisp.h: Describe a simple mnemonics to understand XLI/XIL/XLP macros Date: Sat, 15 Jul 2023 09:49:41 +0000 Message-ID: <87zg3xqzbe.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) 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: -0.0 (/) --=-=-= Content-Type: text/plain Tags: patch Hi, While reading the C sources, I kept stumbling upon the meaning of XLI/XIL/XLP macros. The attached patch adds a comment with simple mnemonics to remember what they mean. In GNU Emacs 30.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-07-13 built on localhost Repository revision: d97b77e6c66db46b198c696f83458aa141794727 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101008 System Description: Gentoo Linux Configured using: 'configure --with-native-compilation' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-src-lisp.h-Describe-a-simple-mnemonics-to-understand.patch >From f032a6a9c51cc0e9568c7cb36e30d365c14b5b8b Mon Sep 17 00:00:00 2001 Message-ID: From: Ihor Radchenko Date: Sat, 15 Jul 2023 12:46:43 +0300 Subject: [PATCH] * src/lisp.h: Describe a simple mnemonics to understand XLI/XIL/XLP macros These macro names may be confusing for untrained mind. Mnemonics described in the added comment helps to remember what is what for new readers. --- src/lisp.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lisp.h b/src/lisp.h index f10bce86b45..528db45dbcf 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -332,7 +332,11 @@ #define LISP_WORDS_ARE_POINTERS (EMACS_INT_MAX == INTPTR_MAX) see these functions for commentary. */ /* Convert among the various Lisp-related types: I for EMACS_INT, L - for Lisp_Object, P for void *. */ + for Lisp_Object, P for void *. + Useful mnemonics: + 1. XLI :: X is Lisp Integer + 2. XIL :: X Is Lisp + 3. XLP :: X is Lisp Pointer */ #if !CHECK_LISP_OBJECT_TYPE # if LISP_WORDS_ARE_POINTERS # define lisp_h_XLI(o) ((EMACS_INT) (o)) -- 2.41.0 --=-=-= Content-Type: text/plain -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 15 06:05:21 2023 Received: (at 64645-done) by debbugs.gnu.org; 15 Jul 2023 10:05:21 +0000 Received: from localhost ([127.0.0.1]:44208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKc9R-0005Iy-5E for submit@debbugs.gnu.org; Sat, 15 Jul 2023 06:05:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKc9P-0005Ig-D0 for 64645-done@debbugs.gnu.org; Sat, 15 Jul 2023 06:05:19 -0400 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 1qKc9K-00081w-3E; Sat, 15 Jul 2023 06:05:14 -0400 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=OaO0+IFnpoltUs9dHTsH8eSpAWAvcPT1V1gTXlyMnlY=; b=aZfrNcZGGzsB q9Rqrwab5Rd/oyrxuTC/0CLF4g0bIcv2ak6fRXgsvwZPNVvPfdidaozpXPVe/YmpJKfK3G7L5UH7y z4gTNk2XBRT2nnkUf8UYYY7BBC3ayUqDK78dFnwDEtIpXK32ThOgT+5cqGsiZNJN/BqHxCw+iQBG6 6S+SGUmaIY/sw11O7XKd5mGJHkK5GjHZuihYueyJVI9hVH0ypV1MW0ngPEmPe0fwXdHk3ESTCd1QL rsRbzhQ/aR09vpeKg1ZfmaPkXngXTNXaMCcgJKdgbizf0UM1WOe5DImytfOlL8sTnl+O05AH05d5F IR+asThd8h/F89CoBcXUbA==; 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 1qKc9J-0002LE-JO; Sat, 15 Jul 2023 06:05:13 -0400 Date: Sat, 15 Jul 2023 13:05:35 +0300 Message-Id: <837cr1cwwg.fsf@gnu.org> From: Eli Zaretskii To: Ihor Radchenko In-Reply-To: <87zg3xqzbe.fsf@localhost> (message from Ihor Radchenko on Sat, 15 Jul 2023 09:49:41 +0000) Subject: Re: bug#64645: [PATCH] * src/lisp.h: Describe a simple mnemonics to understand XLI/XIL/XLP macros References: <87zg3xqzbe.fsf@localhost> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64645-done Cc: 64645-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: Ihor Radchenko > Date: Sat, 15 Jul 2023 09:49:41 +0000 > > While reading the C sources, I kept stumbling upon the meaning of > XLI/XIL/XLP macros. The attached patch adds a comment with simple > mnemonics to remember what they mean. Thanks, I installed on the emacs-29 a different patch explaining the mnemonics. From unknown Sat Sep 06 09:27:48 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 12 Aug 2023 11:24:10 +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