From: Mattias EngdegÄrd Date: Mon, 9 Aug 2021 10:09:49 +0000 (+0200) Subject: Fix variable binding in calendar (bug#49945) X-Git-Tag: emacs-28.0.90~1583 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=aeec97fae0ccfcc4dc406a5e0e4c0a94b834cac4;p=emacs.git Fix variable binding in calendar (bug#49945) * lisp/calendar/cal-tex.el (cal-tex-week-hours, cal-tex-daily-page): Use `let*` instead of `let`. --- diff --git a/lisp/calendar/cal-tex.el b/lisp/calendar/cal-tex.el index 3830024ef3d..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")