]> git.donarmstrong.com Git - org-ref.git/commitdiff
clean up and add description
authorJohn Kitchin <jkitchin@andrew.cmu.edu>
Sun, 25 Jan 2015 16:37:40 +0000 (11:37 -0500)
committerJohn Kitchin <jkitchin@andrew.cmu.edu>
Sun, 25 Jan 2015 16:37:40 +0000 (11:37 -0500)
org-ref.org

index d4dc2a40f5f0169b1067a2e72e79af7983b52910..c6c3a67a755410ac97d2f78f0747999f5abb7ee5 100644 (file)
@@ -2879,12 +2879,12 @@ Checks for pdf and doi, and add appropriate functions."
     (when (string= doi "") (setq doi nil))
     (when (string= url "") (setq url nil))
 
     (when (string= doi "") (setq doi nil))
     (when (string= url "") (setq url nil))
 
+    ;; Conditional pdf functions
     (if (file-exists-p pdf-file)
        (add-to-list
         'candidates
         '("Open pdf" . org-ref-open-pdf-at-point)
     (if (file-exists-p pdf-file)
        (add-to-list
         'candidates
         '("Open pdf" . org-ref-open-pdf-at-point)
-        t
-        )
+        t)
       (add-to-list
        'candidates
        '("Try to get pdf" . (lambda ()
       (add-to-list
        'candidates
        '("Try to get pdf" . (lambda ()
@@ -2900,6 +2900,7 @@ Checks for pdf and doi, and add appropriate functions."
      '("Open notes" . org-ref-open-notes-at-point)
      t)
 
      '("Open notes" . org-ref-open-notes-at-point)
      t)
 
+    ;; conditional url and doi functions
     (when (or url doi)
       (add-to-list
        'candidates
     (when (or url doi)
       (add-to-list
        'candidates