From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: point-min and 1 Date: Wed, 12 Aug 2009 10:55:58 +0200 Message-ID: <4A82839E.2010409@gmx.at> References: <83vdkvjbet.fsf@gnu.org> <4A813774.1030309@gmx.at> <83tz0ejjm8.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1250067486 10316 80.91.229.12 (12 Aug 2009 08:58:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Aug 2009 08:58:06 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 12 10:57:59 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 1Mb9eg-0000MT-DW for ged-emacs-devel@m.gmane.org; Wed, 12 Aug 2009 10:57:58 +0200 Original-Received: from localhost ([127.0.0.1]:59823 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mb9ee-0003DB-Hn for ged-emacs-devel@m.gmane.org; Wed, 12 Aug 2009 04:57:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mb9cy-0002kh-DU for emacs-devel@gnu.org; Wed, 12 Aug 2009 04:56:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mb9ct-0002hR-Sd for emacs-devel@gnu.org; Wed, 12 Aug 2009 04:56:11 -0400 Original-Received: from [199.232.76.173] (port=52970 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mb9ct-0002hJ-Il for emacs-devel@gnu.org; Wed, 12 Aug 2009 04:56:07 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:53385) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Mb9cs-0004ST-RZ for emacs-devel@gnu.org; Wed, 12 Aug 2009 04:56:07 -0400 Original-Received: (qmail invoked by alias); 12 Aug 2009 08:56:04 -0000 Original-Received: from 62-47-48-137.adsl.highway.telekom.at (EHLO [62.47.48.137]) [62.47.48.137] by mail.gmx.net (mp016) with SMTP; 12 Aug 2009 10:56:04 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18LcWEo06oLdY6N4x4uMxqFKfJu1XMCI71rmZQC2g VXXSChRiEXbrh/ User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <83tz0ejjm8.fsf@gnu.org> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.71 X-detected-operating-system: by monty-python.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:114131 Archived-At: >> > Can `(goto-char (point-min))' be different from `(goto-char 1)' after >> > a call to `widen'? >> >> simple.el should not promote bad programming style ;-) > > What's bad about it? The call to `widen' is of no importance here. As a matter of fact, `(goto-char (point-min))' and `(goto-char 1)' are operationally equivalent - they "always" move point to the same buffer position regardless of whether the buffer was narrowed or not. IMHO writing `(goto-char 1)' is bad style because it exhibits a low level detail of Elisp implementation, namely that it sees buffer positions as numbers counted from 1. I think Elisp code - and in particular code in simple.el which might be used as some kind of reference code for people starting to speak Elisp - should hide such details wherever it can. martin