Re: Problem with bbdb and wanderlust

Fred Gilham <[email protected]> Tue, 07 Jul 2020 13:02:12 -0700
Newsgroups gmane.emacs.bbdb.user
Message-ID <[email protected]>
On Mon, 06 Jul 2020 23:27:24 -0700,
David Maus wrote:
> 
> The attach patch should fix this issue. It uses the sticky buffer name
> if the summary is sticky and the regular buffer name if it is not.
> 
> Best,
>   -- David
>
> .....
>
>  lisp/bbdb-wl.el | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/lisp/bbdb-wl.el b/lisp/bbdb-wl.el
> index b20b61a..3d16480 100644
> --- a/lisp/bbdb-wl.el
> +++ b/lisp/bbdb-wl.el
> @@ -33,11 +33,15 @@
>  (eval-and-compile
>    (autoload 'wl-summary-message-number "wl-summary")
>    (autoload 'elmo-message-entity "elmo-msgdb")
> -  (autoload 'elmo-message-entity-field "elmo-msgdb"))
> +  (autoload 'elmo-message-entity-field "elmo-msgdb")
> +  (autoload 'elmo-folder-name-internal "elmo"))
>  
>  ;;;###autoload
>  (defun bbdb/wl-header (header)
> -  (with-current-buffer wl-summary-buffer-name
> +  (with-current-buffer (if (wl-summary-sticky-p)
> +                           (wl-summary-sticky-buffer-name
> +                            (elmo-folder-name-internal wl-summary-buffer-elmo-folder))
> +                         wl-summary-buffer-name)
>      (elmo-message-entity-field
>       (elmo-message-entity wl-summary-buffer-elmo-folder
>                            (wl-summary-message-number))
> -- 
> 2.26.2
> 

Seems to work! Thanks!

-- 
   just make me lighter
   make me lighter still
     'til the yellow of the sun takes me

   [oh what Lazarus saw! I cannnot bear this anymore!]
                                                      -- Linshuang Lu