From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Perry Smith Newsgroups: gmane.emacs.help Subject: Re: What's your favourite *under_publicized* editing feature of Emacs? Date: Thu, 17 Feb 2011 07:43:54 -0600 Message-ID: References: <482fb2ba-e50f-4102-bfe7-3a78613d970f@m27g2000prj.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: multipart/alternative; boundary=Apple-Mail-1--332028460 X-Trace: dough.gmane.org 1297950285 12530 80.91.229.12 (17 Feb 2011 13:44:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 17 Feb 2011 13:44:45 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Giorgos Keramidas Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 17 14:44:41 2011 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 1Pq49w-00014D-Ho for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Feb 2011 14:44:40 +0100 Original-Received: from localhost ([127.0.0.1]:50937 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pq49w-0003aA-0b for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Feb 2011 08:44:40 -0500 Original-Received: from [140.186.70.92] (port=59504 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pq49L-0003YF-9R for help-gnu-emacs@gnu.org; Thu, 17 Feb 2011 08:44:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pq49J-0004Sg-TV for help-gnu-emacs@gnu.org; Thu, 17 Feb 2011 08:44:03 -0500 Original-Received: from mail-qw0-f41.google.com ([209.85.216.41]:39008) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pq49J-0004SR-NS for help-gnu-emacs@gnu.org; Thu, 17 Feb 2011 08:44:01 -0500 Original-Received: by qwa26 with SMTP id 26so2375399qwa.0 for ; Thu, 17 Feb 2011 05:44:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to:x-mailer; bh=TnQLsi8p/M0M/1FQoMLdnLwbD2NuufW4zI16YlRIhMo=; b=gKtasm3zgmCsVYx5bT/9raVDX3GlNnXY6SGHiX3R6WmVovHGIZKH+4CvxBS5eaniks W/GqQFql1vOrGvJLzgRbwNQmZmFjNTTiSs+MjosKTyNFBPtX21U7xi/jiYflPZO4zNvs RZdvSBrH2+AkOOqo92NrZkbeQSjZNlIxdJWpg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to:x-mailer; b=Bkj+SYhXgsqSchB0JFH9BKTDMzAZcWVaA8W3lIwZ9lA4M2M5t1pPCmveqDIyTHP2xD pMjgnozlbWSeozfcweRENfZXJgWDrQiAX7sn2UHFmDeMOCJqp80jc8+0uunLLagOJk8o GTGZ8IDLwM8EGFuWI4cKm9duV5CqhqLRfby3k= Original-Received: by 10.229.84.3 with SMTP id h3mr2349175qcl.89.1297950241002; Thu, 17 Feb 2011 05:44:01 -0800 (PST) Original-Received: from [10.0.0.2] ([64.128.19.234]) by mx.google.com with ESMTPS id l17sm680506qck.44.2011.02.17.05.43.57 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 17 Feb 2011 05:43:59 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1082) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.216.41 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:79191 Archived-At: --Apple-Mail-1--332028460 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Feb 17, 2011, at 4:53 AM, Giorgos Keramidas wrote: > On Sat, 29 Jan 2011 09:02:14 -0600, Perry Smith = wrote: >> This thread is beginning to drift a bit... but something I wish I had >> was a way to view a file without loading all of it. I look at hugh >> trace files and I have to get out of emacs and start a shell so I can >> use more / less. >>=20 >> The shame of it all! ;-) >>=20 >> I don't know of such a critter. If there is one, that would be super >> cool. >=20 > If there was some way to lazy-load files, I'd be happy too. I looked at this. The approach I was going to take was to put into the = C code an "open", "close", "read", and "lseek" concept and that would need a = new "type" for a file descriptor. You might as well add "write" to complete = the set. There is nothing currently like that in the C code. I'm not sure if you = want to put this on top of open and its siblings or on top of fopen and let = the C I/O help some with the buffering. =46rom there, it becomes a matter of writing lisp to load in a "page" = into a buffer so it can be displayed and then a key map so the user can page forward and backward. For searches I couldn't come up with a nice solution so I was just going to loop loading a page and searching the = page until the match was found. The second generation of this could have a fixed sized cache of pages so = that small movements (like back a page) would be instant and you could even get fancier and pre-fetch the next page. This could grow into a hugh beast. You would want to hook up to the character set things so that it would detect and process all the = different characters sets (like UTF-8, etc) properly. And then, what the hell, = you might as well plop the nifty coloring modes on top as well so that as you page through C text, it would be colored. In my case, I want to plop a wireshark mode on top so that I can view network packets. But, for my own personal case, I have way too many projects going = already so I didn't even post this to the list until just now. I think its a = concept whose time has come but I don't have the time right now. I'd love to contribute to it if anyone wants to start. Perry --Apple-Mail-1--332028460 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
On Sat, 29 Jan 2011 09:02:14 -0600, Perry Smith = <pedzsan@gmail.com> = wrote:
This thread is beginning to drift a = bit... but something I wish I had
was a way to view a file without loading all of it. =  I look at hugh
trace = files and I have to get out of emacs and start a shell so I = can
use more / = less.

The shame of it = all! ;-)

I don't know of = such a critter.  If there is one, that would be = super
cool.

If there was some way to = lazy-load files, I'd be happy too.

I = looked at this.  The approach I was going to take was to put into = the C code
an "open", "close", "read", and "lseek" concept and = that would need a new
"type" for a file descriptor.  You = might as well add "write" to complete the set.
There is = nothing currently like that in the C code.  I'm not sure if you = want
to put this on top of open and its siblings or on top of = fopen and let the C
I/O help some with the = buffering.

=46rom there, it becomes a matter of = writing lisp to load in a "page" into a
buffer so it can be = displayed and then a key map so the user can page
forward and = backward.  For searches I couldn't come up with a = nice
solution so I was just going to loop loading a page and = searching the page
until the match was = found.

The second generation of this could have = a fixed sized cache of pages so that
small movements (like = back a page) would be instant and you could even
get fancier = and pre-fetch the next page.

This could grow = into a hugh beast.  You would want to hook up to = the
character set things so that it would detect and process = all the different
characters sets (like UTF-8, etc) properly. =  And then, what the hell, you
might as well plop the = nifty coloring modes on top as well so that
as you page = through C text, it would be colored.  In my case, I want = to
plop a wireshark mode on top so that I can view network = packets.

But, for my own personal case, I have = way too many projects going already
so I didn't even post this = to the list until just now.  I think its a concept
whose = time has come but I don't have the time right now.  I'd love = to
contribute to it if anyone wants to = start.

Perry

= --Apple-Mail-1--332028460--