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: Eric Abrahamsen
Subject: Re: eval-after-load confusion
Date: Wed, 30 Apr 2014 17:28:30 +0800
User-agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3 (gnu/linux)

Nicolas Richard <address@hidden> writes:

> Eric Abrahamsen <address@hidden> 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...




reply via email to

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