-
Notifications
You must be signed in to change notification settings - Fork 16
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
Maintenance/pdf modularization #22
Conversation
private functions all start with `org-noter-pdf--...' (double dash) user function(s) start with `org-noter-pdf-... (single dash) `doc-view'-specific private functions are of the form `org-noter-pdf--doc-view-...'
to `org-noter-nov--...'
to `org-noter-djvu--...'
If I go to the first "buggy" commit, 7bd1145, and byte-compile Compilation only produces warnings:
no complaints against pdf-tools functions during compilation! |
So my current understanding is that the org-noter/modules/org-noter-pdf.el Lines 29 to 32 in 3856c1b
|
Resolution to PR #22. `org-noter-pdf--show-arrow` seems particularly sensitive to this issue. Now for each module there is a `condition-case ... require` both at compile time and run time. Ugly, but it seems to work.
Works fine here, thanks a lot ! |
@petermao I can't seem to reproduce this. Can you tell me what you need to do to get this error? I manually invoke My |
Works fine here too (I could only do limited testing, though). |
With 7bd1145, when I run the compiled I think it's stable enough to merge. We can revisit my ugly code if you (@dmitrym0) find a cleaner way to implement this: org-noter/modules/org-noter-pdf.el Lines 29 to 35 in d541042
|
I'm trying to move all
pdf-tools
-specific functions out of-core.el
and intomodules/-pdf.el
. The first 3 commits are just renames so everything in the modules start withorg-noter-<module>--...
. 46e639a moves the-show-arrow
function, makes a hook and adds the moved function to the hook in the usual way.In 7bd1145, I take the
(require 'pdf-tools)
out of-core.el
and it breaks the packaged version of org-noter, but not my local copy. Specifically, the arrow stops showing up and emacs claims it knows nothing about the pdf-tools functionpdf-view-current-overlay
.In be25512, the explicit call outside of
condition-case
fixes the "bug," but that subverts the intent of thecondition-case
that was brought in at PR #13 to fix issue #9.1aaea12 shows that the calls to
declare-function
have no effect on the behavior of the code.