Created
May 10, 2013 19:54
-
-
Save milkypostman/5556949 to your computer and use it in GitHub Desktop.
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
(let ((prev 0) | |
(cur) | |
(str (concat (propertize "test" 'face 'mode-line) " -- " (propertize "rest" 'face 'default))) | |
(out '(0))) | |
(while (setq cur (next-single-property-change prev 'face str)) | |
(message (substring str prev cur)) | |
(setq prev cur) | |
) | |
(message (substring str prev))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment