From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Buffer size limitation in insdel.c Date: Sat, 25 Sep 2010 05:40:39 -0400 Message-ID: References: <834odivv7v.fsf@gnu.org> <83r5gkvqpf.fsf@gnu.org> <834odftdvy.fsf@gnu.org> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: dough.gmane.org 1285407658 24171 80.91.229.12 (25 Sep 2010 09:40:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 25 Sep 2010 09:40:58 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 25 11:40:57 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OzRFZ-0007qL-Di for ged-emacs-devel@m.gmane.org; Sat, 25 Sep 2010 11:40:57 +0200 Original-Received: from localhost ([127.0.0.1]:42690 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OzRFY-0002Ef-Q6 for ged-emacs-devel@m.gmane.org; Sat, 25 Sep 2010 05:40:56 -0400 Original-Received: from [140.186.70.92] (port=52134 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OzRFM-0002Ea-Fa for emacs-devel@gnu.org; Sat, 25 Sep 2010 05:40:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OzRFH-0002Jj-IJ for emacs-devel@gnu.org; Sat, 25 Sep 2010 05:40:44 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:49300) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OzRFH-0002Jf-Ed for emacs-devel@gnu.org; Sat, 25 Sep 2010 05:40:39 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OzRFH-0001mU-A2; Sat, 25 Sep 2010 05:40:39 -0400 In-reply-to: <834odftdvy.fsf@gnu.org> (message from Eli Zaretskii on Fri, 24 Sep 2010 16:28:01 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:130834 Archived-At: The reason for this code is that many places use an int to hold buffer positions. All these places are bugs; they should use EMACS_INT instead. This code hides those bugs. I'd say it prevents them from really being bugs. If people want to fix those places to handle larger buffers, I have no objections. However, I doubt your physical memory will support very many 2-gig strings.