bbdb-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error with bbdb-check-name


From: Stefan Monnier
Subject: Re: error with bbdb-check-name
Date: Wed, 23 Sep 2020 10:54:18 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> Since commit e0eff7e1ee5003f7c557a83d655a7fc0b6b45fcc I get this error
>> when invoking bbdb:
>> 
>> Debugger entered--Lisp error: (invalid-function (fun (name) (let* ((tmp
>> (bbdb-gethash name '(fl-name lf-name aka))) (records (if record (remq
>> record tmp) tmp))) (if records (let ((msg (format "Name `%s' is already in
>> BBDB: %s" name ...))) (if (not warn) (error msg) (message msg) (sit-for
>> 1)))))))
>
> What version of emacs are you using?  The above code of BBDB uses
> cl-flet.  I know rather little about the internals of the `cl'
> macros.  But it looks to me as if something was screwed up for you
> with this macro.  (Are you using a compiled BBDB -- though I believe
> this should not matter.)

I think there's indeed a problem because `cl-lib` is not required.
IOW, I think we need something like the patch below,


        Stefan


diff --git a/bbdb.el b/bbdb.el
index 05967ecdb..051b21d09 100644
--- a/bbdb.el
+++ b/bbdb.el
@@ -37,6 +37,7 @@
 
 ;;; Code:
 
+(eval-when-compile (require 'cl-lib))
 (require 'timezone)
 (require 'bbdb-site)
 




reply via email to

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