changeset 64432:cd3c7f95237e

(icalendar--get-unfolded-buffer): Use `insert-buffer-substring' and `goto-char', not `insert-buffer'.
author Juanma Barranquero <lekktu@gmail.com>
date Mon, 18 Jul 2005 11:05:16 +0000
parents 4c5a14fead4a
children e0e9bea5acc5
files lisp/calendar/icalendar.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calendar/icalendar.el	Mon Jul 18 10:46:17 2005 +0000
+++ b/lisp/calendar/icalendar.el	Mon Jul 18 11:05:16 2005 +0000
@@ -189,7 +189,8 @@
     (save-current-buffer
       (set-buffer unfolded-buffer)
       (erase-buffer)
-      (insert-buffer folded-ical-buffer)
+      (insert-buffer-substring folded-ical-buffer)
+      (goto-char (point-min))
       (while (re-search-forward "\r?\n[ \t]" nil t)
         (replace-match "" nil nil)))
     unfolded-buffer))