From: Noam Postavsky <npostavs@gmail.com>
To: tomas@tuxteam.de
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: Why does assq fail when getting quoted value from a property list?
Date: Mon, 6 Aug 2018 07:53:51 -0400 [thread overview]
Message-ID: <CAM-tV-_1wckBSv-_-qUSzCwdU8SO0N7ySfBSLZH+GBDRp8TLQw@mail.gmail.com> (raw)
In-Reply-To: <20180806072936.GA29487@tuxteam.de>
On 6 August 2018 at 03:29, <tomas@tuxteam.de> wrote:
>> (let ((lookup (plist-get '(:severity (quote urgent)) :severity)))
>> (assq lookup '((urgent . 2))))
>
> Because the value of (plist-get '(:severity (quote urgent) :severity)
> is the symbol 'urgent
You mean the list of two symbols `quote' and `urgent'.
(equal (list 'quote 'urgent)
(plist-get '(:severity (quote urgent)) :severity))
;=> t
next prev parent reply other threads:[~2018-08-06 11:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-06 3:55 Why does assq fail when getting quoted value from a property list? Cody Goodman
2018-08-06 7:29 ` tomas
2018-08-06 11:53 ` Noam Postavsky [this message]
2018-08-06 13:27 ` tomas
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAM-tV-_1wckBSv-_-qUSzCwdU8SO0N7ySfBSLZH+GBDRp8TLQw@mail.gmail.com \
--to=npostavs@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=tomas@tuxteam.de \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).