mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
* Fix issue 124 - "yas/new-snippet default template creates spurious 'k-e-y-b-i-n-d-i-n-g' binding"
This commit is contained in:
parent
b645492b8d
commit
f3ff02272c
@ -1181,7 +1181,8 @@ return an expression that when evaluated will issue an error."
|
|||||||
|
|
||||||
(defun yas/read-keybinding (keybinding)
|
(defun yas/read-keybinding (keybinding)
|
||||||
"Read KEYBINDING as a snippet keybinding, return a vector."
|
"Read KEYBINDING as a snippet keybinding, return a vector."
|
||||||
(when keybinding
|
(when (and keybinding
|
||||||
|
(not (string-match "keybinding" keybinding)))
|
||||||
(condition-case err
|
(condition-case err
|
||||||
(let ((keybinding-string (or (and (string-match "\".*\"" keybinding)
|
(let ((keybinding-string (or (and (string-match "\".*\"" keybinding)
|
||||||
(read keybinding))
|
(read keybinding))
|
||||||
@ -2203,7 +2204,7 @@ lurking."
|
|||||||
# -*- mode: snippet -*-
|
# -*- mode: snippet -*-
|
||||||
# name: $1
|
# name: $1
|
||||||
# key: $2${3:
|
# key: $2${3:
|
||||||
# binding: \"${4:direct-keybinding}\"}${5:
|
# binding: ${4:direct-keybinding}}${5:
|
||||||
# expand-env: ((${6:some-var} ${7:some-value}))}
|
# expand-env: ((${6:some-var} ${7:some-value}))}
|
||||||
# --
|
# --
|
||||||
$0"))))
|
$0"))))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user