diff options
| author | Glenn Morris | 2008-03-15 02:57:42 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-03-15 02:57:42 +0000 |
| commit | 851335187fbfd4bb27b988073f746c3b8fe46d32 (patch) | |
| tree | 5625b8564387d328b8cfe75e498990f7fec23f82 | |
| parent | 965c8899063f3ee626a19f454d3dc131b5b0f5a3 (diff) | |
| download | emacs-851335187fbfd4bb27b988073f746c3b8fe46d32.tar.gz emacs-851335187fbfd4bb27b988073f746c3b8fe46d32.zip | |
(cal-html-insert-link-yearpage, (cal-html-htmlify-list): Doc fix.
(cal-html-htmlify-entry): Use nth.
| -rw-r--r-- | lisp/calendar/cal-html.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/calendar/cal-html.el b/lisp/calendar/cal-html.el index 8eff4233601..d2fb93acd66 100644 --- a/lisp/calendar/cal-html.el +++ b/lisp/calendar/cal-html.el | |||
| @@ -182,7 +182,7 @@ the link points to a different year and so has a directory part." | |||
| 182 | 182 | ||
| 183 | 183 | ||
| 184 | (defun cal-html-insert-link-yearpage (month year) | 184 | (defun cal-html-insert-link-yearpage (month year) |
| 185 | "Insert a link to index page for four-digit YEAR, tagged using MONTH name." | 185 | "Insert a link tagged with MONTH name, to index page for four-digit YEAR." |
| 186 | (insert (cal-html-h1 | 186 | (insert (cal-html-h1 |
| 187 | (format "%s %s" | 187 | (format "%s %s" |
| 188 | (calendar-month-name month) | 188 | (calendar-month-name month) |
| @@ -314,11 +314,11 @@ Characters are replaced according to `cal-html-html-subst-list'." | |||
| 314 | "Convert a diary entry ENTRY to html with the appropriate class specifier." | 314 | "Convert a diary entry ENTRY to html with the appropriate class specifier." |
| 315 | (let ((start | 315 | (let ((start |
| 316 | (cond | 316 | (cond |
| 317 | ((string-match "block" (car (cddr entry))) "BLOCK") | 317 | ((string-match "block" (nth 2 entry)) "BLOCK") |
| 318 | ((string-match "anniversary" (car (cddr entry))) "ANN") | 318 | ((string-match "anniversary" (nth 2 entry)) "ANN") |
| 319 | ((not (string-match | 319 | ((not (string-match |
| 320 | (number-to-string (car (cddr (car entry)))) | 320 | (number-to-string (nth 2 (car entry))) |
| 321 | (car (cddr entry)))) | 321 | (nth 2 entry))) |
| 322 | "NO-YEAR") | 322 | "NO-YEAR") |
| 323 | (t "NORMAL")))) | 323 | (t "NORMAL")))) |
| 324 | (format "<span class=%s>%s</span>" start | 324 | (format "<span class=%s>%s</span>" start |
| @@ -326,7 +326,7 @@ Characters are replaced according to `cal-html-html-subst-list'." | |||
| 326 | 326 | ||
| 327 | 327 | ||
| 328 | (defun cal-html-htmlify-list (date-list date) | 328 | (defun cal-html-htmlify-list (date-list date) |
| 329 | "Return a string of concatenated, HTMLified diary entries. | 329 | "Return a string of concatenated, HTML-ified diary entries. |
| 330 | DATE-LIST is a list of diary entries. Return only those matching DATE." | 330 | DATE-LIST is a list of diary entries. Return only those matching DATE." |
| 331 | (mapconcat (lambda (x) (cal-html-htmlify-entry x)) | 331 | (mapconcat (lambda (x) (cal-html-htmlify-entry x)) |
| 332 | (let (result) | 332 | (let (result) |