From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Qiang Guo Newsgroups: gmane.emacs.help Subject: Reading file in emacs Date: Tue, 22 Jun 2010 22:05:18 -0600 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: dough.gmane.org 1277266037 18904 80.91.229.12 (23 Jun 2010 04:07:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 23 Jun 2010 04:07:17 +0000 (UTC) To: Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 23 06:07:16 2010 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.69) (envelope-from ) id 1ORHF5-0004HM-Rv for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Jun 2010 06:07:16 +0200 Original-Received: from localhost ([127.0.0.1]:35398 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ORHF4-0000WR-OU for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Jun 2010 00:07:14 -0400 Original-Received: from [140.186.70.92] (port=48270 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ORHEd-0000WJ-Uy for help-gnu-emacs@gnu.org; Wed, 23 Jun 2010 00:06:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ORHEc-0004fI-PK for help-gnu-emacs@gnu.org; Wed, 23 Jun 2010 00:06:47 -0400 Original-Received: from mail-px0-f169.google.com ([209.85.212.169]:59696) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ORHEc-0004f0-Je for help-gnu-emacs@gnu.org; Wed, 23 Jun 2010 00:06:46 -0400 Original-Received: by pxi17 with SMTP id 17so2098250pxi.0 for ; Tue, 22 Jun 2010 21:06:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:message-id:from:to :subject:user-agent:mime-version:content-type; bh=Qi/099g127L9JSsMkkZEaemNA8irr4b3O+smb8Z3lsE=; b=r4WFYIUAXLq5e4cAVxUxOkDrq3S3qwQkAcC+EnT8ll2xpItMfTmpvISTCk7X7ztz3U vtnYurj1wignULTZe7HKrhwfSUoj995Ei5x4y5+kFd0cUIMBTgi09OquVoNFySQCwvKj x7CKZt1FeadgnB/cyzPAlZrPgklbfObZxMTtc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:message-id:from:to:subject:user-agent:mime-version :content-type; b=SlYLI54XMuEVMILHy1oCQVB7oGQVn2O7+KGSvJkz001bIAQj2v6NxXdUjsOK025KGV 6xql2HFM+YWEgfImJuDVuAOPuli1rEi+xhOBouT15h1NA1k5Y2EWczmeOv8GzMor2VNk Vq5m1dYsrVUqr4oaCXnHQIYmFFFXAjbLZ/ueQ= Original-Received: by 10.115.114.21 with SMTP id r21mr6820199wam.132.1277266003709; Tue, 22 Jun 2010 21:06:43 -0700 (PDT) Original-Received: from Qiang-Guos-MacBook-Pro.local.gmail.com (d75-152-224-210.abhsia.telus.net [75.152.224.210]) by mx.google.com with ESMTPS id a23sm36050526wam.2.2010.06.22.21.05.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 22 Jun 2010 21:06:43 -0700 (PDT) User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.2 (x86_64-apple-darwin10.3.0) MULE/6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: GNU/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:73962 Archived-At: Hi, I'm wondering if there is a way to read the content of files, say, to a variable rather than a buffer ? Of course, one way to do this is first read file into buffer and then edit the buffer. Here comes my second question, how to process file in a byte-by-byte fashion, for instance, instead of editing a line of text, I'd like to edit directly their binary representations ? I know this is best done by C/C++, or some other languages. However, I just wonder the possibility of doing this in emacs, the greatest editor ever :-) Thanks Qiang