From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.devel Subject: Re: Huge file adventure (+patch) Date: Mon, 07 Oct 2013 20:03:12 +0400 Message-ID: <5252DB40.2060702@yandex.ru> References: <5252832E.5060804@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1381161812 17771 80.91.229.3 (7 Oct 2013 16:03:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Oct 2013 16:03:32 +0000 (UTC) Cc: Emacs development discussions To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 07 18:03:33 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 1VTDHR-0004YY-1B for ged-emacs-devel@m.gmane.org; Mon, 07 Oct 2013 18:03:33 +0200 Original-Received: from localhost ([::1]:60701 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTDHQ-0006BJ-M5 for ged-emacs-devel@m.gmane.org; Mon, 07 Oct 2013 12:03:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTDHG-000689-KA for emacs-devel@gnu.org; Mon, 07 Oct 2013 12:03:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTDH9-0001wz-MG for emacs-devel@gnu.org; Mon, 07 Oct 2013 12:03:22 -0400 Original-Received: from forward13.mail.yandex.net ([95.108.130.120]:35706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTDH9-0001wW-CG for emacs-devel@gnu.org; Mon, 07 Oct 2013 12:03:15 -0400 Original-Received: from smtp14.mail.yandex.net (smtp14.mail.yandex.net [95.108.131.192]) by forward13.mail.yandex.net (Yandex) with ESMTP id D6B57142214; Mon, 7 Oct 2013 20:03:12 +0400 (MSK) Original-Received: from smtp14.mail.yandex.net (localhost [127.0.0.1]) by smtp14.mail.yandex.net (Yandex) with ESMTP id A005D1B60015; Mon, 7 Oct 2013 20:03:12 +0400 (MSK) Original-Received: from unknown (unknown [37.139.80.10]) by smtp14.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Zj52sMFphB-3COCcoOB; Mon, 7 Oct 2013 20:03:12 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1381161792; bh=I30ez+2NRprhu56gELWs+3gIEozNipv0eDEJ19uu4Zg=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=LLV4HH6WtuOiLF/pA0Nq0k4CiUFVDphGHL40yqNdqDAojSGLo7hfr5vclUyDLFnDf 5BNxWLe7eVjvqJ/EUzljSubLSvaL6zBDoaWVSSLIpefl09eeONm5NBVOJfNTmv2QRp u1EhnIUQOEkUpxHdmHceATK4BP4UAA25OTM4VOh4= Authentication-Results: smtp14.mail.yandex.net; dkim=pass header.i=@yandex.ru User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 95.108.130.120 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:163950 Archived-At: On 10/07/2013 07:15 PM, Stefan Monnier wrote: > You can remove the { between "else" and "if" (with the side-benefit that > the unchanged code will stay at the same indentation level). Argh, OK. > Where/how do you make sure we loop back here for the rest > (when end-start > E_WRITE_MAX) ? Did you mean 'end - start < E_WRITE_MAX'? Or am I creating an endless loop in e_write (BTW, I don't see how)? Dmitry