branch: externals/cm-mode
commit 61b1557bad3cf7dfd0fc4c9eb4a7af0d86d605d0
Author: Joost Kremers <[email protected]>
Commit: Joost Kremers <[email protected]>
Remove (de)activation of advice on undo
---
cm-mode.el | 2 --
1 file changed, 2 deletions(-)
diff --git a/cm-mode.el b/cm-mode.el
index 4e5a104fb0..4f042663f7 100644
--- a/cm-mode.el
+++ b/cm-mode.el
@@ -286,12 +286,10 @@ it is added automatically."
(progn
(add-to-list 'before-change-functions 'cm-before-change t)
(add-to-list 'after-change-functions 'cm-after-change)
- (ad-activate 'undo t)
(setq cm-follow-changes t)
(message "Follow changes mode activated."))
(setq before-change-functions (delq 'cm-before-change
before-change-functions))
(setq after-change-functions (delq 'cm-after-change
after-change-functions))
- (ad-deactivate 'undo)
(setq cm-follow-changes nil)
(message "Follow changes mode deactivated."))))