hyperbole-users
[Top][All Lists]
Advanced

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

Re: hyperbole keeps resetting hyrolo-file-list to its default state


From: Marcus Kammer
Subject: Re: hyperbole keeps resetting hyrolo-file-list to its default state
Date: Tue, 07 Feb 2023 19:29:30 +0100

Hello Robert,

I replaced the function in hyrolo.el with the one you provided and it is
working!

Thank you for your reply!

Robert Weiner <rsw@gnu.org> writes:

> Hi Marcus:
>
> We have found and fixed the problem for the next Hyperbole release; it was in
> the hyrolo-initialize-file-list function in hyrolo.el.  Simply replace that
> function with the one below in your release, recompile the file and then
> restart your Emacs and your customized value should stay active.
>
> (defun hyrolo-initialize-file-list (&optional force-init-flag)
>   "Initialize the list of files used for HyRolo search if not already
> initialized."
>   (interactive)
>   (when (or force-init-flag (not (boundp 'hyrolo-file-list)) (not
> hyrolo-file-list))
>     (let* ((gcontacts (when (hyrolo-google-contacts-p)
> google-contacts-buffer-name))
>            (ms "~/.rolo.otl")
>            (posix "~/.rolo.otl")
>            (list (delq nil (if (and (boundp 'bbdb-file) (stringp bbdb-file))
>                                (if hyperb:microsoft-os-p
>                                    (list ms bbdb-file gcontacts)
>                                  (list  "~/.rolo.otl" bbdb-file gcontacts))
>                              (if hyperb:microsoft-os-p
>                                  (list ms gcontacts)
>                                (list posix gcontacts))))))
>       (setq hyrolo-file-list list)
>       (when (called-interactively-p 'interactive)
>         (message "HyRolo Search List: %S" list))
>       list)))
>

--
Cheers Marcus (Nuremberg . Germany)
Timezone: UTC+1
GnuPG Key: https://meta.sr.ht/~marcuskammer.pgp
Fingerprint: 86DB 0F30 F9F1 661A 54E2 1664 C374 817B E285 268F

Attachment: signature.asc
Description: PGP signature


reply via email to

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