all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: tomas@tuxteam.de
To: Noam Postavsky <npostavs@gmail.com>
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 15:27:03 +0200	[thread overview]
Message-ID: <20180806132703.GB6225@tuxteam.de> (raw)
In-Reply-To: <CAM-tV-_1wckBSv-_-qUSzCwdU8SO0N7ySfBSLZH+GBDRp8TLQw@mail.gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Aug 06, 2018 at 07:53:51AM -0400, Noam Postavsky wrote:
> 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'.

Hmpf. You're right. "Evaluation" of quote happens later...

Cheers
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAltoTKcACgkQBcgs9XrR2kYEnACeK6VGvPCf1/kt5WfBV0KmkXmE
qcIAoIEsJB6keRSXF62ZVADU95I6UhD+
=17gs
-----END PGP SIGNATURE-----



      reply	other threads:[~2018-08-06 13:27 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
2018-08-06 13:27     ` tomas [this message]

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=20180806132703.GB6225@tuxteam.de \
    --to=tomas@tuxteam.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=npostavs@gmail.com \
    /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.