Skip to content

Commit

Permalink
update org-ref-version
Browse files Browse the repository at this point in the history
Reported in issue #1126. I guess the version is removed from the MELPA installation for some reason. This should at least provide some info on where the melpa directory is, which has some details on version in the directory name.
  • Loading branch information
jkitchin committed Nov 24, 2024
1 parent fd178ab commit a61fe2a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions org-ref-utils.el
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ Copies the string to the clipboard."
(setq org-version (with-temp-buffer
(insert-file-contents org-ref-el)
(goto-char (point-min))
(re-search-forward ";; Version:")
(s-trim (buffer-substring (point)
(line-end-position)))))
(if
(re-search-forward ";; Version:" nil t)
(s-trim (buffer-substring (point)
(line-end-position)))
org-ref-dir)))

(setq git-commit
;; If in git, get current commit
Expand Down

0 comments on commit a61fe2a

Please sign in to comment.