Commit 897f8f20 authored by Glenn Morris's avatar Glenn Morris

* lisp/calendar/diary-lib.el (diary-add-to-list): Simplify previous change.

parent f36ba835
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment