mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 05:03:04 +00:00
yasnippet.el (yas--quote-string): Remove.
This commit is contained in:
parent
8907fd1d42
commit
4296a86139
13
yasnippet.el
13
yasnippet.el
@ -1914,19 +1914,6 @@ prefix argument."
|
||||
(funcall fun))
|
||||
(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)
|
||||
"Escape TEXT for snippet."
|
||||
(replace-regexp-in-string "[\\$]" "\\\\\\&" text))
|
||||
|
Loading…
x
Reference in New Issue
Block a user