Skip to content

Instantly share code, notes, and snippets.

@kiwanami
Created May 27, 2012 04:11
Show Gist options
  • Save kiwanami/2802137 to your computer and use it in GitHub Desktop.
Save kiwanami/2802137 to your computer and use it in GitHub Desktop.
calfw-howm-workaround1.el
(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