]> git.donarmstrong.com Git - org-ref.git/blobdiff - arxiv.el
add back my makefile
[org-ref.git] / arxiv.el
index 5b4a8e0427cdf6600a73aa94dfe5f1e134c0138e..4ca96afa9f6e24964776a0c49a43215d74cdba69 100644 (file)
--- a/arxiv.el
+++ b/arxiv.el
     (url-copy-file pdf-url pdf)
     ;; now check if we got a pdf
     (with-temp-buffer
-      (insert-file-contents pdf-file)
+      (insert-file-contents pdf)
       ;; PDFS start with %PDF-1.x as the first few characters.
       (if (not (string= (buffer-substring 1 6) "%PDF-"))
          (progn
            (message "%s" (buffer-string))
-           (delete-file pdf-file))
-       (message "%s saved" pdf-file)))
+           (delete-file pdf))
+       (message "%s saved" pdf)))
 
     (org-open-file pdf)))