X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=blobdiff_plain;f=arxiv.el;h=4ca96afa9f6e24964776a0c49a43215d74cdba69;hp=5b4a8e0427cdf6600a73aa94dfe5f1e134c0138e;hb=HEAD;hpb=f6a6ac450ac52f98255ef184800775a2163414b7 diff --git a/arxiv.el b/arxiv.el index 5b4a8e0..4ca96af 100644 --- a/arxiv.el +++ b/arxiv.el @@ -107,13 +107,13 @@ (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)))