From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: feature request: view part of file Date: Sat, 19 Jan 2013 12:51:31 +0200 Message-ID: <838v7pqwcs.fsf@gnu.org> References: <87lijrszn0.fsf@gnu.org> <87y5npeg4p.fsf@gnu.org> <877gnakr1d.fsf@gmail.com> <8738xykq0d.fsf@gmail.com> <83boclr7bu.fsf@gnu.org> <50FA7310.5070809@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1358592731 17724 80.91.229.3 (19 Jan 2013 10:52:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Jan 2013 10:52:11 +0000 (UTC) Cc: sds@gnu.org, spinuvit@gmail.com, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 19 11:52:29 2013 Return-path: Envelope-to: ged-emacs-devel@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 1TwW28-0001pK-9A for ged-emacs-devel@m.gmane.org; Sat, 19 Jan 2013 11:52:20 +0100 Original-Received: from localhost ([::1]:56186 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwW1r-0004Or-EQ for ged-emacs-devel@m.gmane.org; Sat, 19 Jan 2013 05:52:03 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwW1p-0004Oj-5g for emacs-devel@gnu.org; Sat, 19 Jan 2013 05:52:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwW1n-0000R0-Vf for emacs-devel@gnu.org; Sat, 19 Jan 2013 05:52:01 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:43098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwW1n-0000QW-NT; Sat, 19 Jan 2013 05:51:59 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MGV00C00CGYNV00@a-mtaout20.012.net.il>; Sat, 19 Jan 2013 12:51:22 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MGV00CZLCTLFH70@a-mtaout20.012.net.il>; Sat, 19 Jan 2013 12:51:22 +0200 (IST) In-reply-to: <50FA7310.5070809@cs.ucla.edu> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:156467 Archived-At: > Date: Sat, 19 Jan 2013 02:18:56 -0800 > From: Paul Eggert > Cc: sds@gnu.org, Vitalie Spinu , emacs-devel@gnu.org > > Sure, but Vitalie's not asking for large buffer positions, > just for large file offsets. Emac's a bit squirrelly in this > area, as it represents large file offsets by using floating > point numbers, but if it's going to be squirrelly it should > be *consistently* squirrelly, so I installed the attached patch > into the trunk as bzr 111554. That patch calls lseek inside write-region on non-regular files as well, where previously we didn't. Why is that a good idea? (It's an unrelated change anyway.) This log entry 1998-06-29 Andrew Innes * fileio.c (Ffile_regular_p) [WINDOWSNT]: Bind `w32-get-true-file-attributes' to t while calling stat. (Finsert_file_contents) [WINDOWSNT]: Likewise. (Fwrite_region): Don't try seeking to end of FILENAME for appending if not a regular file. seems to indicate that this condition was there for a reason.