Created
January 24, 2012 19:05
-
-
Save magnars/1671918 to your computer and use it in GitHub Desktop.
Advice ignored
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defadvice yank-pop (around yank-pop-unsupported-advice) | |
"yank-pop isn't supported with multiple cursors" | |
(progn | |
(message "yank-pop-advice ho!") | |
(if multiple-cursors-mode | |
(error "yank-pop isn't supported with multiple cursors") | |
ad-do-it))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The trick is to add
activate
in thearound
sexp, like this: