Ar an seachtú lá is fiche de mí Feabhra, scríobh Hrvoje Nikšić:
Aidan Kehoe <kehoea(a)parhasard.net> writes:
> -(defcustom mail-user-agent 'sendmail-user-agent
> +(defcustom mail-user-agent 'vm-user-agent
Shouldn't you check whether the VM package is available before using
it?
Yeah. I paid too much attention to the spirit of the rest of the file, which
happily uses the message, mh-e and gnus user agents without checking if they
were installed. Someone’s sync with the FSF was too faithful.
On further examination, is that even possible? The defcustom :initialize
argument seems to be related, but when I try to use it I get a core dump on
startup.
(defcustom mail-user-agent 'vm-user-agent
"*Your preference for a mail composition package. ..."
[...]
:initialize '(lambda (sym val)
(unless (default-boundp symbol)
(if (locate-library "vm")
(setq sym 'vm-user-agent)
(setq sym 'sendmail-user-agent))))
--
“I, for instance, am gung-ho about open source because my family is being
held hostage in Rob Malda’s basement. But who fact-checks me, or Enderle,
when we say something in public? No-one!” -- Danny O’Brien