Commit 3310fdd2 authored by Juanma Barranquero's avatar Juanma Barranquero
Browse files

(icalendar--get-unfolded-buffer): Use `insert-buffer-substring' and `goto-char',

not `insert-buffer'.
parent f38cec78
...@@ -189,7 +189,8 @@ buffer." ...@@ -189,7 +189,8 @@ buffer."
(save-current-buffer (save-current-buffer
(set-buffer unfolded-buffer) (set-buffer unfolded-buffer)
(erase-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) (while (re-search-forward "\r?\n[ \t]" nil t)
(replace-match "" nil nil))) (replace-match "" nil nil)))
unfolded-buffer)) unfolded-buffer))
......
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