mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
rename fall-back to fallback
This commit is contained in:
parent
88bc80164f
commit
7591c6e588
@ -166,7 +166,7 @@ Here's an example:
|
|||||||
'(require-snippet-condition . force-in-comment)
|
'(require-snippet-condition . force-in-comment)
|
||||||
t))))")
|
t))))")
|
||||||
|
|
||||||
(defvar yas/fall-back-behavior 'call-other-command
|
(defvar yas/fallback-behavior 'call-other-command
|
||||||
"The fall back behavior of YASnippet when it can't find a snippet
|
"The fall back behavior of YASnippet when it can't find a snippet
|
||||||
to expand.
|
to expand.
|
||||||
|
|
||||||
@ -1125,7 +1125,7 @@ when the condition evaluated to non-nil."
|
|||||||
"Integrate with hippie expand. Just put this function in
|
"Integrate with hippie expand. Just put this function in
|
||||||
`hippie-expand-try-functions-list'."
|
`hippie-expand-try-functions-list'."
|
||||||
(if (not first-time?)
|
(if (not first-time?)
|
||||||
(let ((yas/fall-back-behavior 'return-nil))
|
(let ((yas/fallback-behavior 'return-nil))
|
||||||
(yas/expand))
|
(yas/expand))
|
||||||
(when (and (null (car buffer-undo-list))
|
(when (and (null (car buffer-undo-list))
|
||||||
(eq 'apply
|
(eq 'apply
|
||||||
@ -1156,7 +1156,7 @@ when the condition evaluated to non-nil."
|
|||||||
(progn (yas/expand-snippet start end template)
|
(progn (yas/expand-snippet start end template)
|
||||||
'expanded) ; expanded successfully
|
'expanded) ; expanded successfully
|
||||||
'interruptted)) ; interrupted by user
|
'interruptted)) ; interrupted by user
|
||||||
(if (eq yas/fall-back-behavior 'return-nil)
|
(if (eq yas/fallback-behavior 'return-nil)
|
||||||
nil ; return nil
|
nil ; return nil
|
||||||
(let* ((yas/minor-mode nil)
|
(let* ((yas/minor-mode nil)
|
||||||
(command (key-binding yas/trigger-key)))
|
(command (key-binding yas/trigger-key)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user