Fixes #664.
* yasnippet.el (yas--skip-and-clear-field-p): Only get
`delete-selection' property of `this-command' when it's a symbol.
(= (point) (yas--field-start field))
(require 'delsel)
;; `yank' sets `this-command' to t during execution.
- (let ((clearp (get (if (commandp this-command) this-command
- this-original-command)
- 'delete-selection)))
+ (let* ((command (if (commandp this-command) this-command
+ this-original-command))
+ (clearp (if (symbolp command) (get command 'delete-selection))))
(when (and (not (memq clearp '(yank supersede kill)))
(functionp clearp))
(setq clearp (funcall clearp)))