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: issues with recent doprnt-related changes Date: Sat, 07 May 2011 10:55:52 +0300 Message-ID: <838vujkkqf.fsf@gnu.org> 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1304755019 18586 80.91.229.12 (7 May 2011 07:56:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 7 May 2011 07:56:59 +0000 (UTC) Cc: 8545@debbugs.gnu.org, eggert@cs.ucla.edu, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 07 09:56: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 1QIcNi-0003ZY-Mc for ged-emacs-devel@m.gmane.org; Sat, 07 May 2011 09:56:54 +0200 Original-Received: from localhost ([::1]:39368 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIcNi-0002Or-Ao for ged-emacs-devel@m.gmane.org; Sat, 07 May 2011 03:56:54 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIcNf-0002Ob-Ms for emacs-devel@gnu.org; Sat, 07 May 2011 03:56:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QIcNe-0002Xd-Ls for emacs-devel@gnu.org; Sat, 07 May 2011 03:56:51 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:49756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIcNe-0002XX-Dw for emacs-devel@gnu.org; Sat, 07 May 2011 03:56:50 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LKT00B00FD85Z00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Sat, 07 May 2011 10:55:58 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.234.175]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LKT00AD2FD1KMD0@a-mtaout20.012.net.il>; Sat, 07 May 2011 10:55:50 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:139191 Archived-At: > From: Stefan Monnier > Cc: eggert@cs.ucla.edu, 8545@debbugs.gnu.org, emacs-devel@gnu.org > Date: Sat, 07 May 2011 00:18:47 -0300 > > >> 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? Well, the resulting string can be returned by format-mode-line, for example.