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
Describe the bug
When I open a PDF-File from an Org File the PDF gets opened in a new Buffer. But the Buffer with the Org-File gets replaced by the following warning: Warning (pdf-view): These modes are incompatible with `pdf-view-mode', please deactivate them (or customize pdf-view-incompatible-modes): display-line-numbers-mode
Steps to Reproduce the behaviour
See "Describe the bug" and "Your pdf-tools install".
What is the expected behaviour?
The Buffer with the Org File does not get replaced by the warning.
Desktop
OS: [Artix Linux x86_64]
Emacs Version: [29.1]
Poppler Version: [I dont know where and if Poppler is present on my System (its not in the path for my shell)]
pdf-tools customization / configuration that you use; I'll put all pdf related code from my config.org here:
(use-package pdf-tools
:init (pdf-tools-install))
(use-package org-noter-pdftools
:after org-noter
:config;; Add a function to ensure precise note is inserted
(defunorg-noter-pdftools-insert-precise-note (&optionaltoggle-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
(defunorg-noter-set-start-location (&optionalarg)
"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-onlyt)
(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-deletenil org-noter-property-note-location)
(org-entry-putnil 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)))
The text was updated successfully, but these errors were encountered:
malikwirin
changed the title
How to deactivate display-line-numbers-mode for pdf-view-mode
How to deactivate display-line-numbers-mode for pdf-view-mode?
Jan 11, 2024
Describe the bug
When I open a PDF-File from an Org File the PDF gets opened in a new Buffer. But the Buffer with the Org-File gets replaced by the following warning: Warning (pdf-view): These modes are incompatible with `pdf-view-mode', please deactivate them (or customize pdf-view-incompatible-modes): display-line-numbers-mode
Steps to Reproduce the behaviour
See "Describe the bug" and "Your pdf-tools install".
What is the expected behaviour?
The Buffer with the Org File does not get replaced by the warning.
Desktop
Your pdf-tools install
pdf-tools
Version: [Version: 1.1.0 Commit: a9c9a12]pdf-tools
customization / configuration that you use; I'll put all pdf related code from my config.org here:The text was updated successfully, but these errors were encountered: