[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hyperbole fd225ca347: hyrolo-initialize-file-list - Fix
From: |
ELPA Syncer |
Subject: |
[elpa] externals/hyperbole fd225ca347: hyrolo-initialize-file-list - Fix to not overwrite any user setting |
Date: |
Sun, 5 Feb 2023 16:57:46 -0500 (EST) |
branch: externals/hyperbole
commit fd225ca3474dbb5a3e4f409fc269fcaa980ac557
Author: Bob Weiner <rsw@gnu.org>
Commit: Bob Weiner <rsw@gnu.org>
hyrolo-initialize-file-list - Fix to not overwrite any user setting
---
ChangeLog | 5 +++++
hyrolo.el | 31 +++++++++++++++++--------------
2 files changed, 22 insertions(+), 14 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 5dda3af027..0e2b9a7484 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-02-05 Bob Weiner <rsw@gnu.org>
+
+* hyrolo.el (hyrolo-initialize-file-list): Fix to not overwrite any user
customized
+ value, if already initialized.
+
2023-02-04 Bob Weiner <rsw@gnu.org>
* kotl/kexport.el (kexport:html): Change 'output-to-buf-name' to
'output-to-buf'.
diff --git a/hyrolo.el b/hyrolo.el
index 7054fc4232..3a2cc54ec0 100644
--- a/hyrolo.el
+++ b/hyrolo.el
@@ -3,7 +3,7 @@
;; Author: Bob Weiner
;;
;; Orig-Date: 7-Jun-89 at 22:08:29
-;; Last-Mod: 15-Jan-23 at 16:55:37 by Mats Lidell
+;; Last-Mod: 5-Feb-23 at 15:23:10 by Bob Weiner
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
;;
@@ -148,21 +148,24 @@ use."
;; '("~/.rolo.otl" "~/.rolo.org")
;;;###autoload
-(defun hyrolo-initialize-file-list ()
- "Initialize the list of files used for HyRolo search."
+(defun hyrolo-initialize-file-list (&optional force-init-flag)
+ "Initialize the list of files used for HyRolo search if not already
initialized."
(interactive)
- (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))
+ (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 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))
+ (list ms gcontacts)
+ (list posix gcontacts))))))
+ (setq hyrolo-file-list list)
+ (when (called-interactively-p 'interactive)
+ (message "HyRolo Search List: %S" list))
+ list)))
(define-obsolete-variable-alias 'rolo-file-list 'hyrolo-file-list "06.00")
(defcustom hyrolo-file-list (hyrolo-initialize-file-list)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/hyperbole fd225ca347: hyrolo-initialize-file-list - Fix to not overwrite any user setting,
ELPA Syncer <=