mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
Add yas-backport-obsolete-alias option
* yasnippet.el (yas-backport-obsolete-alias): New option.
This commit is contained in:
parent
0d79e6988e
commit
bbfa1f0c9a
@ -386,6 +386,11 @@ the trigger key itself."
|
||||
:type '(repeat function)
|
||||
:group 'yasnippet)
|
||||
|
||||
(defcustom yas-backport-obsolete-alias t
|
||||
"If non-nil backport function and variables from old version of yasnippet."
|
||||
:type 'boolean
|
||||
:group 'yasnippet)
|
||||
|
||||
;; Only two faces, and one of them shouldn't even be used...
|
||||
;;
|
||||
(defface yas-field-highlight-face
|
||||
@ -4598,6 +4603,7 @@ and return the directory. Return nil if not found."
|
||||
|
||||
They are mapped to \"yas/*\" variants.")
|
||||
|
||||
(when yas-backport-obsolete-alias
|
||||
(dolist (sym yas--backported-syms)
|
||||
(let ((backported (intern (replace-regexp-in-string "\\`yas-" "yas/" (symbol-name sym)))))
|
||||
(when (boundp sym)
|
||||
@ -4605,7 +4611,7 @@ They are mapped to \"yas/*\" variants.")
|
||||
(defvaralias backported sym))
|
||||
(when (fboundp sym)
|
||||
(make-obsolete backported sym "yasnippet 0.8")
|
||||
(defalias backported sym))))
|
||||
(defalias backported sym)))))
|
||||
|
||||
(defvar yas--exported-syms
|
||||
(let (exported)
|
||||
|
Loading…
x
Reference in New Issue
Block a user