Fix void variable error: smartparens-strict-mode

This commit is contained in:
Eivind Fonn 2015-11-25 18:35:10 +01:00 committed by syl20bnr
parent 42d1135438
commit 7adca30aeb

View file

@ -387,10 +387,7 @@ Example: (evil-map visual \"<\" \"<gv\")"
(when (configuration-layer/package-usedp 'smartparens)
(defadvice evil-delete-backward-char-and-join
(around spacemacs/evil-delete-backward-char-and-join activate)
(defvar smartparens-strict-mode)
;; defadvice compiles this sexp generating a compiler warning for a
;; free variable reference. The line above fixes this
(if smartparens-strict-mode
(if (bound-and-true-p smartparens-strict-mode)
(call-interactively 'sp-backward-delete-char)
ad-do-it)))