comparison src/buffer.c @ 25626:acfb741e6e24

(Ferase_buffer): Don't erase the minibuffer prompt.
author Richard M. Stallman <rms@gnu.org>
date Fri, 10 Sep 1999 06:32:34 +0000
parents e98819a94512
children ff17759d9d9f
comparison
equal deleted inserted replaced
25625:c0e27d3ce645 25626:acfb741e6e24
1703 Any narrowing restriction in effect (see `narrow-to-region') is removed,\n\ 1703 Any narrowing restriction in effect (see `narrow-to-region') is removed,\n\
1704 so the buffer is truly empty after this.") 1704 so the buffer is truly empty after this.")
1705 () 1705 ()
1706 { 1706 {
1707 Fwiden (); 1707 Fwiden ();
1708 del_range (BEG, Z); 1708
1709 if (INTEGERP (current_buffer->minibuffer_prompt_length))
1710 del_range (XINT (current_buffer->minibuffer_prompt_length), Z);
1711 else
1712 del_range (BEG, Z);
1713
1709 current_buffer->last_window_start = 1; 1714 current_buffer->last_window_start = 1;
1710 /* Prevent warnings, or suspension of auto saving, that would happen 1715 /* Prevent warnings, or suspension of auto saving, that would happen
1711 if future size is less than past size. Use of erase-buffer 1716 if future size is less than past size. Use of erase-buffer
1712 implies that the future text is not really related to the past text. */ 1717 implies that the future text is not really related to the past text. */
1713 XSETFASTINT (current_buffer->save_length, 0); 1718 XSETFASTINT (current_buffer->save_length, 0);