summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVedang Manerikar <ved.manerikar@gmail.com>2022-10-02 19:36:55 +0530
committerVedang Manerikar <ved.manerikar@gmail.com>2022-10-02 19:36:55 +0530
commit45b0570677571c2373428b8af31a65129715f5cd (patch)
tree3e8f22ce4b1a7a5270dee07971456191d8c8af3f
parent1a0a30c54dc3effdba4781a2983115d4b6993260 (diff)
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
-rw-r--r--lisp/pdf-annot.el9
1 files 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."