From a6a2922c75fa06fb2496d2ba59520a121205fd26 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Thu, 3 Mar 2016 10:45:20 +0100 Subject: Handle .ino files with c++-mode. Upgrade yasnippet and yaml. --- .emacs.d/lisp/yasnippet.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.emacs.d/lisp/yasnippet.el') diff --git a/.emacs.d/lisp/yasnippet.el b/.emacs.d/lisp/yasnippet.el index 69d6b26..b68389f 100644 --- a/.emacs.d/lisp/yasnippet.el +++ b/.emacs.d/lisp/yasnippet.el @@ -3390,9 +3390,9 @@ BEG, END and LENGTH like overlay modification hooks." (= (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))) -- cgit v1.3