emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r114850: * insdel.c: Fix minor problems found by sta


From: Paul Eggert
Subject: [Emacs-diffs] trunk r114850: * insdel.c: Fix minor problems found by static checking.
Date: Tue, 29 Oct 2013 18:40:58 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 114850
revision-id: address@hidden
parent: address@hidden
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Tue 2013-10-29 11:40:54 -0700
message:
  * insdel.c: Fix minor problems found by static checking.
  
  (Qregion_extract_function): Now static.
  (prepare_to_modify_buffer_1): Remove unused locals.
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/insdel.c                   insdel.c-20091113204419-o5vbwnq5f7feedwu-175
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2013-10-29 16:11:50 +0000
+++ b/src/ChangeLog     2013-10-29 18:40:54 +0000
@@ -1,3 +1,9 @@
+2013-10-29  Paul Eggert  <address@hidden>
+
+       * insdel.c: Fix minor problems found by static checking.
+       (Qregion_extract_function): Now static.
+       (prepare_to_modify_buffer_1): Remove unused locals.
+
 2013-10-29  Stefan Monnier  <address@hidden>
 
        * xdisp.c (prepare_menu_bars): Call Vpre_redisplay_function.

=== modified file 'src/insdel.c'
--- a/src/insdel.c      2013-10-29 16:11:50 +0000
+++ b/src/insdel.c      2013-10-29 18:40:54 +0000
@@ -1778,7 +1778,7 @@
   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 @@
          ? 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;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]