From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Replacement for `aput' from obsolete assoc.el? Date: Sat, 09 Jun 2012 11:46:38 +0200 Message-ID: References: <87txyrnhxi.fsf@web.de> <87oboytp45@ch.ristopher.com> <87haupwo6b.fsf@web.de> <871ulq44oj.fsf@gmail.com> <87pq9a7zab.fsf@uwakimon.sk.tsukuba.ac.jp> <87mx4c97za.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1339235219 10863 80.91.229.3 (9 Jun 2012 09:46:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 9 Jun 2012 09:46:59 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 09 11:46:57 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SdIFs-0004Gu-Ii for ged-emacs-devel@m.gmane.org; Sat, 09 Jun 2012 11:46:48 +0200 Original-Received: from localhost ([::1]:46716 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdIFs-0006AW-Ew for ged-emacs-devel@m.gmane.org; Sat, 09 Jun 2012 05:46:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdIFq-0006A7-6N for emacs-devel@gnu.org; Sat, 09 Jun 2012 05:46:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SdIFo-00005P-3g for emacs-devel@gnu.org; Sat, 09 Jun 2012 05:46:45 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:56413) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdIFn-00005K-Tg for emacs-devel@gnu.org; Sat, 09 Jun 2012 05:46:44 -0400 Original-Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3W8bH60HR6z3hhcT; Sat, 9 Jun 2012 11:46:41 +0200 (CEST) Original-Received: from linux.local (ppp-93-104-139-91.dynamic.mnet-online.de [93.104.139.91]) by mail.mnet-online.de (Postfix) with ESMTPA id 3W8bH31v9mz4KKBk; Sat, 9 Jun 2012 11:46:39 +0200 (CEST) Original-Received: by linux.local (Postfix, from userid 501) id C07AB1E5603; Sat, 9 Jun 2012 11:46:38 +0200 (CEST) X-Yow: Yow!! That's a GOOD IDEA!! Eating a whole FIELD of COUGH MEDICINE should make you feel MUCH BETTER!! In-Reply-To: <87mx4c97za.fsf@uwakimon.sk.tsukuba.ac.jp> (Stephen J. Turnbull's message of "Sat, 09 Jun 2012 17:59:05 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 212.18.0.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:150850 Archived-At: "Stephen J. Turnbull" writes: > `plist-put' and `plist-get' are actually defined in C, but this shows > how `memq' works well with plists: > > (defun plist-get (plist key) > (cadr (memq key plist))) That fails if key is eq to a value. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."