From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: jjanney@xmission.com (Jim Janney) Newsgroups: gmane.emacs.help Subject: Re: what is the point of point-min? Date: Sun, 7 Sep 2003 00:50:01 -0600 Organization: XMission http://www.xmission.com/ Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <1g0r73z.10p9ug11heij1mN%jjanney@xmission.com> References: <3F4E2B31.5070904@yahoo.com> <1a61f7e5.0308290444.10893c35@posting.google.com> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1062918241 9661 80.91.224.253 (7 Sep 2003 07:04:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 7 Sep 2003 07:04:01 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 07 09:03:59 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19vtaZ-0008TG-00 for ; Sun, 07 Sep 2003 09:03:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19vtXX-0002cc-Tm for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Sep 2003 03:00:51 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!xmission!nnrp.xmission!jjanney Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: slc551.modem.xmission.com Original-X-Trace: terabinaries.xmission.com 1062917527 4226 166.70.7.43 (7 Sep 2003 06:52:07 GMT) Original-X-Complaints-To: abuse@xmission.com Original-NNTP-Posting-Date: Sun, 7 Sep 2003 06:52:07 +0000 (UTC) User-Agent: MacSOUP/2.5b2 (Mac OS 9.2.2) Original-Xref: shelby.stanford.edu gnu.emacs.help:116415 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:12334 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12334 Rob Thorpe wrote, in part: > From editfns.c:- > > /* Return the start or end position of the region. > BEGINNINGP non-zero means return the start. > If there is no region active, signal an error. */ > > static Lisp_Object > region_limit (beginningp) > int beginningp; > { > extern Lisp_Object Vmark_even_if_inactive; /* Defined in callint.c. > */ > Lisp_Object m; > > if (!NILP (Vtransient_mark_mode) > && NILP (Vmark_even_if_inactive) > && NILP (current_buffer->mark_active)) > Fsignal (Qmark_inactive, Qnil); > > m = Fmarker_position (current_buffer->mark); > if (NILP (m)) > error ("There is no region now"); > > if ((PT < XFASTINT (m)) == beginningp) > m = make_number (PT); > return m; > } Note that the description of BEGINNINGP in the comment is wrong: the way the code is written, it only returns the start when beginningp is 1. -- Jim Janney