diff options
| author | Richard M. Stallman | 1993-07-04 04:55:03 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-07-04 04:55:03 +0000 |
| commit | 9f315aebf604027e6490856f5149336ba5c84a50 (patch) | |
| tree | abc48b170f018eabdc39114340f15d7bb0a32652 /src | |
| parent | b45d89b0ef0bffcb865b39cc10aa536eb335d9a2 (diff) | |
| download | emacs-9f315aebf604027e6490856f5149336ba5c84a50.tar.gz emacs-9f315aebf604027e6490856f5149336ba5c84a50.zip | |
(Vmark_even_if_inactive): New var, with Lisp variable.
(check_mark): Use it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/callint.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/callint.c b/src/callint.c index 0528fe78f2d..1ffd839bcb3 100644 --- a/src/callint.c +++ b/src/callint.c | |||
| @@ -35,6 +35,10 @@ Lisp_Object Vcommand_history; | |||
| 35 | Lisp_Object Vcommand_debug_status, Qcommand_debug_status; | 35 | Lisp_Object Vcommand_debug_status, Qcommand_debug_status; |
| 36 | Lisp_Object Qenable_recursive_minibuffers; | 36 | Lisp_Object Qenable_recursive_minibuffers; |
| 37 | 37 | ||
| 38 | /* Non-nil means treat the mark as active | ||
| 39 | even if mark_active is 0. */ | ||
| 40 | Lisp_Object Vmark_even_if_inactive; | ||
| 41 | |||
| 38 | Lisp_Object Qlist; | 42 | Lisp_Object Qlist; |
| 39 | Lisp_Object preserved_fns; | 43 | Lisp_Object preserved_fns; |
| 40 | 44 | ||
| @@ -141,7 +145,7 @@ check_mark () | |||
| 141 | Lisp_Object tem = Fmarker_buffer (current_buffer->mark); | 145 | Lisp_Object tem = Fmarker_buffer (current_buffer->mark); |
| 142 | if (NILP (tem) || (XBUFFER (tem) != current_buffer)) | 146 | if (NILP (tem) || (XBUFFER (tem) != current_buffer)) |
| 143 | error ("The mark is not set now"); | 147 | error ("The mark is not set now"); |
| 144 | if (NILP (current_buffer->mark_active)) | 148 | if (NILP (current_buffer->mark_active) && NILP (Vmark_even_if_inactive)) |
| 145 | error ("The mark is not active now"); | 149 | error ("The mark is not active now"); |
| 146 | } | 150 | } |
| 147 | 151 | ||
| @@ -657,6 +661,14 @@ Bound each time `call-interactively' is called;\n\ | |||
| 657 | may be set by the debugger as a reminder for itself."); | 661 | may be set by the debugger as a reminder for itself."); |
| 658 | Vcommand_debug_status = Qnil; | 662 | Vcommand_debug_status = Qnil; |
| 659 | 663 | ||
| 664 | DEFVAR_LISP ("Vmark-even-if-inactive", &Vmark_even_if_inactive, | ||
| 665 | "*Non-nil means you can use the mark even when inactive.\n\ | ||
| 666 | This option makes a difference in Transient Mark mode.\n\ | ||
| 667 | When the option is non-nil, deactivation of the mark\n\ | ||
| 668 | turns off region highlighting, but commands that use the mark\n\ | ||
| 669 | behave as if the mark were still active."); | ||
| 670 | Vmark_even_if_inactive = Qnil; | ||
| 671 | |||
| 660 | defsubr (&Sinteractive); | 672 | defsubr (&Sinteractive); |
| 661 | defsubr (&Scall_interactively); | 673 | defsubr (&Scall_interactively); |
| 662 | defsubr (&Sprefix_numeric_value); | 674 | defsubr (&Sprefix_numeric_value); |