branch: elpa/smartparens commit 90c59cb7107e3ea8e78d08314a1a9fec78114995 Author: Matus Goljer <matus.gol...@gmail.com> Commit: Matus Goljer <matus.gol...@gmail.com>
fix(ess): only test roxy if the regexp is bound and non-nil Fixes #1090 --- smartparens-ess.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smartparens-ess.el b/smartparens-ess.el index 15b923e..569a2ba 100644 --- a/smartparens-ess.el +++ b/smartparens-ess.el @@ -155,7 +155,7 @@ ARGS." (defun sp-ess-roxy-str-p (_id action _context) "Test if looking back at `ess-roxy-re'. ID, ACTION, CONTEXT." - (when (and (boundp 'ess-roxy-re) (eq action 'insert)) + (when (and (bound-and-true-p ess-roxy-re) (eq action 'insert)) (sp--looking-back-p ess-roxy-re))) (sp-with-modes 'ess-mode