yasnippet.el (yas--quote-string): Remove.

This commit is contained in:
Noam Postavsky 2016-06-28 19:27:25 -04:00
parent 8907fd1d42
commit 4296a86139

View File

@ -1914,19 +1914,6 @@ prefix argument."
(funcall fun)) (funcall fun))
(remhash mode yas--scheduled-jit-loads)))) (remhash mode yas--scheduled-jit-loads))))
;; (when (<= emacs-major-version 22)
;; (add-hook 'after-change-major-mode-hook 'yas--load-pending-jits))
(defun yas--quote-string (string)
"Escape and quote STRING.
foo\"bar\\! -> \"foo\\\"bar\\\\!\""
(concat "\""
(replace-regexp-in-string "[\\\"]"
"\\\\\\&"
string
t)
"\""))
(defun yas-escape-text (text) (defun yas-escape-text (text)
"Escape TEXT for snippet." "Escape TEXT for snippet."
(replace-regexp-in-string "[\\$]" "\\\\\\&" text)) (replace-regexp-in-string "[\\$]" "\\\\\\&" text))