emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r104147: * lisp/calendar/diary-lib.el


From: Glenn Morris
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r104147: * lisp/calendar/diary-lib.el (diary-comment-start): Doc fix.
Date: Fri, 06 May 2011 18:20:47 -0700
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 104147
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Fri 2011-05-06 18:20:47 -0700
message:
  * lisp/calendar/diary-lib.el (diary-comment-start): Doc fix.
modified:
  lisp/ChangeLog
  lisp/calendar/diary-lib.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2011-05-07 01:19:27 +0000
+++ b/lisp/ChangeLog    2011-05-07 01:20:47 +0000
@@ -1,5 +1,7 @@
 2011-05-07  Glenn Morris  <address@hidden>
 
+       * calendar/diary-lib.el (diary-comment-start): Doc fix.
+
        * calendar/appt.el (appt-time-msg-list): Doc fix.
 
 2011-05-06  Noah Friedman  <address@hidden>

=== modified file 'lisp/calendar/diary-lib.el'
--- a/lisp/calendar/diary-lib.el        2011-05-06 07:30:20 +0000
+++ b/lisp/calendar/diary-lib.el        2011-05-07 01:20:47 +0000
@@ -147,7 +147,8 @@
 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 @@
                                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)))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]