aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorTom Tromey2013-03-08 11:57:29 -0700
committerTom Tromey2013-03-08 11:57:29 -0700
commit71f91792e3013b397996905224f387da5cc539a9 (patch)
tree4c3d3ba909e76deea1cdf73b73fca67a57149465 /src/buffer.c
parent6f4de085f065e11f4df3195d47479f28f5ef08ba (diff)
parentb5426561089d39f18b42bed9dbfcb531f43ed562 (diff)
downloademacs-71f91792e3013b397996905224f387da5cc539a9.tar.gz
emacs-71f91792e3013b397996905224f387da5cc539a9.zip
merge from trunk
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/buffer.c b/src/buffer.c
index a06868ec6c3..4d24f970792 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -370,9 +370,6 @@ bset_zv_marker (struct buffer *b, Lisp_Object val)
370 b->INTERNAL_FIELD (zv_marker) = val; 370 b->INTERNAL_FIELD (zv_marker) = val;
371} 371}
372 372
373/* For debugging; temporary. See set_buffer_internal. */
374/* Lisp_Object Qlisp_mode, Vcheck_symbol; */
375
376void 373void
377nsberror (Lisp_Object spec) 374nsberror (Lisp_Object spec)
378{ 375{
@@ -3152,7 +3149,10 @@ ptrdiff_t
3152sort_overlays (Lisp_Object *overlay_vec, ptrdiff_t noverlays, struct window *w) 3149sort_overlays (Lisp_Object *overlay_vec, ptrdiff_t noverlays, struct window *w)
3153{ 3150{
3154 ptrdiff_t i, j; 3151 ptrdiff_t i, j;
3155 struct sortvec *sortvec = alloca (noverlays * sizeof *sortvec); 3152 USE_SAFE_ALLOCA;
3153 struct sortvec *sortvec;
3154
3155 SAFE_NALLOCA (sortvec, 1, noverlays);
3156 3156
3157 /* Put the valid and relevant overlays into sortvec. */ 3157 /* Put the valid and relevant overlays into sortvec. */
3158 3158
@@ -3198,6 +3198,8 @@ sort_overlays (Lisp_Object *overlay_vec, ptrdiff_t noverlays, struct window *w)
3198 3198
3199 for (i = 0; i < noverlays; i++) 3199 for (i = 0; i < noverlays; i++)
3200 overlay_vec[i] = sortvec[i].overlay; 3200 overlay_vec[i] = sortvec[i].overlay;
3201
3202 SAFE_FREE ();
3201 return (noverlays); 3203 return (noverlays);
3202} 3204}
3203 3205
@@ -6001,10 +6003,6 @@ simple case that you moved off with C-b means scrolling just one line.
6001window scrolls by a full window height. Meaningful values are 6003window scrolls by a full window height. Meaningful values are
6002between 0.0 and 1.0, inclusive. */); 6004between 0.0 and 1.0, inclusive. */);
6003 6005
6004/*DEFVAR_LISP ("debug-check-symbol", &Vcheck_symbol,
6005 "Don't ask.");
6006*/
6007
6008 DEFVAR_LISP ("before-change-functions", Vbefore_change_functions, 6006 DEFVAR_LISP ("before-change-functions", Vbefore_change_functions,
6009 doc: /* List of functions to call before each text change. 6007 doc: /* List of functions to call before each text change.
6010Two arguments are passed to each function: the positions of 6008Two arguments are passed to each function: the positions of