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: eval-after-load confusion Date: Wed, 30 Apr 2014 17:28:30 +0800 Message-ID: <87zjj3go8x.fsf@ericabrahamsen.net> References: <87k3a7i57h.fsf@ericabrahamsen.net> <87d2fzxjjm.fsf@geodiff-mac3.ulb.ac.be> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1398849960 31938 80.91.229.3 (30 Apr 2014 09:26:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Apr 2014 09:26:00 +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 Apr 30 11:25:53 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 1WfQm0-0005Xr-FQ for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Apr 2014 11:25:52 +0200 Original-Received: from localhost ([::1]:55543 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfQlz-00075Y-VY for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Apr 2014 05:25:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfQlk-00075H-DM for help-gnu-emacs@gnu.org; Wed, 30 Apr 2014 05:25:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfQlf-0005K1-21 for help-gnu-emacs@gnu.org; Wed, 30 Apr 2014 05:25:36 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:35597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfQle-0005Jv-RG for help-gnu-emacs@gnu.org; Wed, 30 Apr 2014 05:25:30 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WfQla-00050H-Kq for help-gnu-emacs@gnu.org; Wed, 30 Apr 2014 11:25:26 +0200 Original-Received: from 123.122.33.182 ([123.122.33.182]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Apr 2014 11:25:26 +0200 Original-Received: from eric by 123.122.33.182 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Apr 2014 11:25:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 123.122.33.182 User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:U+EMOsf7PVFmg2FcWbP2hSb8fCE= 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:97467 Archived-At: Nicolas Richard writes: > Eric Abrahamsen writes: >> ;; (eval-after-load 'message >> ;; (let ((ign-headers-list >> ;; (split-string message-ignored-mail-headers >> ;; "|")) >> ;; (our-val (concat gnorb-mail-header "\\"))) >> ;; (unless (member our-val ign-headers-list) >> ;; (setq ign-headers-list >> ;; `(,@(butlast ign-headers-list 1) ,our-val >> ;; ,@(last ign-headers-list 1))) >> ;; (setq message-ignored-mail-headers >> ;; (mapconcat >> ;; 'identity ign-headers-list "|"))))) >> >> If I leave this block uncommented, I get a "void variable" error on >> startup, referencing 'message-ignored-mail-headers. > > eval-after-load is a (normal) function, which means that each of its > argument is evaluated first, then eval-after-load is called with those > values. Adding a single quote before the (let ...) form should help. Gah, I knew it was something stupid, thank you. And apologies for wasting the internet...