branch: externals/gpastel
commit 927d344331c227e207d20ad7572d9d5986c0e195
Author: Damien Cassou <[email protected]>
Commit: Damien Cassou <[email protected]>

    Make interprogram-paste-function an empty lambda instead of nil
    
    It seems that some packages require this variable to reference a
    function.
---
 gpastel.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gpastel.el b/gpastel.el
index 6fce636..0fde714 100644
--- a/gpastel.el
+++ b/gpastel.el
@@ -125,7 +125,7 @@ all text in the GPaste clipboard."
   (when (gpastel--start-gpaste-daemon)
     ;; No need for `interprogram-paste-function' because GPaste will
     ;; tell us as soon as text is added to clipboard:
-    (setq interprogram-paste-function nil)
+    (setq interprogram-paste-function (lambda ()))
     ;; No need to save the system clipboard before killing in
     ;; Emacs because Emacs already knows about its content:
     (setq save-interprogram-paste-before-kill nil)

Reply via email to