From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dkcombs@panix.com (David Combs) Newsgroups: gmane.emacs.help Subject: Re: recover file after crash Date: Wed, 20 Feb 2013 01:35:43 +0000 (UTC) Organization: Public Access Networks Corp. Message-ID: References: <1359058585727-276397.post@n5.nabble.com> <83sj5ojkic.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1361357636 23170 80.91.229.3 (20 Feb 2013 10:53:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Feb 2013 10:53:56 +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 20 11:54:18 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U87JZ-0005tl-W4 for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Feb 2013 11:54:18 +0100 Original-Received: from localhost ([::1]:51770 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U87JF-0007iL-RO for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Feb 2013 05:53:57 -0500 Original-Path: usenet.stanford.edu!bloom-beacon.mit.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: panix1.panix.com Original-X-Trace: reader1.panix.com 1361324143 24402 166.84.1.1 (20 Feb 2013 01:35:43 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Wed, 20 Feb 2013 01:35:43 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Original-Xref: usenet.stanford.edu gnu.emacs.help:196883 X-Mailman-Approved-At: Wed, 20 Feb 2013 05:53:52 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89174 Archived-At: In article , Ludwig, Mark wrote: >> From: Eli Zaretskii >> Sent: Saturday, January 26, 2013 4:40 AM >> >> > From: "Ludwig, Mark" >> > Date: Fri, 25 Jan 2013 20:56:47 +0000 >> > >> > I think I thoroughly documented this in Bug # 9589 >> > (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9589) for the >> > developers to consider, which see. >> >> Assuming the OP has such long lines, yes. But that would be unusual >> in a file that is being read in any kind of overview mode, because >> those normally are for human consumption, so long lines are unlikely >> to appear in them. > >Agreed, this is not an every-day occurrence. > >In my case, it is because log files I receive from customers sometimes >have a huge number of NUL bytes preceding the readable content. This >leading, extremely-long line gets in the way of reasonable >responsiveness. > >I also confess that I have not been keeping up with the current trends >in Emacs development. Back when I started using EMACS [sic], it was >an excellent binary editor. Apparently this is not a current >requirement, because it clearly is no longer useful for same. Side >question: is there a GNU tool designed for editing binary files? > >Cheers, >Mark > About all those nulls that make lines so long, couldn't you run the file through sed or some super-short c-program or even perl first, and delete (ie ignore) all those nulls then? David