|
From: | Pascal J. Bourguignon |
Subject: | Re: How to copy current buffer to a temporary buffer |
Date: | Fri, 16 May 2014 11:31:28 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Cecil Westerhof <Cecil@decebal.nl> writes: > I want to copy the current buffer to a temporary buffer, to do some > edits on it. (Converting a text file to a html file.) (let ((contents (buffer-substring (point-min) (point-max)))) (with-temp-buffer (insert contents) (do-something))) -- __Pascal Bourguignon__ http://www.informatimago.com/ "Le mercure monte ? C'est le moment d'acheter !"
[Prev in Thread] | Current Thread | [Next in Thread] |