Ar an tríú lá is fiche de mí Márta, scríobh Stephen J. Turnbull:
>> [...] What might be reasonable is a small facility to
search
>> for a package that provides a virtual feature, in this case
>> 'mua. Then the default mailer would be '(lambda ()
>> (interactive) (find-virtual-feature 'mua)).
Aidan> ... which will be evaluated once, on startup when the
Aidan> executable is dumped, at which point the packages available
Aidan> have nothing to do with what might be available at runtime,
Aidan> which is the problem I was trying to solve with the
Aidan> package-presence-default-tweaks variable.
What problem? lambda forms evaluate to themselves, no? So this will
just stay that way until the user does something about it.
Hey, I love the idea, and I’d love it even more if I could get it to
work. Give me a defvar statement on that principle that does something
useful for the mail-user-agent, bearing in mind that the initialisation code
will only be called on startup of the dumped executable. This, for me:
(defvar mail-user-agent
'(lambda ()
(cond
((featurep 'vm-autoloads)
vm-user-agent)
(t
sendmail-user-agent))))
gives
Invalid operation: Object type has no properties, (lambda nil (cond
((featurep (quote vm-autoloads)) vm-user-agent) (t sendmail-user-agent)))
when I press C-x m .
--
“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