From 7b013dbbdbaa692199616e5ef727b5d4e3149e63 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Thu, 1 Dec 2016 18:20:09 -0500 Subject: [PATCH] Keep yas--snippets-at-point for compatibility While officially it was an "internal" function, there were at least 2 other packages using it. * yasnippet.el (yas--snippets-at-point): Restore as obsolete alias of yas-active-snippets. Close #754. --- yasnippet.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yasnippet.el b/yasnippet.el index 46cadfd..5fa5687 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -3061,6 +3061,9 @@ equivalent to a range covering the whole buffer." (overlays-in beg end)))) #'>= :key #'yas--snippet-id)) +(define-obsolete-function-alias 'yas--snippets-at-point + 'yas-active-snippets "0.12") + (defun yas-next-field-or-maybe-expand () "Try to expand a snippet at a key before point.