From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: feature request: view part of file Date: Sat, 19 Jan 2013 11:00:21 -0800 Organization: UCLA Computer Science Department Message-ID: <50FAED45.50106@cs.ucla.edu> 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> <838v7pqwcs.fsf@gnu.org> <50FA95FE.2090105@cs.ucla.edu> <83622tqo74.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1358622037 27253 80.91.229.3 (19 Jan 2013 19:00:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Jan 2013 19:00:37 +0000 (UTC) Cc: sds@gnu.org, spinuvit@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 19 20:00:55 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 1Twdew-0007Or-69 for ged-emacs-devel@m.gmane.org; Sat, 19 Jan 2013 20:00:54 +0100 Original-Received: from localhost ([::1]:35386 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Twdef-0003Wx-Fw for ged-emacs-devel@m.gmane.org; Sat, 19 Jan 2013 14:00:37 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Twded-0003Wh-4d for emacs-devel@gnu.org; Sat, 19 Jan 2013 14:00:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Twdec-0007fF-AO for emacs-devel@gnu.org; Sat, 19 Jan 2013 14:00:35 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:40416) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Twdea-0007eg-QI; Sat, 19 Jan 2013 14:00:32 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 27223A60004; Sat, 19 Jan 2013 11:00:30 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Jl9NdCyhalyC; Sat, 19 Jan 2013 11:00:29 -0800 (PST) Original-Received: from [192.168.1.9] (pool-71-189-154-249.lsanca.fios.verizon.net [71.189.154.249]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id C0AEFA60003; Sat, 19 Jan 2013 11:00:29 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 In-Reply-To: <83622tqo74.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 131.179.128.62 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:156482 Archived-At: On 01/19/2013 05:47 AM, Eli Zaretskii wrote: > We cannot use O_TRUNC if the APPEND argument is non-nil, can we? Right you are; thanks for catching that. I installed it as trunk bzr 111559, with the following line instead: open_flags |= EQ (mustbenew, Qexcl) ? O_EXCL : !NILP (append) ? 0 : O_TRUNC;