Function: diary-name-pattern
diary-name-pattern is a byte-compiled function defined in
diary-lib.el.gz.
Signature
(diary-name-pattern STRING-ARRAY &optional ABBREV-ARRAY PAREN)
Documentation
Return a regexp matching the strings in the array STRING-ARRAY.
If the optional argument ABBREV-ARRAY is present, the regexp
also matches the supplied abbreviations, with or without final .
characters. If the optional argument PAREN is non-nil, surrounds
the regexp with parentheses.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/diary-lib.el.gz
(defun diary-name-pattern (string-array &optional abbrev-array paren)
"Return a regexp matching the strings in the array STRING-ARRAY.
If the optional argument ABBREV-ARRAY is present, the regexp
also matches the supplied abbreviations, with or without final `.'
characters. If the optional argument PAREN is non-nil, surrounds
the regexp with parentheses."
(regexp-opt (append string-array
abbrev-array
(if abbrev-array
(mapcar (lambda (e) (format "%s." e))
abbrev-array))
nil)
paren))