Steinar Bang <[email protected]> writes:
> For anyone googling into this thread, here is my complete BBDB config in .emacs:
>
> (when (locate-library "bbdb")
> (require 'bbdb)
> (bbdb-initialize 'gnus 'message))
> (setq bbdb-user-mail-address-re "\\(sb@\\|steinar@my\\.domain\\.com\\)"
> bbdb-phone-style nil)
>
>
Since Emacs version 29, users should be using the macro
‘setopt’ for setting the values of user options instead of
the special form ‘setq’. This is a simple change to your
second expression:
(setopt bbdb-user-mail-address-re "\\(sb@\\|steinar@my\\.domain\\.com\\)"
bbdb-phone-style nil)
From Emacs’s etc/NEWS.29:
** New macro 'setopt'.
This is like 'setq', but is meant to be used for user
options instead of plain variables, and uses
'custom-set'/'set-default' to set them.
C-h f setopt:
Set VARIABLE/VALUE pairs, and return the final VALUE.
This is like ‘setq’, but is meant for user options instead of
plain variables. This means that ‘setopt’ will execute any
‘custom-set’ form associated with VARIABLE.
Note that ‘setopt’ will emit a warning if the type of a VALUE
does not match the type of the corresponding VARIABLE as
declared by ‘defcustom’. (VARIABLE will be assigned the value
even if it doesn’t match the type.)
--
The lyf so short, the craft so long to lerne.
- Geoffrey Chaucer, The Parliament of Birds.
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.