From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: Is it safe to modify a property list directly with PLIST-PUT? Date: Sun, 26 Jul 2009 19:51:05 +0200 Message-ID: References: <87ab2rs8kv.fsf@iki.fi> <87bpn7wfct.fsf@iki.fi> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1248630704 11628 80.91.229.12 (26 Jul 2009 17:51:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Jul 2009 17:51:44 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Teemu Likonen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 26 19:51:36 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MV7sl-0001Q6-Uz for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Jul 2009 19:51:36 +0200 Original-Received: from localhost ([127.0.0.1]:55553 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MV7sl-0001kR-Fp for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Jul 2009 13:51:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MV7sP-0001kK-ND for help-gnu-emacs@gnu.org; Sun, 26 Jul 2009 13:51:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MV7sK-0001k8-7k for help-gnu-emacs@gnu.org; Sun, 26 Jul 2009 13:51:12 -0400 Original-Received: from [199.232.76.173] (port=35391 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MV7sK-0001k5-34 for help-gnu-emacs@gnu.org; Sun, 26 Jul 2009 13:51:08 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:33213) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MV7sJ-0004e3-Pc for help-gnu-emacs@gnu.org; Sun, 26 Jul 2009 13:51:07 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.242]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MV7sI-0007K3-TH for help-gnu-emacs@gnu.org; Sun, 26 Jul 2009 13:51:07 -0400 Original-Received: by an-out-0708.google.com with SMTP id b6so2388989ana.21 for ; Sun, 26 Jul 2009 10:51:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=6sP5KRCfdx1NzkXh3DiTjKXiYn5zReFygc1opsCB/Vw=; b=lbIoPXADkXAa2sgkOEFvnYWkCXGy0n5MBlzJ4zk4C80eFxPipbPZ9knk6ZUPAc51c3 M+LAsjriCeajDIje4/YtD15cEp/QXFH4mUT6pXdNUA3G33JwjlpLRtNWzjggn2dDNaS/ A1UYUUZ02R9APOWlq3xDg91Jwp9hq/5wdbgMA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=EwzrRwHyx8Qh0GvtPKV7xTLfc5Mnhdkinam0tdK7goB20JSLnMlb3YlCjLytMl0MT0 Uc18yCJw7S4lHrGVNWFyGJ5GrqAbpXgvhEqAarN1GSGhLrsa5WTlliRacQ+2CYSK5LHB Sk7D27erw6bgJFFPzMJk/IeAWMDVcfrS5uMfQ= Original-Received: by 10.100.121.12 with SMTP id t12mr7191137anc.58.1248630665271; Sun, 26 Jul 2009 10:51:05 -0700 (PDT) In-Reply-To: <87bpn7wfct.fsf@iki.fi> X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:66400 Archived-At: On Sun, Jul 26, 2009 at 6:58 PM, Teemu Likonen wrote: > On 2009-07-26 19:38 (+0300), Teemu Likonen wrote: > >> =C2=A0 =C2=A0 ((:foo "one" :bar "two") >> =C2=A0 =C2=A0 =C2=A0(:foo "three" :bar "New value")) > >> The question: Is this reliable? Is it guaranteed that it will always >> modify the list correctly? If not, how would you suggest doing it >> instead? > > Ah, Emacs Lisp manual effectively says that it's not guaranteed. So, > what would be the best way to modify single values in a list like the > above? setcar (maybe setcdr too).