From: Syohei YOSHIDA Date: Thu, 26 Mar 2015 02:34:45 +0000 (+0900) Subject: Fix for wrong variable name X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=commitdiff_plain;h=b644188e26279d3c624cfe40e858dd011c30f0b1 Fix for wrong variable name --- 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))) diff --git a/org-ref.el b/org-ref.el index a3ad826..080fa5e 100644 --- a/org-ref.el +++ b/org-ref.el @@ -972,7 +972,7 @@ ARG does nothing." (org-ref-count-labels label)))) (lambda (keyword desc format) (cond - ((eq format 'html) (format "()" path)) + ((eq format 'html) (format "()" keyword)) ((eq format 'latex) (format "\\label{%s}" keyword))))) @@ -1051,7 +1051,7 @@ ARG does nothing." ;formatting (lambda (keyword desc format) (cond - ((eq format 'html) (format "(%s)" path)) + ((eq format 'html) (format "(%s)" keyword)) ((eq format 'latex) (format "\\ref{%s}" keyword))))) diff --git a/wos.el b/wos.el index ff72a67..b8bbba8 100644 --- a/wos.el +++ b/wos.el @@ -36,7 +36,7 @@ (format "%s" (format "http://gateway.webofknowledge.com/gateway/Gateway.cgi?topic=%s&GWVersion=2&SrcApp=WEB&SrcAuth=HSB&DestApp=UA&DestLinkType=GeneralSearchSummary" (s-join "+" - (split-string path))) + (split-string link))) (format "wos:%s" link) )))