Replace obsolete functions/commands
This commit is contained in:
parent
ed2e7a65f6
commit
e204df3c05
9 changed files with 11 additions and 11 deletions
|
@ -4,7 +4,7 @@
|
|||
(defun +snippets/goto-start-of-field ()
|
||||
"Go to the beginning of the current field."
|
||||
(interactive)
|
||||
(let* ((snippet (car (yas--snippets-at-point)))
|
||||
(let* ((snippet (car (yas-active-snippets)))
|
||||
(position (yas--field-start (yas--snippet-active-field snippet))))
|
||||
(if (= (point) position)
|
||||
(move-beginning-of-line 1)
|
||||
|
@ -14,7 +14,7 @@
|
|||
(defun +snippets/goto-end-of-field ()
|
||||
"Go to the end of the current field."
|
||||
(interactive)
|
||||
(let* ((snippet (car (yas--snippets-at-point)))
|
||||
(let* ((snippet (car (yas-active-snippets)))
|
||||
(position (yas--field-end (yas--snippet-active-field snippet))))
|
||||
(if (= (point) position)
|
||||
(move-end-of-line 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue