mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
Fix issue #215
This commit is contained in:
parent
c43c55b573
commit
c9f35eda2e
12
yasnippet.el
Executable file → Normal file
12
yasnippet.el
Executable file → Normal file
@ -3016,16 +3016,14 @@ Also create some protection overlays"
|
||||
`(let ((yas/inhibit-overlay-hooks t))
|
||||
(progn ,@body)))
|
||||
|
||||
(defvar yas/snippet-beg nil "Beginning position of the last snippet commited.")
|
||||
(defvar yas/snippet-end nil "End position of the last snippet commited.")
|
||||
|
||||
(defun yas/commit-snippet (snippet)
|
||||
"Commit SNIPPET, but leave point as it is. This renders the
|
||||
snippet as ordinary text.
|
||||
snippet as ordinary text."
|
||||
|
||||
Return a buffer position where the point should be placed if
|
||||
exiting the snippet."
|
||||
|
||||
(let ((control-overlay (yas/snippet-control-overlay snippet))
|
||||
yas/snippet-beg
|
||||
yas/snippet-end)
|
||||
(let ((control-overlay (yas/snippet-control-overlay snippet)))
|
||||
;;
|
||||
;; Save the end of the moribund snippet in case we need to revive it
|
||||
;; its original expansion.
|
||||
|
Loading…
x
Reference in New Issue
Block a user