From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.help Subject: Re: Is there an ELisp function for reading file contents in a string? Date: Wed, 6 Feb 2008 23:52:56 +0100 Message-ID: References: <2cc58ccd-001d-42bc-ad4f-0824204ffc5a@i12g2000prf.googlegroups.com> <86zlue9c7z.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1202338426 31182 80.91.229.12 (6 Feb 2008 22:53:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Feb 2008 22:53:46 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Ted Zlatanov" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 06 23:54:08 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 1JMt9b-000712-Jn for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Feb 2008 23:54:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMt99-0004il-3T for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Feb 2008 17:53:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JMt8V-0004Yb-S3 for help-gnu-emacs@gnu.org; Wed, 06 Feb 2008 17:52:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JMt8U-0004Xl-AF for help-gnu-emacs@gnu.org; Wed, 06 Feb 2008 17:52:59 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMt8U-0004Xg-5Z for help-gnu-emacs@gnu.org; Wed, 06 Feb 2008 17:52:58 -0500 Original-Received: from wa-out-1112.google.com ([209.85.146.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JMt8T-0002MY-LO for help-gnu-emacs@gnu.org; Wed, 06 Feb 2008 17:52:57 -0500 Original-Received: by wa-out-1112.google.com with SMTP id k34so676339wah.10 for ; Wed, 06 Feb 2008 14:52:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=rjyUZhca7Cp1Ld7wegUWgOIm+dTU7hkhcQ3kXBzdZwI=; b=JHfeWp4J9h7FRGXQ8u+jzAuYExCipdlNZSERA4SaYAMkmvE7ya8NePBvLGX65d+75AIaojqZRqHdlozrIB4yokHNJXLVvG74K4uSFzTdDEZn82W22bSBKhcBAxnRg9WkqgBbku8ZwnECqz3fxur06bemnFFHBfQj0OdegqOqNow= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=vhY3UEY3RPVnxiqBa3Xns05s9lTqWE27D0sPrfqr9rOV+gscq9Al5DwNn6cxx7A72OK7lekitlb6ORIDiT1p8Rh1m8ZCEsQVHfv64eEXa14JGrqwCcOxZKBNUHfOsABJj+QYGcIac5yd1tuc7OP/53bvB+n5Ds8ILPVueS0kcr4= Original-Received: by 10.114.25.3 with SMTP id 3mr10718036way.22.1202338376330; Wed, 06 Feb 2008 14:52:56 -0800 (PST) Original-Received: by 10.114.170.5 with HTTP; Wed, 6 Feb 2008 14:52:56 -0800 (PST) In-Reply-To: <86zlue9c7z.fsf@lifelogs.com> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:51276 Archived-At: On Feb 6, 2008 7:22 PM, Ted Zlatanov wrote: > I would suggest to the OP that he may also want to look at the > coding-system-for-read variable, in case the default coding system is > not what he needs (I've run into problems there). > insert-file-contents-literally might also be a good choice if > appropriate. Yes. I didn't want to complicate the problem with coding systems and whatnot, but certainly the OP would be wise to look at the docs and adapt it to his needs. Juanma