emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/org-contacts ca3b10d5a8 098/154: org-contacts.el: Fix o


From: ELPA Syncer
Subject: [elpa] externals/org-contacts ca3b10d5a8 098/154: org-contacts.el: Fix org-store-link error caused by org-contacts
Date: Fri, 9 Sep 2022 15:58:43 -0400 (EDT)

branch: externals/org-contacts
commit ca3b10d5a81c02f72c36cd1adf1e6d3a42e69bde
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>

    org-contacts.el: Fix org-store-link error caused by org-contacts
    
    * contrib/lisp/org-contacts.el (org-contacts-link-store): Fix Org store
    link by adding missing condition for org-contacts.
---
 org-contacts.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/org-contacts.el b/org-contacts.el
index 310166d534..44ba455c4f 100644
--- a/org-contacts.el
+++ b/org-contacts.el
@@ -1157,8 +1157,8 @@ are effectively trimmed).  If nil, all zero-length 
substrings are retained."
 
 (defun org-contacts-link-store ()
   "Store the contact in `org-contacts-files' with a link."
-  (when (eq major-mode 'org-mode)
-    ;; (member (buffer-file-name) (mapcar 'expand-file-name 
org-contacts-files))
+  (when (and (eq major-mode 'org-mode)
+            (member (buffer-file-name) (mapcar 'expand-file-name 
org-contacts-files)))
     (let ((headline-str (substring-no-properties (org-get-heading t t t t))))
       (org-store-link-props
        :type "org-contact"



reply via email to

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