From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dushyant Juneja Newsgroups: gmane.emacs.help Subject: Re: Intelligently opening large files in emacs Date: Tue, 18 Mar 2014 15:21:16 +0530 Message-ID: References: <877g7rrjgw.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1395136304 16320 80.91.229.3 (18 Mar 2014 09:51:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Mar 2014 09:51:44 +0000 (UTC) To: Jambunathan K , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 18 10:51:55 2014 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 1WPqgc-0007qp-0N for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Mar 2014 10:51:54 +0100 Original-Received: from localhost ([::1]:34287 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPqgb-00036N-IZ for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Mar 2014 05:51:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPqgN-0002xY-62 for help-gnu-emacs@gnu.org; Tue, 18 Mar 2014 05:51:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPqgM-0003dZ-2p for help-gnu-emacs@gnu.org; Tue, 18 Mar 2014 05:51:39 -0400 Original-Received: from mail-pb0-x233.google.com ([2607:f8b0:400e:c01::233]:34215) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPqgL-0003dU-RP for help-gnu-emacs@gnu.org; Tue, 18 Mar 2014 05:51:38 -0400 Original-Received: by mail-pb0-f51.google.com with SMTP id uo5so7059647pbc.10 for ; Tue, 18 Mar 2014 02:51:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=T327qKP5lZQv+NXOeA7DLAaJPtQyjk2JGxiNpVbmolM=; b=ybEU/LeBRIzl6g4SiyYSQ3DhMHAs8bxVL8DCc6sMaNAsR966efmhDdTFqDY9v0lNGv 6JsULYx+MEnzIsgnch8uR0xx+A1NJ7Uz7hBSEvsRT+rxPNSvpoXpAAyas020hDmNFXvR jeRSSTSnFmhzzGw6BfpCNjd9ldKEswmS5TPI/C2IsQFvfJqnij2Ztc3Ej25cS5HgxXpw 7a2y0XeLh3yCtqPgX/qqKdaiUBMIz5qCCWDTjFCXYnKvyuQStkzCZ6aUDty5pZHQd3ol aFJ/lLCY6tc/o/Z2NAsKE2SAU7raAiHXynFxgjX6cykn16Xzu1s4v//gFY+jZ2Tdh6kD 6hmQ== X-Received: by 10.68.218.3 with SMTP id pc3mr32167386pbc.71.1395136296681; Tue, 18 Mar 2014 02:51:36 -0700 (PDT) Original-Received: by 10.69.3.5 with HTTP; Tue, 18 Mar 2014 02:51:16 -0700 (PDT) In-Reply-To: <877g7rrjgw.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c01::233 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:96578 Archived-At: Hi Jambunathan, Thanks for the suggestion. Indeed, I was looking at vlf earlier. However, with apologies to the developer, I found M-x find-file-literally to be a much better alternative on my 64bit system. My question hence is, is there a way to integrate find-file-literally in a way that emacs automatically opens large files using this function, and the smaller files using the usual find-file. Please help me if such is possible. Regards, Dushyant Juneja Analog Devices, Inc. (India) On Tue, Mar 18, 2014 at 2:07 PM, Jambunathan K wrote: > > You are looking for vlf.el. See http://elpa.gnu.org/packages/. > > Install it via > > M-x list-packages > > > Dushyant Juneja writes: > > > Hi, > > > > I'm relatively new to emacs, but am pretty fascinated by its features. > One > > pain point is that it is rather slow in opening large data files bound to > > specific modes. I generally observe it for circuit mode files (files > > utilizing verilog-mode, spice-mode and spectre-mode). Is there a > > possibility to help this? > > > > I find that M-x ffap-literally is rather fast, so can the following be > done > > somehow: > > > > If file is larger than default warning limit, open it literally. > > Else open it with usual mode bindings. > > > > Also, please share as to how may I modify the default size limit. > > > > Regards, > > Dushyant Juneja >