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: Wed, 12 Aug 2009 22:22:30 -0400 Message-ID: References: <83vdkvjbet.fsf@gnu.org> <83skfyjj56.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250130173 27656 80.91.229.12 (13 Aug 2009 02:22:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Aug 2009 02:22:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 13 04:22:46 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 1MbPxl-0008Aq-4S for ged-emacs-devel@m.gmane.org; Thu, 13 Aug 2009 04:22:45 +0200 Original-Received: from localhost ([127.0.0.1]:39073 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbPxi-0002Ls-Gd for ged-emacs-devel@m.gmane.org; Wed, 12 Aug 2009 22:22:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MbPxe-0002Lk-7l for emacs-devel@gnu.org; Wed, 12 Aug 2009 22:22:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MbPxZ-0002KG-S6 for emacs-devel@gnu.org; Wed, 12 Aug 2009 22:22:37 -0400 Original-Received: from [199.232.76.173] (port=41833 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbPxZ-0002KD-Po for emacs-devel@gnu.org; Wed, 12 Aug 2009 22:22:33 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:5309 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MbPxY-00068l-63; Wed, 12 Aug 2009 22:22:32 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUEAGsVg0pMCoTf/2dsb2JhbACBUtFehBkFhz4 X-IronPort-AV: E=Sophos;i="4.43,371,1246852800"; d="scan'208";a="43443076" Original-Received: from 76-10-132-223.dsl.teksavvy.com (HELO pastel.home) ([76.10.132.223]) by ironport2-out.teksavvy.com with ESMTP; 12 Aug 2009 22:22:10 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id D27D67F24; Wed, 12 Aug 2009 22:22:30 -0400 (EDT) In-Reply-To: <83skfyjj56.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 11 Aug 2009 21:32:53 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:114162 Archived-At: > I asked a serious question. Would you please humor me with a serious > answer? Just the same old general programming principle that says that you should avoid using integer constants and prefer to give them names, so the intention is clear. In the case of "1", there might be many different kinds of "1", it can be "1" the size of chars in a buffer, or "1" the position of the second char in a string, or ... As a general rule, using 1 rather than (point-min) tends to also introduce bugs where code only works when the buffer is widened, so it's good practice to prefer (point-min) over 1. Stefan