From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: buffer-local-value confusion Date: Wed, 08 Oct 2014 15:34:46 +0800 Message-ID: <87h9zfvwtl.fsf@ericabrahamsen.net> References: <84bnpnm366.fsf@tm6592.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1412753736 5643 80.91.229.3 (8 Oct 2014 07:35:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Oct 2014 07:35:36 +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:35:29 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 1XblmS-00043K-Ir for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Oct 2014 09:35:28 +0200 Original-Received: from localhost ([::1]:34708 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XblmS-0000sq-7S for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Oct 2014 03:35:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XblmC-0000r1-IK for help-gnu-emacs@gnu.org; Wed, 08 Oct 2014 03:35:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xblm6-0001Qq-EZ for help-gnu-emacs@gnu.org; Wed, 08 Oct 2014 03:35:12 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:38729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xblm6-0001QQ-9D for help-gnu-emacs@gnu.org; Wed, 08 Oct 2014 03:35:06 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xblm4-0003Vk-48 for help-gnu-emacs@gnu.org; Wed, 08 Oct 2014 09:35:04 +0200 Original-Received: from 50.56.99.223 ([50.56.99.223]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Oct 2014 09:35:04 +0200 Original-Received: from eric by 50.56.99.223 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Oct 2014 09:35:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 50.56.99.223 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:V0JlLSZynR4sj8QD94gEtZZ8Pmk= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:100339 Archived-At: Marco Wahl writes: > 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)) Dangit, that was it! That's the first time I've run into a quoted/not-quoted mistake that didn't result in an error, so that didn't even occur to me. Thanks! Eric