mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
emacs22 compatibility
This commit is contained in:
parent
4713bba467
commit
13a2e50bbe
@ -197,7 +197,7 @@ TODO: correct this bug!"
|
||||
(find-file-noselect ".emacs.d/snippets/c-mode/stupidsnippet")
|
||||
(insert "something")
|
||||
(save-buffer)
|
||||
(kill-buffer))
|
||||
(kill-buffer (current-buffer)))
|
||||
(test-compiled-snippets-mtime)
|
||||
;; delete a snippet file
|
||||
;;
|
||||
@ -209,7 +209,7 @@ TODO: correct this bug!"
|
||||
(with-current-buffer (find-file-noselect ".emacs.d/snippets/c-mode/anotherstupidsnippet")
|
||||
(insert "blablabla")
|
||||
(save-buffer)
|
||||
(kill-buffer))
|
||||
(kill-buffer (current-buffer)))
|
||||
(test-compiled-snippets-mtime))))))
|
||||
|
||||
|
||||
|
@ -1681,7 +1681,7 @@ Optional USE-JIT use jit-loading of snippets."
|
||||
(yas/subdirs dir 'files 'relative))))
|
||||
|
||||
(defun yas/compile-calculate-md5 (files-and-mtimes)
|
||||
(secure-hash 'md5 (mapconcat #'(lambda (c) (format "%s%f" (car c) (float-time (cdr c)))) files-and-mtimes " ")))
|
||||
(md5 (mapconcat #'(lambda (c) (format "%s%f" (car c) (float-time (cdr c)))) files-and-mtimes " ")))
|
||||
|
||||
(defun yas/recompile-directory-maybe (directory mode-sym)
|
||||
(flet ((recompile ()
|
||||
|
Loading…
x
Reference in New Issue
Block a user