From 45b0570677571c2373428b8af31a65129715f5cd Mon Sep 17 00:00:00 2001 From: Vedang Manerikar Date: Sun, 2 Oct 2022 19:36:55 +0530 Subject: Fix: Warnings and <26.1 code Fix warnings and remove code for supporting older versions of Emacs from the following files: 1. `pdf-annot.el` Relates to: #26 --- lisp/pdf-annot.el | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lisp/pdf-annot.el b/lisp/pdf-annot.el index 81cb639..6126a6c 100644 --- a/lisp/pdf-annot.el +++ b/lisp/pdf-annot.el @@ -1371,10 +1371,7 @@ by a header." ;; latex-preview regardless of the user ;; configuration. (org-preview-latex-default-process 'dvipng) - ;; For backward compatibility with emacs-version < 26.1 - (org-latex-create-formula-image-program 'dvipng) - (org-format-latex-header - pdf-annot-latex-header) + (org-format-latex-header pdf-annot-latex-header) (temporary-file-directory (pdf-util-expand-file-name "pdf-annot-print-annotation-latex"))) (unless (file-directory-p temporary-file-directory) @@ -1464,8 +1461,8 @@ annotation's contents and otherwise `org-mode'." "Finalize edit-operations on an Annotation. If DO-SAVE is t, save the changes to annotation content without -asking. If DO-SAVE is 'ask, check if the user if contents should -be saved. +asking. If DO-SAVE is `ask', check with the user if contents +should be saved. If DO-KILL is t, kill all windows displaying the annotation contents. Else just bury the buffers." -- cgit v1.0