]> code.delx.au - gnu-emacs-elpa/commitdiff
Fix error when interprogram-cut-function unset
authorLeo Liu <sdl.web@gmail.com>
Sat, 28 Sep 2013 04:19:42 +0000 (12:19 +0800)
committerLeo Liu <sdl.web@gmail.com>
Sat, 28 Sep 2013 04:19:42 +0000 (12:19 +0800)
easy-kill.el

index 30df9a2af082da4d5f7891fb3cdff9a1e789c4aa..2bd0c17bb9f01c66316f9b00436a608a39f5423b 100644 (file)
@@ -51,7 +51,8 @@
   (when str
     (setq easy-kill-candidate str)
     ;; Immediately put it in clipboard for other applications.
-    (funcall interprogram-cut-function str)
+    (and interprogram-cut-function
+         (funcall interprogram-cut-function str))
     (easy-kill-message-nolog "%s" str)))
 
 (defun easy-kill-map ()