Function: remember-diary-convert-entry
remember-diary-convert-entry is a byte-compiled function defined in
remember.el.gz.
Signature
(remember-diary-convert-entry ENTRY)
Documentation
Translate MSG to an entry readable by diary.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/remember.el.gz
(defvar calendar-date-style) ; calendar.el
(defun remember-diary-convert-entry (entry)
"Translate MSG to an entry readable by diary."
(save-match-data
(when remember-annotation
(setq entry (concat entry " " remember-annotation)))
(if (string-match "\\([0-9]+\\)\\.\\([0-9]+\\)\\.\\([0-9]+\\)" entry)
(progn
;; For calendar-date-style. This costs us nothing because
;; the call to diary-make-entry below loads diary-lib
;; which requires calendar.
(require 'calendar)
(replace-match
(cond ((eq calendar-date-style 'european)
(concat (match-string 3 entry) "/"
(match-string 2 entry) "/"
(match-string 1 entry)))
((eq calendar-date-style 'iso)
(concat (match-string 1 entry) "-"
(match-string 2 entry) "-"
(match-string 3 entry)))
(t (concat (match-string 2 entry) "/"
(match-string 3 entry) "/"
(match-string 1 entry))))
t t entry))
entry)))