]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/calendar/diary-lib.el (diary-comment-start): Doc fix.
authorGlenn Morris <rgm@gnu.org>
Sat, 7 May 2011 01:20:47 +0000 (18:20 -0700)
committerGlenn Morris <rgm@gnu.org>
Sat, 7 May 2011 01:20:47 +0000 (18:20 -0700)
lisp/ChangeLog
lisp/calendar/diary-lib.el

index f4221b7b7c6e76311820e1194a5e2ecb7209896a..8528460f4f9d83a5e78fd71ddfda19dd598612a3 100644 (file)
@@ -1,5 +1,7 @@
 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>
index 97f2a1416105c360cbd7dceb740c43d259e6a9d0..1e1066028ac069146db40e029b64cebae872e906 100644 (file)
@@ -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)))