polishing add function
authorJohn Kitchin <jkitchin@andrew.cmu.edu>
Sat, 31 Jan 2015 14:20:22 +0000 (09:20 -0500)
committerJohn Kitchin <jkitchin@andrew.cmu.edu>
Sat, 31 Jan 2015 14:20:22 +0000 (09:20 -0500)
doi-utils.org

index 1b08ee8..65ebe06 100644 (file)
@@ -567,7 +567,7 @@ prompt. Otherwise, you have to type or pste in a DOI."
                     (cond
                      ;; If region is active and it starts like a doi we want it.
                      ((and  (region-active-p)
-                            ((s-match "^10" (buffer-susbstring
+                             (s-match "^10" (buffer-substring
                                              (region-beginning)
                                              (region-end))))
                       (buffer-susbstring (region-beginning) (region-end)))
@@ -578,7 +578,7 @@ prompt. Otherwise, you have to type or pste in a DOI."
                      ;; otherwise, we have no initial input. You
                      ;; will have to type it in.
                      (t
-                      nil))))
+                      nil)))
         ;;  now get the bibfile to add it to
         (ido-completing-read
          "Bibfile: "