From 897f8f20a7e33775ebb6924154678d212270de9a Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Fri, 6 May 2011 00:30:20 -0700 Subject: [PATCH] * lisp/calendar/diary-lib.el (diary-add-to-list): Simplify previous change. --- lisp/calendar/diary-lib.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el index 951b271b935..97f2a141610 100644 --- a/lisp/calendar/diary-lib.el +++ b/lisp/calendar/diary-lib.el @@ -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 -- 2.39.5