unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: jjanney@xmission.com (Jim Janney)
Subject: Re: what is the point of point-min?
Date: Sun, 7 Sep 2003 00:50:01 -0600	[thread overview]
Message-ID: <1g0r73z.10p9ug11heij1mN%jjanney@xmission.com> (raw)
In-Reply-To: 1a61f7e5.0308290444.10893c35@posting.google.com

Rob Thorpe <robert.thorpe@antenova.com> 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 

  parent reply	other threads:[~2003-09-07  6:50 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E19s71c-0005cn-KT@monty-python.gnu.org>
2003-08-27 23:40 ` what is the point of point-min? Joe Corneli
     [not found] ` <mailman.1156.1062027752.29551.help-gnu-emacs@gnu.org>
2003-08-28  0:23   ` Jesper Harder
2003-08-28 16:17   ` Kevin Rodgers
2003-08-28 17:05     ` Jesper Harder
2003-08-28 17:59       ` Barry Margolin
2003-08-28 18:47         ` Jesper Harder
2003-08-28 20:05           ` Kai Großjohann
2003-08-28 21:11             ` Greg Hill
2003-08-29 11:30               ` Eli Zaretskii
2003-08-28 22:11             ` Johan Bockgård
2003-08-29  7:33             ` Oliver Scholz
     [not found]             ` <mailman.1207.1062105211.29551.help-gnu-emacs@gnu.org>
2003-08-29  7:21               ` Oliver Scholz
2003-08-29 11:32                 ` Eli Zaretskii
2003-08-29 10:41               ` Kai Großjohann
2003-08-29 12:44           ` Rob Thorpe
2003-08-30  2:54             ` Jesper Harder
2003-09-01 13:41               ` Rob Thorpe
2003-09-07  6:50             ` Jim Janney [this message]
2003-09-07 17:28               ` Eli Zaretskii
2003-08-28 18:34       ` Kevin Rodgers
     [not found]       ` <m3znhttxic.fsf@peorth.gweep.net>
2003-08-28 20:39         ` Jesper Harder
     [not found]           ` <m31xv431u6.fsf@peorth.gweep.net>
2003-08-30  3:32             ` Jesper Harder
     [not found]               ` <m3ekz2idao.fsf@peorth.gweep.net>
2003-08-31 10:58                 ` Unknown
2003-09-01 17:04                 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1g0r73z.10p9ug11heij1mN%jjanney@xmission.com \
    --to=jjanney@xmission.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).