Function: diary-font-lock-keywords-1

diary-font-lock-keywords-1 is a macro defined in diary-lib.el.gz.

Signature

(diary-font-lock-keywords-1 MARKFUNC LISTFUNC FEATURE MONTHS SYMBOL)

Documentation

Subroutine of the function diary-font-lock-keywords(var)/diary-font-lock-keywords(fun).

If MARKFUNC is a member of diary-nongregorian-marking-hook, or LISTFUNC of diary-nongregorian-listing-hook, then require FEATURE and return a font-lock pattern matching array of MONTHS and marking SYMBOL.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/diary-lib.el.gz
(defmacro diary-font-lock-keywords-1 (markfunc listfunc feature months symbol)
  "Subroutine of the function `diary-font-lock-keywords'.
If MARKFUNC is a member of `diary-nongregorian-marking-hook', or
LISTFUNC of `diary-nongregorian-listing-hook', then require FEATURE and
return a font-lock pattern matching array of MONTHS and marking SYMBOL."
  `(when (or (memq ',markfunc diary-nongregorian-marking-hook)
             (memq ',listfunc diary-nongregorian-listing-hook))
     (require ',feature)
     (diary-font-lock-date-forms ,months ,symbol)))