Copyright (C) 2015, Bill Burdick, Roy Riggs, TEAM CTHULHU
Licensed with ZLIB license (see "License", below).
Advice is part of Leisure project. You can find it on Github.
Licensed with ZLIB license.
### | |
Copyright (C) 2013, Bill Burdick, Tiny Concepts: https://github.com/zot/Leisure | |
(licensed with ZLIB license) | |
This software is provided 'as-is', without any express or implied | |
warranty. In no event will the authors be held liable for any damages | |
arising from the use of this software. | |
Permission is granted to anyone to use this software for any purpose, |
(defvar my-phi-search-counter 0) | |
(defvar my-mc-cleanup-counter 0) | |
(defadvice phi-search-complete (around my-phi-search-cleanup) | |
ad-do-it | |
(cl-incf my-phi-search-counter)) | |
(defadvice mc/execute-command-for-all-fake-cursors (around my-mc/execute-command-for-fake-all-cursors) | |
ad-do-it | |
(if (< my-mc-cleanup-counter my-phi-search-counter) |