Skip to content

Commit

Permalink
Fixing #246: "epdfinfo: No such annotation: annot-X-Y"
Browse files Browse the repository at this point in the history
Somehow the annotations in buffer and file are out-of-sync.
  • Loading branch information
bramadams committed Feb 23, 2024
1 parent c69e765 commit c4a2a69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lisp/pdf-annot.el
Original file line number Diff line number Diff line change
Expand Up @@ -1512,6 +1512,7 @@ At any given point of time, only one annotation can be in edit mode."
(not (eq a pdf-annot-edit-contents--annotation)))
(with-current-buffer pdf-annot-edit-contents--buffer
(pdf-annot-edit-contents-finalize 'ask)))
(pdf-annot-getannots (pdf-view-current-page)) ; avoids "epdfinfo: No such annotation: annot-N-M"
(unless (buffer-live-p pdf-annot-edit-contents--buffer)
(setq pdf-annot-edit-contents--buffer
(get-buffer-create
Expand Down

0 comments on commit c4a2a69

Please sign in to comment.