From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Intelligently opening large files in emacs Date: Tue, 18 Mar 2014 18:55:54 +0200 Message-ID: <83mwgna1k5.fsf@gnu.org> References: <877g7rrjgw.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1395161781 17483 80.91.229.3 (18 Mar 2014 16:56:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Mar 2014 16:56:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 18 17:56:29 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 1WPxJM-0003f8-I6 for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Mar 2014 17:56:20 +0100 Original-Received: from localhost ([::1]:36451 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPxJM-0001W8-8f for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Mar 2014 12:56:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34429) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPxIy-0001Hv-QL for help-gnu-emacs@gnu.org; Tue, 18 Mar 2014 12:56:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPxIq-0004BL-JZ for help-gnu-emacs@gnu.org; Tue, 18 Mar 2014 12:55:56 -0400 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:58200) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPxIq-0004Aj-Bq for help-gnu-emacs@gnu.org; Tue, 18 Mar 2014 12:55:48 -0400 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0N2N009005JY3300@mtaout24.012.net.il> for help-gnu-emacs@gnu.org; Tue, 18 Mar 2014 18:53:39 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N2N0010M5LECN80@mtaout24.012.net.il> for help-gnu-emacs@gnu.org; Tue, 18 Mar 2014 18:53:39 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.180 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:96588 Archived-At: > From: Dushyant Juneja > Date: Tue, 18 Mar 2014 15:21:16 +0530 > > 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. Why not just open every file with find-file-literally? If that loses something, then how come you are prepared to lose that for files larger than some arbitrary threshold, but not for smaller files? IOW, the size of the file usually says nothing about its contents or the mode in which you'd like to visit that file. So doing this based on size alone sounds like not a good idea to me.