-
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
README feedback #12
Comments
True. Will remove this part.
Better fix this then to fail gracefully. I will most likely not be able |
Thanks to Kaushal Modi for the feedback in issue 12 over at the GitHub mirror: <#12>.
This should fix the error reported by Kaushal Modi in issue 12: <#12>.
I believe I fixed this while also moving the relevant code to its own file instead of keeping it in (defun denote-retrieve--search (regexp)
"Search for REGEXP in the current buffer."
(save-excursion
(save-restriction
(widen)
(goto-char (point-min))
(re-search-forward regexp nil t 1)
(match-string-no-properties 1))))
(defun denote-retrieve--find-value (regexp)
"Return value from REGEXP by searching the file."
(or (denote-retrieve--search regexp)
(user-error "Cannot retrieve %s" regexp))) |
Thanks! I'll close this issue then. |
Thank you! |
Is it safe to suggest that? Some user might do that and then wonder whey
denote-link
doesn't work.Additionally, if there is no identifier match,
denote-link
throws an error with backtrace i.e. it's not an elegantuser-error
.The text was updated successfully, but these errors were encountered: