mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
M-x delete-trailing-whitespace
* yasnippet.el: delete-trailing-whitespace * yasnippet-tests.el: delete-trailing-whitespace Copyright-paperwork-exempt: yes (trivial)
This commit is contained in:
parent
beb02e5e9e
commit
3aa7cb29d4
@ -328,7 +328,7 @@ TODO: correct this bug!"
|
||||
|
||||
;; See issue #497. To understand this test, follow the example of the
|
||||
;; `yas-key-syntaxes' docstring.
|
||||
;;
|
||||
;;
|
||||
(ert-deftest complicated-yas-key-syntaxes ()
|
||||
(with-temp-buffer
|
||||
(yas-saving-variables
|
||||
@ -736,7 +736,7 @@ TODO: be meaner"
|
||||
(should (not (eq (key-binding (yas--read-keybinding "TAB")) 'yas-expand)))
|
||||
(should (eq (key-binding (yas--read-keybinding "SPC")) 'yas-expand))))
|
||||
;; FIXME: actually should restore to whatever saved values where there.
|
||||
;;
|
||||
;;
|
||||
(define-key yas-minor-mode-map [tab] 'yas-expand)
|
||||
(define-key yas-minor-mode-map (kbd "TAB") 'yas-expand)
|
||||
(define-key yas-minor-mode-map (kbd "SPC") nil)))
|
||||
|
10
yasnippet.el
10
yasnippet.el
@ -1750,8 +1750,8 @@ With prefix argument USE-JIT do jit-loading of snippets."
|
||||
(funcall fun)))
|
||||
;; Look for buffers that are already in `mode-sym', and so
|
||||
;; need the new snippets immediately...
|
||||
;;
|
||||
(when use-jit
|
||||
;;
|
||||
(when use-jit
|
||||
(cl-loop for buffer in (buffer-list)
|
||||
do (with-current-buffer buffer
|
||||
(when (eq major-mode mode-sym)
|
||||
@ -1759,7 +1759,7 @@ With prefix argument USE-JIT do jit-loading of snippets."
|
||||
(push buffer impatient-buffers)))))))
|
||||
;; ...after TOP-LEVEL-DIR has been completely loaded, call
|
||||
;; `yas--load-pending-jits' in these impatient buffers.
|
||||
;;
|
||||
;;
|
||||
(cl-loop for buffer in impatient-buffers
|
||||
do (with-current-buffer buffer (yas--load-pending-jits))))
|
||||
(when interactive
|
||||
@ -2225,7 +2225,7 @@ Common gateway for `yas-expand-from-trigger-key' and
|
||||
;; loops when other extensions use mechanisms similar
|
||||
;; to `yas--keybinding-beyond-yasnippet'. (github #525
|
||||
;; and #526)
|
||||
;;
|
||||
;;
|
||||
(yas-minor-mode nil)
|
||||
(beyond-yasnippet (yas--keybinding-beyond-yasnippet)))
|
||||
(yas--message 4 "Falling back to %s" beyond-yasnippet)
|
||||
@ -3429,7 +3429,7 @@ progress."
|
||||
;; As of github #537 this no longer inhibits the command by issuing an
|
||||
;; error: all the snippets at point, including nested snippets, are
|
||||
;; automatically commited and the current command can proceed.
|
||||
;;
|
||||
;;
|
||||
(defun yas--make-move-field-protection-overlays (snippet field)
|
||||
"Place protection overlays surrounding SNIPPET's FIELD.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user