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

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

[elpa] master 4296a86 15/40: yasnippet.el (yas--quote-string): Remove.


From: Noam Postavsky
Subject: [elpa] master 4296a86 15/40: yasnippet.el (yas--quote-string): Remove.
Date: Wed, 26 Oct 2016 23:06:32 +0000 (UTC)

branch: master
commit 4296a86139b204f02fd3765e6b40ff69bd41b2f8
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    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))



reply via email to

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