From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.help Subject: Re: Why does assq fail when getting quoted value from a property list? Date: Mon, 6 Aug 2018 15:27:03 +0200 Message-ID: <20180806132703.GB6225@tuxteam.de> References: <20180806072936.GA29487@tuxteam.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed X-Trace: blaine.gmane.org 1533561933 26643 195.159.176.226 (6 Aug 2018 13:25:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Aug 2018 13:25:33 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Help Gnu Emacs mailing list To: Noam Postavsky Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 06 15:25:29 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fmfVp-0006p8-EH for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Aug 2018 15:25:29 +0200 Original-Received: from localhost ([::1]:34103 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fmfXs-0002QK-Ow for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Aug 2018 09:27:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fmfXQ-0002QF-P0 for help-gnu-emacs@gnu.org; Mon, 06 Aug 2018 09:27:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fmfXO-0006sy-39 for help-gnu-emacs@gnu.org; Mon, 06 Aug 2018 09:27:08 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:39326) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fmfXN-0006qN-PB for help-gnu-emacs@gnu.org; Mon, 06 Aug 2018 09:27:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=dJF2dRyXL/j6mPid3dA3eLH1kqO9InEVaXQ39FVsjAs=; b=UZg2JvprWRXPTzv0NBerGiMGtDByfa6HXdYlNO1hLxCo0+VAxMLRhUNYWaRKdtYUvbyPd09nWb9pZPWlqXEGQdFIjT7xKsMwYBvuC+hlEyY3FPi0HUNgfoYHQzuY179EMzsc3HsO7f1FlP36UXupjaa9UXi+QgUdd68OU0o/dy/58q9RqvbWnn1GGTWWeuT7jCuCEjl3/fyUDzJS+X9OmGpsjNAIPT7niJYv9psimF+qXy0M3c6e9CdoOP4tXZEZyItCY/C4r34ShG3bHhtLaW2ilrwDOdhBt2pnuxOoU2DK7jk4jDIFaJE+5EoRejtHr0bK/fNv/jIljIWSJrCoPg==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1fmfXL-0001yW-R1; Mon, 06 Aug 2018 15:27:03 +0200 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117642 Archived-At: -----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, 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-----