From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: add-list local value Date: Wed, 12 Mar 2008 09:41:26 +0100 Message-ID: References: <47D729CB.2060105@gmail.com> <47D73D5B.4070502@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1205311305 30162 80.91.229.12 (12 Mar 2008 08:41:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Mar 2008 08:41:45 +0000 (UTC) Cc: Stefan Monnier , Emacs Devel To: "Lennart Borgman (gmail)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 12 09:42:09 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JZMXI-0003vM-BA for ged-emacs-devel@m.gmane.org; Wed, 12 Mar 2008 09:42:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZMWj-0004qg-RX for ged-emacs-devel@m.gmane.org; Wed, 12 Mar 2008 04:41:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JZMWg-0004q9-1L for emacs-devel@gnu.org; Wed, 12 Mar 2008 04:41:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JZMWe-0004p2-HY for emacs-devel@gnu.org; Wed, 12 Mar 2008 04:41:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZMWe-0004os-Cp for emacs-devel@gnu.org; Wed, 12 Mar 2008 04:41:28 -0400 Original-Received: from wx-out-0506.google.com ([66.249.82.235]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JZMWe-00079N-4g for emacs-devel@gnu.org; Wed, 12 Mar 2008 04:41:28 -0400 Original-Received: by wx-out-0506.google.com with SMTP id s7so2939451wxc.24 for ; Wed, 12 Mar 2008 01:41:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=HcADnHPtBBVxojodYNDAVM5TEEWcU6mKg2rHKA/BgDk=; b=ICSR+LEO5MnqPFVPqUKqiwQ7J478LhdblNd3oqEATaehZr5VyzPE6OH3jeZAe80jBGlXPOWFjQCn3JoeVgZ7nbocFY7s3Q21Th5XTUWkyX8vdiJR3ANWx81xuKjsKunWU8syW2LNWWVGGkmL9yfdWLWF9GdtGOoCvZtMOCHJlg8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=O6wBJoD0FvAoO54xiSjEgJyvrOQMB2ACdI17EO2zu/UgO3xCmT37GxVPZ3h78rmICqM9iyapgdS3QEGVOedZsnO5Kc14TehiUVwQdbdtS2d8XZNNJZgbPS82Wmm482H9jj8ry7WO8XtlFj5qCCuv7Mg/c2RycQ5zesO4xCTNJ2A= Original-Received: by 10.115.79.1 with SMTP id g1mr6704337wal.2.1205311286929; Wed, 12 Mar 2008 01:41:26 -0700 (PDT) Original-Received: by 10.114.166.20 with HTTP; Wed, 12 Mar 2008 01:41:26 -0700 (PDT) In-Reply-To: <47D73D5B.4070502@gmail.com> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:92253 Archived-At: On Wed, Mar 12, 2008 at 3:18 AM, Lennart Borgman (gmail) wrote: > And if I have a local value and want to add to the global value with > add-to-list? (with-temp-buffer (add-to-list 'my-variable 'my-value)) unless the variable is automatically buffer-local. If it is, I think it would be uncommon to modify the global value (it would be more logical to just set it up with defvar), but you can always skip the `add-to-list' and assign to my-variable with setq-default. Juanma