[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gpastel fbccc7c 13/15: Use an override advice instead o
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gpastel fbccc7c 13/15: Use an override advice instead of replacing the variable's value |
Date: |
Wed, 19 Dec 2018 12:31:39 -0500 (EST) |
branch: externals/gpastel
commit fbccc7cc50a5587c8b492094bed052eb4f32bfa5
Author: Damien Cassou <address@hidden>
Commit: Damien Cassou <address@hidden>
Use an override advice instead of replacing the variable's value
This makes it simpler to go back to the state before
`gpastel-start-listening` was called.
---
gpastel.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gpastel.el b/gpastel.el
index 185318c..98f9592 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 (lambda ()))
+ (advice-add interprogram-paste-function :override #'ignore)
;; 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)
- [elpa] branch externals/gpastel created (now 9362fee), Stefan Monnier, 2018/12/19
- [elpa] externals/gpastel a5a2a44 01/15: Empty commit, Stefan Monnier, 2018/12/19
- [elpa] externals/gpastel 863065e 03/15: Add link to EXWM, Stefan Monnier, 2018/12/19
- [elpa] externals/gpastel f4046a5 05/15: Check compatibility with Emacs 24., Stefan Monnier, 2018/12/19
- [elpa] externals/gpastel 45f1798 11/15: Fix typo (thanks to Stefan Monnier for noticing), Stefan Monnier, 2018/12/19
- [elpa] externals/gpastel bf79d2e 06/15: Release 0.2.0, Stefan Monnier, 2018/12/19
- [elpa] externals/gpastel ae11a0a 10/15: Update snippet in README to force the focus, Stefan Monnier, 2018/12/19
- [elpa] externals/gpastel fbccc7c 13/15: Use an override advice instead of replacing the variable's value,
Stefan Monnier <=
- [elpa] externals/gpastel 927d344 07/15: Make interprogram-paste-function an empty lambda instead of nil, Stefan Monnier, 2018/12/19
- [elpa] externals/gpastel 21b7d79 09/15: Release 0.3.0, Stefan Monnier, 2018/12/19
- [elpa] externals/gpastel 4f80b88 08/15: Add EXWM-related snippets to README, Stefan Monnier, 2018/12/19
- [elpa] externals/gpastel 7bcdfdc 04/15: Explain EXWM binding a bit more., Stefan Monnier, 2018/12/19
- [elpa] externals/gpastel 9362fee 15/15: Add a global minor mode (idea from Stefan Monnier), Stefan Monnier, 2018/12/19
- [elpa] externals/gpastel c9e02e2 02/15: Initial version, Stefan Monnier, 2018/12/19
- [elpa] externals/gpastel fce251b 12/15: Upgrade Emacs requirement to at least 24.4, Stefan Monnier, 2018/12/19
- [elpa] externals/gpastel b2aab71 14/15: Save former value of a variable modified by gpastel-start-listening, Stefan Monnier, 2018/12/19