Skip to content

Commit

Permalink
Try to prevent unused lexical variable warnings v2
Browse files Browse the repository at this point in the history
  • Loading branch information
tecosaur committed Jan 25, 2021
1 parent a795f0c commit 21807e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions org-pandoc-import-transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@ Argument OPERATION is the file operation to be applied, and ARGS its arguments."
(let ((org-pandoc-import-transient--currently-processing t)
(org-export-with-broken-links t)
(org-export-with-toc nil))
(eval-when-compile ; prevent "unused lexical variable" warnings
(ignore org-export-with-broken-links org-export-with-toc))
(ignore org-export-with-broken-links org-export-with-toc) ; Prevent "unused lexical variable" warnings
(apply operation args)
(when-let* ((file (nth 2 args))
(source-file (plist-get (cdr (assoc file org-pandoc-import-transient--files)) :source))
Expand Down

0 comments on commit 21807e5

Please sign in to comment.