* lisp/calendar/cal-china.el (entry):
* lisp/calendar/cal-hebrew.el (entry): Suppress warning about
dynamically bound `entry', which has to be bound for
diary-chinese-anniversary and diary-hebrew-birthday to work.
These function can be used in the sexp part of users' diary files.
(autoload 'diary-make-date "diary-lib")
(autoload 'diary-ordinal-suffix "diary-lib")
(defvar diary-sexp-entry-symbol)
-(defvar entry) ;used by `diary-chinese-anniversary'
+;; `diary-chinese-anniversary' can be used in users' diary files, and
+;; `entry' har to be dynamically bound when that is called.
+(with-suppressed-warnings ((lexical entry))
+ (defvar entry)) ;used by `diary-chinese-anniversary'
(defvar calendar-chinese-month-name-array
["正月" "二月" "三月" "四月" "五月" "六月"
"Hebrew calendar equivalent of date diary entry."
(format "Hebrew date (until sunset): %s" (calendar-hebrew-date-string date)))
-(defvar entry)
+;; `diary-hebrew-birthday' can be used in users' diary files, and
+;; `entry' has to be dynamically bound when that is used.
+(with-suppressed-warnings ((lexical entry))
+ (defvar entry))
(declare-function diary-ordinal-suffix "diary-lib" (n))
;;;###diary-autoload