Re: add sender without mail if mail is in some ignored-list?
Kevin Brubeck Unhammer <[email protected]> Fri, 27 Mar 2020 19:55:47 +0100
| Newsgroups | gmane.emacs.bbdb.user |
|---|---|
| Message-ID | <[email protected]> |
Eric Abrahamsen <[email protected]> čálii: > Kevin Brubeck Unhammer <[email protected]> writes: > >> Pieter van Oostrum <[email protected]> čálii: >> >>> And, by the way, you shouldn't use the value of a defun, because its >> value is undefined. >> >> That was new to me; my init is full of (setq foo (defun …)) and I've >> never had any problems with that. E.g. I now have: >> >> bbdb-ignore-redundant-mails is a variable defined in ‘bbdb.el’. >> Its value is ‘my-bbdb-ignore-redundant-mails’ >> >> Getting a bit off-topic, but are there docs somewhere on what can go >> wrong with (setq foo (defun …))? > > I doubt there are docs on it, because I doubt it's occurred to anyone > else to try that :) > > The docstring of `defun' says its return value is undefined, which is > just computer manual speak for "don't do that". It's possible it works > by accident, but it could just as possibly stop working. It's safest to > use `defun' at toplevel, and then refer to it as > #'my-bbdb-ignore-redundant-mails in `setq' forms. Thanks! I didn't know this was undefined behaviour.
signature.asc
(application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEq9A0PxCu5rIo7lbX/DwefQCTFmcFAl5+TDMACgkQ/DwefQCT Fmd5SRAAkeNL3xJ1/lGqAGpAnqHlH9b29R47g0syDYWY2Hpg+XfcaWKmATGl6IoD 3p/VznmjPuCKgsDmlC/t526C1rngmCt9WO4X70UfRsjp1/9AfeXFz1Wa8BNU88vp qephHsX2F31SNtBhkr52uqeE+4stS0ytmqgh0xXTo0c0nKOH3fRYqqDVsRj1P7CF lv0MQ7D3LaDL9HPCfASOwzsy2/W0i8lCZxC1Wmfn0C5JWTi2k3LKkqMqvAWxGa7u yMDvb/kXg75RdsRUMsVop/Wp1ERZ52IcQVwU5R7PhGr01wPlt/UmOC1QW8B9H7fJ 4l6ihxSUJfUqQq/KLKpuEmisgaZs+TJWlR+W7dplumvqg1+U/pOQ5aRiHezyUTWF M+zI0zOKYTcHnX9XvIVX5JnA2O0t4yr0F0J4Qi8fpNiKX5rFbD6jvAkAq6aqC0fV bg7kOD/Ci9PaCwhXQvHDL0w56Dyvv3NWhUpE1eyfKEhwHMMFlZTFwqpxz5baHcJG 6s0GapBxL/unqXJ8zYyaxQ8w1y3hmRGcDcHPH4S+YwFQWhtIg9H8+FXsP+5OI+gK 6ktt8jpAr175ZnQhpxDcB/vcnu3EVAuouCCdt+mas0THJxsZ2Hx/uCTLLQfO6Q/o DUgkLQvIFt8pVFid4rvNnz6OvGqZxc7mp2YpuM2OYcQetsspe9w= =HNRb -----END PGP SIGNATURE-----