aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2011-05-06 18:20:47 -0700
committerGlenn Morris2011-05-06 18:20:47 -0700
commit314347b9ab18fb8cf9fb9f3c58a2a7979d7ec642 (patch)
treed7f26a15c2b4ce6086534b181d95c4ebeef0a0a6
parent915d130021c4f0b076539562cd6d194536ad4603 (diff)
downloademacs-314347b9ab18fb8cf9fb9f3c58a2a7979d7ec642.tar.gz
emacs-314347b9ab18fb8cf9fb9f3c58a2a7979d7ec642.zip
* lisp/calendar/diary-lib.el (diary-comment-start): Doc fix.
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/calendar/diary-lib.el5
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f4221b7b7c6..8528460f4f9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,7 @@
12011-05-07 Glenn Morris <rgm@gnu.org> 12011-05-07 Glenn Morris <rgm@gnu.org>
2 2
3 * calendar/diary-lib.el (diary-comment-start): Doc fix.
4
3 * calendar/appt.el (appt-time-msg-list): Doc fix. 5 * calendar/appt.el (appt-time-msg-list): Doc fix.
4 6
52011-05-06 Noah Friedman <friedman@splode.com> 72011-05-06 Noah Friedman <friedman@splode.com>
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el
index 97f2a141610..1e1066028ac 100644
--- a/lisp/calendar/diary-lib.el
+++ b/lisp/calendar/diary-lib.el
@@ -147,7 +147,8 @@ See the documentation for the function `diary-list-sexp-entries'."
147Nil means there are no comments. The diary does not display 147Nil means there are no comments. The diary does not display
148parts of entries that are inside comments. You can use comments 148parts of entries that are inside comments. You can use comments
149for whatever you like, e.g. for meta-data that packages such as 149for whatever you like, e.g. for meta-data that packages such as
150`appt.el' can use. 150`appt.el' can use. Comments may not span mutliple lines, and there
151can be only one comment on any line.
151See also `diary-comment-end'." 152See also `diary-comment-end'."
152 :version "24.1" 153 :version "24.1"
153 :type '(choice (const :tag "No comment" nil) string) 154 :type '(choice (const :tag "No comment" nil) string)
@@ -650,6 +651,8 @@ Also removes the region between `diary-comment-start' and
650 string)) 651 string))
651 ;; Preserve the value with the comments. 652 ;; Preserve the value with the comments.
652 (or literal (setq literal string)) 653 (or literal (setq literal string))
654 ;; Handles multiple comments per entry, so long as each is on
655 ;; a single line, and each line has no more than one comment.
653 (setq string (replace-regexp-in-string 656 (setq string (replace-regexp-in-string
654 (format "%s.*%s" cstart (regexp-quote diary-comment-end)) 657 (format "%s.*%s" cstart (regexp-quote diary-comment-end))
655 "" string))) 658 "" string)))