help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why does assq fail when getting quoted value from a property list?


From: tomas
Subject: Re: Why does assq fail when getting quoted value from a property list?
Date: Mon, 6 Aug 2018 15:27:03 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

-----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 via email to

[Prev in Thread] Current Thread [Next in Thread]