From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: issues with recent doprnt-related changes Date: Sat, 07 May 2011 00:18:47 -0300 Message-ID: References: <4DB50AB9.6060100@cs.ucla.edu> <83tydmaeo3.fsf@gnu.org> <4DB65FF1.5010003@cs.ucla.edu> <83aafb8p4a.fsf@gnu.org> <4DB8ABEA.3080503@cs.ucla.edu> <4DB9146D.2040702@cs.ucla.edu> <4DB9E5FF.9020506@cs.ucla.edu> <83d3k571ee.fsf@gnu.org> <4DC10012.8020809@cs.ucla.edu> <4DC1692B.1090101@cs.ucla.edu> <83ei4cnau6.fsf@gnu.org> <83vcxnlvl9.fsf@gnu.org> <83k4e3lhzp.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1304738340 20059 80.91.229.12 (7 May 2011 03:19:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 7 May 2011 03:19:00 +0000 (UTC) Cc: 8545@debbugs.gnu.org, eggert@cs.ucla.edu, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 07 05:18:55 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QIY2h-0006S2-Mh for ged-emacs-devel@m.gmane.org; Sat, 07 May 2011 05:18:55 +0200 Original-Received: from localhost ([::1]:49573 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIY2g-0004qi-IT for ged-emacs-devel@m.gmane.org; Fri, 06 May 2011 23:18:54 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIY2e-0004qZ-2g for emacs-devel@gnu.org; Fri, 06 May 2011 23:18:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QIY2d-0001xD-7d for emacs-devel@gnu.org; Fri, 06 May 2011 23:18:52 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:43740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIY2d-0001x8-4l for emacs-devel@gnu.org; Fri, 06 May 2011 23:18:51 -0400 Original-Received: from 121-249-126-200.fibertel.com.ar ([200.126.249.121]:51180 helo=ceviche.home) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QIY2c-0005jX-HM; Fri, 06 May 2011 23:18:50 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 5CAEF66248; Sat, 7 May 2011 00:18:47 -0300 (ART) In-Reply-To: <83k4e3lhzp.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 06 May 2011 22:57:30 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 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:139188 Archived-At: >> note that "the position of the nul byte" is the same as "the length >> of the list", so it's still <= MOST_POSITIVE_FIXNUM. It's only the >> position after the nul byte that would overflow. > But what about this code and its commentary (from > next_element_from_c_string): > /* IT's position can be greater IT->string_nchars in case a field > width or precision has been specified when the iterator was > initialized. */ > if (IT_CHARPOS (*it) >= it->end_charpos) > { > /* End of the game. */ > ... Do these ever make it into a Lisp_Object? Stefan