I've installed Bookmarks+
from quelpa
recently, and everything was working fine until I made a minor tweak with my pdf-tools
config. Now I cannot jump to bookmarks of .pdf
files from any buffer, although I can see from the buffer list window that the corresponding files have been opened.
To be concrete, if I do C-x j j
and select a .pdf
bookmark, I get a message in the mini-buffer, which depends on what buffer I am currently viewing, although in all cases Emacs
does not jump to the appropriate .pdf
:
- If I am in the
*Bookmark List*
(or*scratch*
) buffer, the message is
pdf-info--normalize-file-or-buffer: Buffer is not associated with any file :*Bookmark List*
- if I am in a buffer viewing the
~/Org/work.org
file,
pdf-info-query: epdfinfo: Error opening /home/nonreligious/Org/work.org:PDF document is damaged
Again, the .pdf
file appears in the list of buffers that are open. No other bookmark (to .org
, .txt
, dired
buffers) has any issues.
I think these two issues raised on github are relevant:
The problem seems to be with pdf-view-bookmark-jump-handler
.
The second issue still being open suggests there isn't an official fix yet... but I hope someone else has come across this issue and has found a workaround.
I've tried restoring the original pdf-tools
configuration and restarting emacs
, but to no avail.
Using Emacs v27.2
, pdf-tools-20220522.13
.
emacs -Q
, don't load Bookmark+, load whatever else you minimally might need to usepdf-tools
, and try to access the PDF using the bookmark. Grepping tells me that the only use of "pdf" in Bookmark+ is in the default value ofbmkp-default-handlers-for-file-types
. So another thing you could try, after the first test, is to remove or change that association for*.pdf
files, and they try using Bookmark+ again.package-delete
of Bookmark+ to see what would happen. Now things work fine - I just jump to bookmarks withC-x r b
instead. I'd like to keep the functionality of Bookmark+ though, so it would be nice to get it back.M-x bmkp-send-bug-report
. Let me know your Emacs version and anything else relevant. Thx.