Created
May 27, 2012 04:11
-
-
Save kiwanami/2802137 to your computer and use it in GitHub Desktop.
calfw-howm-workaround1.el
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
(defun cfw:howm-schedule-parse-line (line) | |
"[internal] Parse the given string and return a result list, (date num type summary)." | |
(when (string-match "^\\[\\([^@!]+\\)\\]\\([@!]\\)\\([0-9]*\\) \\(.*\\)$" line) | |
(list | |
(match-string 1 line) | |
(or (and (match-string 3 line) | |
(string-to-number (match-string 3 line))) 0) | |
(match-string 2 line) (match-string 4 line)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment