diff options
Diffstat (limited to 'lisp/calendar/cal-tex.el')
-rw-r--r-- | lisp/calendar/cal-tex.el | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lisp/calendar/cal-tex.el b/lisp/calendar/cal-tex.el index f5932014dd9..7b55d420c3b 100644 --- a/lisp/calendar/cal-tex.el +++ b/lisp/calendar/cal-tex.el @@ -974,11 +974,11 @@ Uses the 24-hour clock if `cal-tex-24' is non-nil. Note that the hours shown are hard-coded to 8-12, 13-17." (with-suppressed-warnings ((lexical date)) (defvar date)) ;For `cal-tex-daily-string'. - (let ((date thedate) - (month (calendar-extract-month date)) - (day (calendar-extract-day date)) - ;; (year (calendar-extract-year date)) - morning afternoon s) + (let* ((date thedate) + (month (calendar-extract-month date)) + (day (calendar-extract-day date)) + ;; (year (calendar-extract-year date)) + morning afternoon s) (cal-tex-comment "begin cal-tex-week-hours") (cal-tex-cmd "\\ \\\\[-.2cm]") (cal-tex-cmd "\\noindent") @@ -1465,10 +1465,10 @@ hourly sections for the period specified by `cal-tex-daily-start' and `cal-tex-daily-end'." (with-suppressed-warnings ((lexical date)) (defvar date)) ;For `cal-tex-daily-string'. - (let ((date thedate) - (month-name (cal-tex-month-name (calendar-extract-month date))) - (i (1- cal-tex-daily-start)) - hour) + (let* ((date thedate) + (month-name (cal-tex-month-name (calendar-extract-month date))) + (i (1- cal-tex-daily-start)) + hour) (cal-tex-banner "cal-tex-daily-page") (cal-tex-b-makebox "4cm" "l") (cal-tex-b-parbox "b" "3.8cm") @@ -1755,7 +1755,7 @@ current contents." COMMENT may contain newlines, which are prefixed by \"% \" in the output." (insert (format "%% %s\n" (if comment - (replace-regexp-in-string "\n" "\n% " comment) + (string-replace "\n" "\n% " comment) "")))) (defun cal-tex-banner (comment) |