From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marco Wahl Newsgroups: gmane.emacs.help Subject: Re: buffer-local-value confusion Date: Wed, 08 Oct 2014 09:27:45 +0200 Organization: Aioe.org NNTP Server Message-ID: <84bnpnm366.fsf@tm6592.fritz.box> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1412753422 1466 80.91.229.3 (8 Oct 2014 07:30:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Oct 2014 07:30:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 08 09:30:17 2014 Return-path: Envelope-to: geh-help-gnu-emacs@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 1XblhR-0006GJ-5K for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Oct 2014 09:30:17 +0200 Original-Received: from localhost ([::1]:34670 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XblhQ-0005LT-Q4 for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Oct 2014 03:30:16 -0400 Original-Path: usenet.stanford.edu!goblin3!goblin.stu.neva.ru!newsfeed2.funet.fi!newsfeeds.funet.fi!newsfeed1.swip.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: x7Gj8kytJ6fo62+5vEympg.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEX9/P3zn/zqYfve CPz///+XZmJwAAAAAWJLR0QEj2jZUQAAAAlwSFlzAAALEgAACxIB0t1+/AAAAP1JREFUOMudlFuy wyAIhgU3YHQDadhAK/vfW0WT4oVMew4PnZRv4OeWOPcPg+ggmIB3fpkhxPy0/FvibKZi4t3MxHwD tjMi8kywAs9LbcihZTxBUFC7Yc5VUlMmifAngC5j1UADgDzipUEq5ig3x6tVrcCLCFAtzkE3IeSH eM6/vptcyRUPamUCdX0Si2QdfhlQtwMRFCstyW+/RLWj3w2qext2lj7+devNwh0wtmsD+jNI3yKe kx++ZZr9sqKjTH1pD+UKAsQFpHaiMJ8wtEMrtQ1FxXxcR5GG2yUt3w/gOtklIimg7AYRBVO9uH+A /VpDJ/cbwNuIcPNNGe0NOZI4WOYurNQAAAAZdEVYdGNvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVDn r0DLAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE0LTA5LTA4VDIzOjI2OjUyKzAyOjAw9yh4fgAAACV0 RVh0ZGF0ZTptb2RpZnkAMjAxNC0wOS0wOFQyMzoyNjo1MiswMjowMIZ1wMIAAAAASUVORK5CYII= X-Face: &"bk.O^qRpF*sK+/, &mRxu!P61bKc5"jprbZ_Rax6=! I`CX6#kmDJ~k3QZ, 69ZJor.hJCO)QXAv?&~]EP.<'HHmggrk?>ptlgr:`@WB+YuWwL=^Hl7iYYD"J) "/wg9Ps9}&2Dy^/:1V~vvHS+hK0}6P{*i`"Zyx8 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:100337 Archived-At: Eric Abrahamsen writes: > (defvar nngnorb-attachment-file-list nil) > (make-variable-buffer-local 'nngnorb-attachment-file-list) > > I'm first setting a value for it in the buffer referred to by > nnir-tmp-buffer, then trying to copy that buffer-local value to a > different buffer. Here's what I'm seeing, which confuses me: > > (with-current-buffer (get-buffer nnir-tmp-buffer) > nngnorb-attachment-file-list) --> proper, populated value > > (buffer-local-value > nngnorb-attachment-file-list > (get-buffer nnir-tmp-buffer)) --> nil Missing quote? E.g. (buffer-local-value 'nngnorb-attachment-file-list (get-buffer nnir-tmp-buffer)) HTH, Marco -- http://www.wahlzone.de PGP: 0x0A3AE6F2