branch: elpa/meow
commit aa8aec19e70369b547176e625f5b95c4a8565e8e
Author: Romain <[email protected]>
Commit: GitHub <[email protected]>

    fix diff-hl shim: update deprecated variable (#793)
    
    diff-hl-show-hunk-inline-popup was renamed to diff-hl-show-hunk-inline
    so the advice was not working properly.
---
 meow-shims.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meow-shims.el b/meow-shims.el
index cbefd3f572..e60ccd704e 100644
--- a/meow-shims.el
+++ b/meow-shims.el
@@ -135,11 +135,11 @@ Argument ENABLE non-nil means turn on."
   "Setup diff-hl."
   (if enable
       (progn
-        (advice-add 'diff-hl-show-hunk-inline-popup :before 
'meow--switch-to-motion)
+        (advice-add 'diff-hl-show-hunk-inline :before 'meow--switch-to-motion)
         (advice-add 'diff-hl-show-hunk--click :before 'meow--switch-to-motion)
         (advice-add 'diff-hl-show-hunk-posframe :before 
'meow--switch-to-motion)
         (advice-add 'diff-hl-show-hunk-hide :after 'meow--switch-to-normal))
-    (advice-remove 'diff-hl-show-hunk-inline-popup 'meow--switch-to-motion)
+    (advice-remove 'diff-hl-show-hunk-inline 'meow--switch-to-motion)
     (advice-remove 'diff-hl-show-hunk--click 'meow--switch-to-motion)
     (advice-remove 'diff-hl-show-hunk-posframe 'meow--switch-to-motion)
     (advice-remove 'diff-hl-show-hunk-hide 'meow--switch-to-normal)))

Reply via email to