From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: stephan.zimmer@googlemail.com Newsgroups: gmane.emacs.help Subject: Is there an ELisp function for reading file contents in a string? Date: Wed, 6 Feb 2008 05:11:55 -0800 (PST) Organization: http://groups.google.com Message-ID: <2cc58ccd-001d-42bc-ad4f-0824204ffc5a@i12g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1202308739 14071 80.91.229.12 (6 Feb 2008 14:38:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Feb 2008 14:38:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 06 15:39:21 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JMlQm-0004Bb-2K for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Feb 2008 15:39:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMlQJ-0008FR-Mk for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Feb 2008 09:38:51 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!i12g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Original-NNTP-Posting-Host: 84.59.25.175 Original-X-Trace: posting.google.com 1202303515 16743 127.0.0.1 (6 Feb 2008 13:11:55 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 6 Feb 2008 13:11:55 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: i12g2000prf.googlegroups.com; posting-host=84.59.25.175; posting-account=KJs5AQoAAADGrOtd_DW54KdKddPM3pQ6 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071204 Ubuntu/7.10 (gutsy) Firefox/2.0.0.11, gzip(gfe), gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:155873 X-Mailman-Approved-At: Wed, 06 Feb 2008 09:34:41 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51253 Archived-At: Hi, does anybody know whether there is a function in elisp that just reads the contents of a text file into a string? So far, I haven't found anything that could be related to that. The only, yet not very charming, possibility that I currently see is to use the "insert-file" function in combination with the "buffer- (sub)string" function and later erase the inserted file contents again. Thanks very much, Stephan