summaryrefslogtreecommitdiff
path: root/src/insdel.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2013-10-29 11:40:54 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2013-10-29 11:40:54 -0700
commitdcd163ac993757af6afa129b8625e3ea1c43973a (patch)
treee3e814bbd114f46b650b5f41e798aa4dd77965c1 /src/insdel.c
parent3472b6c682817242f8b6134dea06a6ce4777e419 (diff)
* insdel.c: Fix minor problems found by static checking.
(Qregion_extract_function): Now static. (prepare_to_modify_buffer_1): Remove unused locals.
Diffstat (limited to 'src/insdel.c')
-rw-r--r--src/insdel.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/insdel.c b/src/insdel.c
index 7e6182deb9..d7b7ff05e2 100644
--- a/src/insdel.c
+++ b/src/insdel.c
@@ -1778,7 +1778,7 @@ modify_text (ptrdiff_t start, ptrdiff_t end)
bset_point_before_scroll (current_buffer, Qnil);
}
-Lisp_Object Qregion_extract_function;
+static Lisp_Object Qregion_extract_function;
/* Check that it is okay to modify the buffer between START and END,
which are char positions.
@@ -1854,12 +1854,8 @@ prepare_to_modify_buffer_1 (ptrdiff_t start, ptrdiff_t end,
? EQ (CAR_SAFE (Vtransient_mark_mode), Qonly)
: (!NILP (Vselect_active_regions)
&& !NILP (Vtransient_mark_mode))))
- {
- ptrdiff_t b = marker_position (BVAR (current_buffer, mark));
- ptrdiff_t e = PT;
- Vsaved_region_selection
- = call1 (Fsymbol_value (Qregion_extract_function), Qnil);
- }
+ Vsaved_region_selection
+ = call1 (Fsymbol_value (Qregion_extract_function), Qnil);
signal_before_change (start, end, preserve_ptr);
Vdeactivate_mark = Qt;