aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann1999-09-12 20:21:48 +0000
committerGerd Moellmann1999-09-12 20:21:48 +0000
commitc8bd80201651d9218a17f1309fda91ffbb050bba (patch)
treeede24cef96039148e50203a29a910166695f4383
parentc1ea301b758936af5cc061eee450dec203af0b5e (diff)
downloademacs-c8bd80201651d9218a17f1309fda91ffbb050bba.tar.gz
emacs-c8bd80201651d9218a17f1309fda91ffbb050bba.zip
(Fget_buffer_create): Use prompt_end_charpos instead
of minibuffer_prompt_length. (Fmake_indirect_buffer): Ditto. (Fkill_buffer): Ditto. (Ferase_buffer): Ditto.
-rw-r--r--src/buffer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 69bf17283ee..68013d4032a 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -373,7 +373,7 @@ The value is never nil.")
373 b->newline_cache = 0; 373 b->newline_cache = 0;
374 b->width_run_cache = 0; 374 b->width_run_cache = 0;
375 b->width_table = Qnil; 375 b->width_table = Qnil;
376 b->minibuffer_prompt_length = Qnil; 376 b->prompt_end_charpos = Qnil;
377 b->prevent_redisplay_optimizations_p = 1; 377 b->prevent_redisplay_optimizations_p = 1;
378 378
379 /* Put this on the chain of all buffers including killed ones. */ 379 /* Put this on the chain of all buffers including killed ones. */
@@ -453,7 +453,7 @@ NAME should be a string which is not the name of an existing buffer.")
453 b->newline_cache = 0; 453 b->newline_cache = 0;
454 b->width_run_cache = 0; 454 b->width_run_cache = 0;
455 b->width_table = Qnil; 455 b->width_table = Qnil;
456 b->minibuffer_prompt_length = Qnil; 456 b->prompt_end_charpos = Qnil;
457 457
458 /* Put this on the chain of all buffers including killed ones. */ 458 /* Put this on the chain of all buffers including killed ones. */
459 b->next = all_buffers; 459 b->next = all_buffers;
@@ -1223,7 +1223,7 @@ with SIGHUP.")
1223 b->width_run_cache = 0; 1223 b->width_run_cache = 0;
1224 } 1224 }
1225 b->width_table = Qnil; 1225 b->width_table = Qnil;
1226 b->minibuffer_prompt_length = Qnil; 1226 b->prompt_end_charpos = Qnil;
1227 UNBLOCK_INPUT; 1227 UNBLOCK_INPUT;
1228 b->undo_list = Qnil; 1228 b->undo_list = Qnil;
1229 1229
@@ -1706,8 +1706,8 @@ so the buffer is truly empty after this.")
1706{ 1706{
1707 Fwiden (); 1707 Fwiden ();
1708 1708
1709 if (INTEGERP (current_buffer->minibuffer_prompt_length)) 1709 if (INTEGERP (current_buffer->prompt_end_charpos))
1710 del_range (XINT (current_buffer->minibuffer_prompt_length), Z); 1710 del_range (XINT (current_buffer->prompt_end_charpos), Z);
1711 else 1711 else
1712 del_range (BEG, Z); 1712 del_range (BEG, Z);
1713 1713