Mercurial > emacs
changeset 4038:03a4c3912c13
(region_limit): Don't error if Vmark_even_if_inactive is set. When the
mark is inactive and that is a no-no, signal mark-inactive instead of using
error with a message.
author | Roland McGrath <roland@gnu.org> |
---|---|
date | Thu, 08 Jul 1993 21:36:04 +0000 |
parents | aecb99c65ab0 |
children | 77cb08d1c4a5 |
files | src/editfns.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/editfns.c Thu Jul 08 21:27:33 1993 +0000 +++ b/src/editfns.c Thu Jul 08 21:36:04 1993 +0000 @@ -198,8 +198,9 @@ int beginningp; { register Lisp_Object m; - if (!NILP (Vtransient_mark_mode) && NILP (current_buffer->mark_active)) - error ("There is no region now"); + 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 ((point < XFASTINT (m)) == beginningp)