branch: master commit 4296a86139b204f02fd3765e6b40ff69bd41b2f8 Author: Noam Postavsky <npost...@users.sourceforge.net> Commit: Noam Postavsky <npost...@users.sourceforge.net>
yasnippet.el (yas--quote-string): Remove. --- yasnippet.el | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/yasnippet.el b/yasnippet.el index 00ff3d2..5136fe9 100644 --- a/yasnippet.el +++ b/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))