From aeec97fae0ccfcc4dc406a5e0e4c0a94b834cac4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mattias=20Engdeg=C3=A5rd?= Date: Mon, 9 Aug 2021 12:09:49 +0200 Subject: [PATCH] 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`. --- lisp/calendar/cal-tex.el | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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") -- 2.39.5