From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.devel Subject: Re: [NonGNU ELPA] New package: latex-table-wizard Date: Sat, 17 Dec 2022 14:17:53 +0000 Message-ID: <875yeaglm6.fsf@posteo.net> References: <87pmcjw9ly.fsf@eflor.net> <87h6xv2kts.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23488"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Enrico Flor Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 17 15:19:20 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 1p6Y24-0005qI-2T for ged-emacs-devel@m.gmane-mx.org; Sat, 17 Dec 2022 15:19:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6Y12-0007sX-5j; Sat, 17 Dec 2022 09:18:16 -0500 Original-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 1p6Y0n-0007oS-3A for emacs-devel@gnu.org; Sat, 17 Dec 2022 09:18:02 -0500 Original-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 1p6Y0h-0001cC-7G for emacs-devel@gnu.org; Sat, 17 Dec 2022 09:18:00 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 1EE66240028 for ; Sat, 17 Dec 2022 15:17:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1671286673; bh=IxD8/mNj9f0fHeNHPM6Aa8YzRH83rtejG8jYhzPxldw=; h=From:To:Cc:Subject:Date:From; b=goS0hwX6Z1F53ebVCBJxOea/WxFokaYlmuHKeafbkaTPa+A0h+5b7YWXTwbpZDeKC 9h8kM0Nb5BiMl0hJlUGgjsOQ9jQp3oqwCp8CM8mlv6m51VEbLuUwUHfsMctKi6gwqJ JUqbZ/dQOi5F5BcJhGrm5okKSD2tIGPKLP+lfxFoFFqiDz0/6GMrkimNliXwFev0TU Gwqq2L6jU9C8gGqz01hZl/FUP2S8VrM48BLxJ9TQZP1LOBR65Qt5C1UIxIiqb+Ns0S F+XbZbsQsyUHGkz7g2RpeaRVE9QcRc7iOVQXcglMwwAryTFXNelcJ/lSmSQVQtts4T prNotVR/H9rQQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NZ7NG1TgMz6tn5; Sat, 17 Dec 2022 15:17:50 +0100 (CET) In-Reply-To: <87h6xv2kts.fsf@posteo.net> (Philip Kaludercic's message of "Fri, 16 Dec 2022 19:46:23 +0000") Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:301560 Archived-At: Philip Kaludercic writes: > +;; Why not use `memq'? > (defmacro latex-table-wizard--or (symbol &rest values) > "Return non-nil if SYMBOL is `eq' to one of VALUES." > (let ((bools (mapcar (lambda (value) `(eq ,symbol ,value)) To argue out this point, compare: (disassemble (byte-compile '(or (eq foo 'a) (eq foo 'b) (eq foo 'c)))) --8<---------------cut here---------------start------------->8--- byte code: args: nil 0 varref foo 1 constant a 2 eq 3 goto-if-not-nil-else-pop 1 6 varref foo 7 constant b 8 eq 9 goto-if-not-nil-else-pop 1 12 varref foo 13 constant c 14 eq 15:1 return --8<---------------cut here---------------end--------------->8--- and: (disassemble (byte-compile '(memq foo '(a b c)))) --8<---------------cut here---------------start------------->8--- byte code: args: nil 0 varref foo 1 constant (a b c) 2 memq 3 return --8<---------------cut here---------------end--------------->8---