emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/smartparens b717bc411e 1/2: fix(escape): in case no escape


From: ELPA Syncer
Subject: [nongnu] elpa/smartparens b717bc411e 1/2: fix(escape): in case no escape syntax exists, assume \
Date: Fri, 4 Feb 2022 06:58:39 -0500 (EST)

branch: elpa/smartparens
commit b717bc411e0211394b81bf81faa1c013c15499c9
Author: Matus Goljer <matus.goljer@gmail.com>
Commit: Matus Goljer <matus.goljer@gmail.com>

    fix(escape): in case no escape syntax exists, assume \
    
    Fix #994
---
 smartparens.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/smartparens.el b/smartparens.el
index 7e59a7fc55..7498d9e37a 100644
--- a/smartparens.el
+++ b/smartparens.el
@@ -824,7 +824,9 @@ that depend on the active `major-mode'."
         (setq sp-escape-char (string char))))
     (unless sp-comment-char
       (when (= ?< (char-syntax char))
-        (setq sp-comment-char (string char))))))
+        (setq sp-comment-char (string char)))))
+  ;; in case no escape syntax is found, just assume the backspace
+  (unless sp-escape-char (setq sp-escape-char "\\")))
 
 (defun sp--maybe-init ()
   "Initialize the buffer if it is not already initialized.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]