* lisp/calendar/diary-lib.el (diary-add-to-list): Simplify previous change.
authorGlenn Morris <rgm@gnu.org>
Fri, 6 May 2011 07:30:20 +0000 (00:30 -0700)
committerGlenn Morris <rgm@gnu.org>
Fri, 6 May 2011 07:30:20 +0000 (00:30 -0700)
lisp/calendar/diary-lib.el

index 951b271..97f2a14 100644 (file)
@@ -651,9 +651,7 @@ Also removes the region between `diary-comment-start' and
         ;; Preserve the value with the comments.
         (or literal (setq literal string))
         (setq string (replace-regexp-in-string
-                      (format "%s.*%s" cstart
-                              (if (zerop (length diary-comment-end)) "$"
-                                (regexp-quote diary-comment-end)))
+                      (format "%s.*%s" cstart (regexp-quote diary-comment-end))
                       "" string)))
       (setq diary-entries-list
             (append diary-entries-list