[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] scratch/org-contacts-rebased d1365ce 101/118: org-contacts.el: Us
From: |
Stefan Monnier |
Subject: |
[elpa] scratch/org-contacts-rebased d1365ce 101/118: org-contacts.el: Use `bound-and-true-p' to check (unbound) var |
Date: |
Fri, 12 Nov 2021 15:37:12 -0500 (EST) |
branch: scratch/org-contacts-rebased
commit d1365ce9e97bdfa77afcd66306affc0a2f62cafe
Author: David Florness <david@florness.com>
Commit: stardiviner <numbchild@gmail.com>
org-contacts.el: Use `bound-and-true-p' to check (unbound) var
* org-contacts.el (org-contacts-link-store): Use `bound-and-true-p' to
check the truthiness of org-id-link-to-org-use-id, which may or may
not be bound depending on whether org-id has been loaded. This
simplifies the code.
---
org-contacts.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/org-contacts.el b/org-contacts.el
index 7ad4255..3df1b52 100644
--- a/org-contacts.el
+++ b/org-contacts.el
@@ -1166,7 +1166,7 @@ are effectively trimmed). If nil, all zero-length
substrings are retained."
"Store the contact in `org-contacts-files' with a link."
(when (and (eq major-mode 'org-mode)
(member (buffer-file-name) (mapcar 'expand-file-name
org-contacts-files)))
- (if (and (featurep 'org-id) org-id-link-to-org-use-id)
+ (if (bound-and-true-p org-id-link-to-org-use-id)
(org-id-store-link)
(let ((headline-str (substring-no-properties (org-get-heading t t t t))))
(org-store-link-props
- [elpa] scratch/org-contacts-rebased 3beb906 057/118: org-contacts: Use progress-reporter for cache update message, (continued)
- [elpa] scratch/org-contacts-rebased 3beb906 057/118: org-contacts: Use progress-reporter for cache update message, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased 0c439a4 102/118: org-contacts.el: Fix store link function does not return link., Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased cf0668a 064/118: org-contacts: Provide ordering when using cycle completion, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased 8e07b36 082/118: contrib: move a few libraries to cl-lib in place of compile-time cl., Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased 9a80cca 085/118: org-contacts: Register "tel" link, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased 3ed6376 086/118: org-agenda: Remove unnecessary visibility modification, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased 9f46067 088/118: Deprecate `org-no-warnings' in favor of `with-no-warnings', Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased 8d0ca82 090/118: Update tel link definition, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased 58ea7f2 095/118: org-contacts.el: Fix org-store-link error caused by org-contacts, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased dcbbc77 097/118: org-contacts.el: Inherit face from org-link, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased d1365ce 101/118: org-contacts.el: Use `bound-and-true-p' to check (unbound) var,
Stefan Monnier <=
- [elpa] scratch/org-contacts-rebased 83f7226 103/118: Fix typo in 124cc7a1a, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased f81ebdc 105/118: Prefer HTTPS to HTTP for links to gnu.org, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased 50fff11 107/118: Don't use deprecated functions, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased ede6e73 108/118: Remove compatibility code, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased 3ad99fe 112/118: add README.org, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased c472159 113/118: Avoid *Org-Agenda* buffer use org-contacts-matcher in buffer-name, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased 7dd30d9 115/118: replace gnus-rescale-image with create-image property :height, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased 974f1b7 117/118: Add package introduction in README, Stefan Monnier, 2021/11/12
- [elpa] scratch/org-contacts-rebased 3f635df 118/118: Update source code metadata keywords and usage description, Stefan Monnier, 2021/11/12