From: John Kitchin Date: Mon, 20 Apr 2015 23:39:55 +0000 (-0400) Subject: Merge branch 'journaltitle' of https://github.com/brabalan/org-ref into brabalan... X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=commitdiff_plain;h=bcb55198ea214a432b009779a37c0246cde8c1df;hp=d9d107c9e0aeb8c285c6aeef774059fee0bbac6d Merge branch 'journaltitle' of https://github.com/brabalan/org-ref into brabalan-journaltitle --- diff --git a/doi-utils.el b/doi-utils.el index 7873687..fa79d57 100644 --- a/doi-utils.el +++ b/doi-utils.el @@ -555,15 +555,16 @@ prompt. Otherwise, you have to type or pste in a DOI." ;; Wrap in save-window-excursion to restore your window arrangement after this ;; is done. (save-window-excursion - (find-file bibfile) - ;; Check if the doi already exists - (goto-char (point-min)) - (if (search-forward doi nil t) - (message "%s is already in this file" doi) - (end-of-buffer) - (insert "\n\n") - (doi-utils-insert-bibtex-entry-from-doi doi) - (save-buffer)))) + (with-current-buffer + (find-file-noselect bibfile) + ;; Check if the doi already exists + (goto-char (point-min)) + (if (search-forward doi nil t) + (message "%s is already in this file" doi) + (end-of-buffer) + (insert "\n\n") + (doi-utils-insert-bibtex-entry-from-doi doi) + (save-buffer))))) ;; * Updating bibtex entries diff --git a/sci-id.el b/sci-id.el index 7f4b880..e29388c 100644 --- a/sci-id.el +++ b/sci-id.el @@ -59,7 +59,7 @@ (lambda (keyword desc format) (cond ((eq format 'latex) - (format "\\href{http://www.scopus.com/authid/detail.url\\?origin=AuthorProfile&authorId=%s}{%s}" keyword keyword)) + (format "\\href{http://www.scopus.com/authid/detail.url\\?origin=AuthorProfile&authorId=%s}{%s}" keyword desc)) ((eq format 'html) (format "scopusid:%s" keyword keyword)))))