From: Eli Zaretskii Date: Sun, 7 Sep 2003 16:26:52 +0000 (+0000) Subject: (region_limit): Support any non-zero value of BEGINNINGP. X-Git-Tag: ttn-vms-21-2-B4~8884 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2063d89c11c5dbc3b84caf88546c9a088da421b3;p=emacs.git (region_limit): Support any non-zero value of BEGINNINGP. --- diff --git a/src/ChangeLog b/src/ChangeLog index 2c2ab0041be..5a7dd1962b0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2003-09-07 Eli Zaretskii + + * editfns.c (region_limit): Support any non-zero value of + BEGINNINGP. + 2003-09-03 Kim F. Storm * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01 diff --git a/src/editfns.c b/src/editfns.c index b057795f2ed..0b71d105155 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -299,7 +299,7 @@ region_limit (beginningp) if (NILP (m)) error ("The mark is not set now, so there is no region"); - if ((PT < XFASTINT (m)) == beginningp) + if ((PT < XFASTINT (m)) == (beginningp != 0)) m = make_number (PT); return m; }