Skip to content
This repository has been archived by the owner on Jan 21, 2019. It is now read-only.

Commit

Permalink
with-temp-buffer as proposed by Brian
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsz committed Dec 31, 2013
1 parent 65754f2 commit a5ea700
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions impatient-mode.el
Expand Up @@ -198,11 +198,9 @@
(buffer (current-buffer)))
(with-temp-buffer
(if user-filter
(let ((user-buffer (generate-new-buffer "*user-buffer*")))
(with-current-buffer user-buffer
(funcall user-filter buffer))
(insert-buffer-substring user-buffer)
(kill-buffer user-buffer))
(insert (with-temp-buffer
(funcall user-filter buffer)
(buffer-string)))
(insert-buffer-substring buffer))
(httpd-send-header proc "text/html" 200 :Cache-Control "no-cache" :X-Imp-Count id))))

Expand Down

0 comments on commit a5ea700

Please sign in to comment.