You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading from org-pdftools-20220320.301 to org-pdftools-20250210.118,
linking to specific pdf pages no longer works and links in org files to pdfs created
previously no longer work.
I am on GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.10)
If I try to create a link to a pdf page using C-c l, the error is:
org-pdftools-abbreviate-file-name: Symbol’s function definition is void: find-if
If I try to jump from a note to a pdf page using a previously created link using C-c C-o, the
error is:
org-pdftools-open-pdftools: Symbol’s function definition is void: getf
If I revert to org-pdftools-20220320.301 everything works again.
This is my org pdf tools configuration in my init.el, which worked fine until
the upgrade:
;; ORG-PDF-TOOLS CONFIGURATION
(require 'org-noter-pdftools)
(add-hook 'org-mode-hook 'org-pdftools-setup-link)
;; Add a function to ensure precise note is inserted
(defun org-noter-pdftools-insert-precise-note (&optional toggle-no-questions)
(interactive "P")
(org-noter--with-valid-session
(let ((org-noter-insert-note-no-questions (if toggle-no-questions
(not org-noter-insert-note-no-questions)
org-noter-insert-note-no-questions))
(org-pdftools-use-isearch-link t)
(org-pdftools-use-freepointer-annot t))
(org-noter-insert-note (org-noter--get-precise-info)))))
;; fix https://github.com/weirdNox/org-noter/pull/93/commits/f8349ae7575e599f375de1be6be2d0d5de4e6cbf
(defun org-noter-set-start-location (&optional arg)
"When opening a session with this document, go to the current location.
With a prefix ARG, remove start location."
(interactive "P")
(org-noter--with-valid-session
(let ((inhibit-read-only t)
(ast (org-noter--parse-root))
(location (org-noter--doc-approx-location (when (called-interactively-p 'any) 'interactive))))
(with-current-buffer (org-noter--session-notes-buffer session)
(org-with-wide-buffer
(goto-char (org-element-property :begin ast))
(if arg
(org-entry-delete nil org-noter-property-note-location)
(org-entry-put nil org-noter-property-note-location
(org-noter--pretty-print-location location))))))))
(with-eval-after-load 'pdf-annot
(add-hook 'pdf-annot-activate-handler-functions #'org-noter-pdftools-jump-to-note))
I also have a config that uses the use-package config pasted from your web site and the same issue occurs.
Thanks for any help!! I really depend on this functionality in my research!
Here are the warning messages during the upgrade:
In toplevel form:
org-pdftools.el:56:2: Warning: custom-declare-variable `org-pdftools-path-generator' docstring wider than 80 characters
org-pdftools.el:64:2: Warning: custom-declare-variable `org-pdftools-path-exporter' docstring wider than 80 characters
org-pdftools.el:74:2: Warning: custom-declare-variable `org-pdftools-path-export-translations' docstring wider than 80 characters
org-pdftools.el:93:2: Warning: custom-declare-variable `org-pdftools-export-style' docstring wider than 80 characters
In org-pdftools-abbreviate-file-name:
org-pdftools.el:145:62: Warning: Unused lexical variable `from'
org-pdftools.el:291:56: Warning: attempt to let-bind constant ‘t’
org-pdftools.el:295:51: Warning: attempt to let-bind constant ‘t’
In org-pdftools-open-pdftools:
org-pdftools.el:299:13: Warning: reference to free variable ‘pathlist’
org-pdftools.el:300:13: Warning: reference to free variable ‘occur-search-string’
In org-pdftools-setup-link:
org-pdftools.el:468:9: Warning: assignment to free variable ‘org-pdftools-prefix’
org-pdftools.el:469:28: Warning: reference to free variable ‘org-pdftools-prefix’
In org-pdftools-complete-link:
org-pdftools.el:496:21: Warning: Unused lexical argument `predicate'
In end of data:
org-pdftools.el:447:19: Warning: the function ‘org-export-file-uri’ is not known to be defined.
org-pdftools.el:224:13: Warning: the function ‘getf’ is not known to be defined.
org-pdftools.el:144:28: Warning: the function ‘find-if’ is not known to be defined.
org-pdftools.el:138:74: Warning: the function ‘equalp’ is not known to be defined.
And here are the compilation warnings on restart:
⛔ Warning (comp): org-pdftools.el:56:2: Warning: custom-declare-variable `org-pdftools-path-generator' docstring wider than 80 characters
⛔ Warning (comp): org-pdftools.el:64:2: Warning: custom-declare-variable `org-pdftools-path-exporter' docstring wider than 80 characters
⛔ Warning (comp): org-pdftools.el:74:2: Warning: custom-declare-variable `org-pdftools-path-export-translations' docstring wider than 80 characters
⛔ Warning (comp): org-pdftools.el:93:2: Warning: custom-declare-variable `org-pdftools-export-style' docstring wider than 80 characters
⛔ Warning (comp): org-pdftools.el:145:62: Warning: Unused lexical variable `from'
⛔ Warning (comp): org-pdftools.el:291:56: Warning: attempt to let-bind constant ‘t’
⛔ Warning (comp): org-pdftools.el:295:51: Warning: attempt to let-bind constant ‘t’
⛔ Warning (comp): org-pdftools.el:299:13: Warning: reference to free variable ‘pathlist’
⛔ Warning (comp): org-pdftools.el:300:13: Warning: reference to free variable ‘occur-search-string’
⛔ Warning (comp): org-pdftools.el:468:9: Warning: assignment to free variable ‘org-pdftools-prefix’
⛔ Warning (comp): org-pdftools.el:469:28: Warning: reference to free variable ‘org-pdftools-prefix’
⛔ Warning (comp): org-pdftools.el:496:21: Warning: Unused lexical argument `predicate'
⛔ Warning (comp): org-pdftools.el:447:19: Warning: the function ‘org-export-file-uri’ is not known to be defined.
⛔ Warning (comp): org-pdftools.el:224:13: Warning: the function ‘getf’ is not known to be defined.
⛔ Warning (comp): org-pdftools.el:144:28: Warning: the function ‘find-if’ is not known to be defined.
⛔ Warning (comp): org-pdftools.el:138:74: Warning: the function ‘equalp’ is not known to be defined.
After upgrading from org-pdftools-20220320.301 to org-pdftools-20250210.118,
linking to specific pdf pages no longer works and links in org files to pdfs created
previously no longer work.
I am on GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.10)
If I try to create a link to a pdf page using C-c l, the error is:
org-pdftools-abbreviate-file-name: Symbol’s function definition is void: find-if
If I try to jump from a note to a pdf page using a previously created link using C-c C-o, the
error is:
org-pdftools-open-pdftools: Symbol’s function definition is void: getf
If I revert to org-pdftools-20220320.301 everything works again.
This is my org pdf tools configuration in my init.el, which worked fine until
the upgrade:
I also have a config that uses the use-package config pasted from your web site and the same issue occurs.
Thanks for any help!! I really depend on this functionality in my research!
Here are the warning messages during the upgrade:
And here are the compilation warnings on restart:
Backtrace when doing C-c C-o:
Backtrace when doing C-c l
The text was updated successfully, but these errors were encountered: