Commit 314347b9 authored by Glenn Morris's avatar Glenn Morris

* lisp/calendar/diary-lib.el (diary-comment-start): Doc fix.

parent 915d1300
2011-05-07 Glenn Morris <rgm@gnu.org>
* calendar/diary-lib.el (diary-comment-start): Doc fix.
* calendar/appt.el (appt-time-msg-list): Doc fix.
2011-05-06 Noah Friedman <friedman@splode.com>
......
......@@ -147,7 +147,8 @@ See the documentation for the function `diary-list-sexp-entries'."
Nil means there are no comments. The diary does not display
parts of entries that are inside comments. You can use comments
for whatever you like, e.g. for meta-data that packages such as
`appt.el' can use.
`appt.el' can use. Comments may not span mutliple lines, and there
can be only one comment on any line.
See also `diary-comment-end'."
:version "24.1"
:type '(choice (const :tag "No comment" nil) string)
......@@ -650,6 +651,8 @@ Also removes the region between `diary-comment-start' and
string))
;; Preserve the value with the comments.
(or literal (setq literal string))
;; Handles multiple comments per entry, so long as each is on
;; a single line, and each line has no more than one comment.
(setq string (replace-regexp-in-string
(format "%s.*%s" cstart (regexp-quote diary-comment-end))
"" string)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment