help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: eval-after-load confusion


From: Nicolas Richard
Subject: Re: eval-after-load confusion
Date: Wed, 30 Apr 2014 11:18:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.90 (gnu/linux)

Eric Abrahamsen <eric@ericabrahamsen.net> 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.

-- 
Nico.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]