Skip to content

Commit ecabc30

Browse files
committed
Reduce the scope of with-suppressed-warnings
1 parent 844a83e commit ecabc30

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Diff for: cider-mode.el

+3-2
Original file line numberDiff line numberDiff line change
@@ -577,8 +577,9 @@ loaded yet, this will be shown in Clojure buffers next to the Clojure menu."
577577

578578
;;;###autoload
579579
(with-eval-after-load 'clojure-ts-mode
580-
(with-suppressed-warnings ((free-vars clojure-ts-mode-map))
581-
(cider--setup-menu-for-clojure-major-mode clojure-ts-mode-map)))
580+
(cider--setup-menu-for-clojure-major-mode
581+
(with-suppressed-warnings ((free-vars clojure-ts-mode-map))
582+
clojure-ts-mode-map)))
582583

583584
;;; Dynamic indentation
584585
(defcustom cider-dynamic-indentation t

Diff for: cider.el

+4-3
Original file line numberDiff line numberDiff line change
@@ -2110,9 +2110,10 @@ alternative to the default is `cider-random-tip'."
21102110

21112111
;;;###autoload
21122112
(with-eval-after-load 'clojure-ts-mode
2113-
;; Byte compiling will issue a warning here if clojure-ts-mode is not installed.
2114-
(with-suppressed-warnings ((free-vars clojure-ts-mode-map))
2115-
(cider--setup-clojure-major-mode clojure-ts-mode-map 'clojure-ts-mode-hook)))
2113+
(cider--setup-clojure-major-mode
2114+
(with-suppressed-warnings ((free-vars clojure-ts-mode-map))
2115+
clojure-ts-mode-map)
2116+
'clojure-ts-mode-hook))
21162117

21172118
(provide 'cider)
21182119

0 commit comments

Comments
 (0)