From: Philip Kaludercic <philipk@posteo.net>
To: Enrico Flor <enrico@eflor.net>
Cc: emacs-devel@gnu.org
Subject: Re: [NonGNU ELPA] New package: latex-table-wizard
Date: Sat, 17 Dec 2022 14:17:53 +0000 [thread overview]
Message-ID: <875yeaglm6.fsf@posteo.net> (raw)
In-Reply-To: <87h6xv2kts.fsf@posteo.net> (Philip Kaludercic's message of "Fri, 16 Dec 2022 19:46:23 +0000")
Philip Kaludercic <philipk@posteo.net> 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---
next prev parent reply other threads:[~2022-12-17 14:17 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-16 17:17 [NonGNU ELPA] New package: latex-table-wizard Enrico Flor
2022-12-16 19:46 ` Philip Kaludercic
2022-12-16 21:29 ` Enrico Flor
2022-12-16 21:37 ` Philip Kaludercic
2022-12-16 21:59 ` Enrico Flor
2022-12-16 22:58 ` Philip Kaludercic
2022-12-16 23:36 ` Enrico Flor
2022-12-17 6:22 ` tomas
2022-12-17 10:01 ` Philip Kaludercic
2022-12-17 16:13 ` [External] : " Drew Adams
2022-12-17 14:17 ` Philip Kaludercic [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-12-16 16:32 Enrico Flor
2022-12-17 3:23 ` Stefan Monnier
2022-12-17 4:46 ` Enrico Flor
2022-12-17 9:56 ` Philip Kaludercic
2022-12-17 14:10 ` Enrico Flor
2023-05-11 21:21 ` Enrico Flor
2023-05-12 5:46 ` Philip Kaludercic
2023-05-12 12:30 ` Stefan Monnier
2023-05-12 15:46 ` Philip Kaludercic
2023-05-12 12:37 ` Enrico Flor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=875yeaglm6.fsf@posteo.net \
--to=philipk@posteo.net \
--cc=emacs-devel@gnu.org \
--cc=enrico@eflor.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.