From: John Kitchin Date: Sun, 15 Mar 2015 23:07:50 +0000 (-0400) Subject: remove an apparent duplicate label finder. X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=commitdiff_plain;h=23bd30bb43dddb264021b31e7c23d1fac70fb097;hp=530a50f4a32429a94db2b70a7b71c788e90c66af remove an apparent duplicate label finder. --- diff --git a/org-ref.el b/org-ref.el index 1433b2f..8495d42 100644 --- a/org-ref.el +++ b/org-ref.el @@ -975,8 +975,10 @@ ARG does nothing." :type "custom_id" :link (format "[[#%s]]" (org-entry-get (point) "CUSTOM_ID")))) - ;; and to #+label: lines - (when (and (equal (org-element-type object) 'paragraph) + ;; and to #+label: lines. In a table these are retrieved by :name + ;; properties. + (when (and (-contains? '(paragraph table src-block) + (org-element-type object)) (org-element-property :name object)) (org-store-link-props :type "ref" @@ -1653,8 +1655,8 @@ Prompt for NEW-FILE includes bib files in `org-ref-default-bibliography', and bi (interactive) (doi-utils-crossref (org-ref-get-doi-at-point))) -;; *** Minibuffer menu - +;; *** DEPRECATED Minibuffer menu +;; See [[Helm bibtex setup]] (defun org-ref-cite-onclick-minibuffer-menu (&optional link-string) "Action when a cite link is clicked on. Provides a menu of context sensitive actions. If the bibtex entry @@ -2447,11 +2449,6 @@ Makes a new buffer with clickable links." labels) 1) ;; this is a multiply defined label. (let ((cp (point))) - (goto-char (point-min)) - (while (re-search-forward - (format "[^#+]label:%s\\s-" label) nil t) - (push (cons label (point-marker)) multiple-labels)) - (goto-char (point-min)) (while (re-search-forward (format "\\label{%s}\\s-?" label) nil t)