X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=blobdiff_plain;f=org-ref.el;h=cc3ac5f65ef84530de44d446168f60b0b8cb1e8f;hp=240adda8562d2f43b4a055d4a11727d33e289c3b;hb=6bf7673c665fc591126f30cfa5a62cbc7de73510;hpb=678da471c68827a2d58c6c1de6a044782e36fbac diff --git a/org-ref.el b/org-ref.el index 240adda..cc3ac5f 100644 --- a/org-ref.el +++ b/org-ref.el @@ -992,10 +992,8 @@ ARG does nothing." "on clicking goto the label. Navigate back with C-c &" (org-mark-ring-push) ;; next search from beginning of the buffer - ;; it is possible you would not find the label if narrowing is in effect (widen) - (unless (or ;; our label links @@ -1011,12 +1009,14 @@ ARG does nothing." ;; #+label: name org-definition (progn (goto-char (point-min)) - (re-search-forward (format "^#\\+label:\\s-*\\(%s\\)\\b" label) nil t)) + (re-search-forward + (format "^#\\+label:\\s-*\\(%s\\)\\b" label) nil t)) ;; org tblname (progn (goto-char (point-min)) - (re-search-forward (format "^#\\+tblname:\\s-*\\(%s\\)\\b" label) nil t)) + (re-search-forward + (format "^#\\+tblname:\\s-*\\(%s\\)\\b" label) nil t))) ;; we did not find anything, so go back to where we came (org-mark-ring-goto)