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: point-min and 1 Date: Thu, 13 Aug 2009 12:48:07 -0400 Message-ID: References: <83vdkvjbet.fsf@gnu.org> <83skfyjj56.fsf@gnu.org> <4A83E28E.2090808@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250182298 5007 80.91.229.12 (13 Aug 2009 16:51:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Aug 2009 16:51:38 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 13 18:51:31 2009 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.50) id 1MbdWV-0001gT-15 for ged-emacs-devel@m.gmane.org; Thu, 13 Aug 2009 18:51:31 +0200 Original-Received: from localhost ([127.0.0.1]:58072 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbdWU-0004gQ-FG for ged-emacs-devel@m.gmane.org; Thu, 13 Aug 2009 12:51:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MbdTP-00008G-8w for emacs-devel@gnu.org; Thu, 13 Aug 2009 12:48:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MbdTK-0008Rz-BU for emacs-devel@gnu.org; Thu, 13 Aug 2009 12:48:18 -0400 Original-Received: from [199.232.76.173] (port=35400 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbdTK-0008RD-0K for emacs-devel@gnu.org; Thu, 13 Aug 2009 12:48:14 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:50091) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MbdTH-0004rg-GS; Thu, 13 Aug 2009 12:48:11 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MbdTG-0004BP-Ig; Thu, 13 Aug 2009 12:48:10 -0400 Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id n7DGm7vn017290; Thu, 13 Aug 2009 12:48:07 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 13AD59015C; Thu, 13 Aug 2009 12:48:07 -0400 (EDT) In-Reply-To: <4A83E28E.2090808@gmx.at> (martin rudalics's message of "Thu, 13 Aug 2009 11:53:18 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3340=0 X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:114187 Archived-At: >> As a general rule, using 1 rather than (point-min) tends to also >> introduce bugs where code only works when the buffer is widened, > What sort of bugs? All kinds, really. Note that I'm talking about the use of 1 i.s.o point-min in general, not specifically in calls to goto-char. For many other functions (e.g. put-text-property), using 1 rather than (point-min) can result in signalling an error when the buffer is narrowed. Stefan