# HG changeset patch # User Gerd Moellmann # Date 935263787 0 # Node ID c7247eabc83480ac0459272e314fee4169038316 # Parent f964a1e5b29ce772f48474a4b4837b6f57a645cf Remove conditional compilation on NO_PROMPT_IN_BUFFER. diff -r f964a1e5b29c -r c7247eabc834 src/buffer.c --- a/src/buffer.c Sat Aug 21 19:29:38 1999 +0000 +++ b/src/buffer.c Sat Aug 21 19:29:47 1999 +0000 @@ -369,9 +369,7 @@ b->newline_cache = 0; b->width_run_cache = 0; b->width_table = Qnil; -#if !NO_PROMPT_IN_BUFFER b->minibuffer_prompt_length = Qnil; -#endif /* Put this on the chain of all buffers including killed ones. */ b->next = all_buffers; @@ -450,9 +448,7 @@ b->newline_cache = 0; b->width_run_cache = 0; b->width_table = Qnil; -#if !NO_PROMPT_IN_BUFFER b->minibuffer_prompt_length = Qnil; -#endif /* Put this on the chain of all buffers including killed ones. */ b->next = all_buffers; @@ -1221,9 +1217,7 @@ b->width_run_cache = 0; } b->width_table = Qnil; -#if !NO_PROMPT_IN_BUFFER b->minibuffer_prompt_length = Qnil; -#endif UNBLOCK_INPUT; b->undo_list = Qnil; diff -r f964a1e5b29c -r c7247eabc834 src/buffer.h --- a/src/buffer.h Sat Aug 21 19:29:38 1999 +0000 +++ b/src/buffer.h Sat Aug 21 19:29:47 1999 +0000 @@ -488,11 +488,9 @@ /* The name of this buffer. */ Lisp_Object name; -#if !NO_PROMPT_IN_BUFFER - /* Amount at the start of the buffer used by a minibuffer prompt, - or nil if this buffer is not a mini-buffer. */ + /* Length in characters of the prompt in a mini-buffer, or nil if + this buffer is not a mini-buffer. */ Lisp_Object minibuffer_prompt_length; -#endif /* The name of the file visited in this buffer, or nil. */ Lisp_Object filename; diff -r f964a1e5b29c -r c7247eabc834 src/cmds.c --- a/src/cmds.c Sat Aug 21 19:29:38 1999 +0000 +++ b/src/cmds.c Sat Aug 21 19:29:47 1999 +0000 @@ -163,7 +163,6 @@ else CHECK_NUMBER (n, 0); -#if !NO_PROMPT_IN_BUFFER { int pos = XFASTINT (Fline_beginning_position (n)); if (INTEGERP (current_buffer->minibuffer_prompt_length) @@ -171,9 +170,7 @@ pos = XFASTINT (current_buffer->minibuffer_prompt_length); SET_PT (pos); } -#else - SET_PT (XINT (Fline_beginning_position (n))); -#endif + return Qnil; } diff -r f964a1e5b29c -r c7247eabc834 src/indent.c --- a/src/indent.c Sat Aug 21 19:29:38 1999 +0000 +++ b/src/indent.c Sat Aug 21 19:29:47 1999 +0000 @@ -1654,21 +1654,6 @@ XSETWINDOW (window, w); -#if NO_PROMPT_IN_BUFFER - /* The omission of the clause - && marker_position (w->start) == BEG - here is deliberate; I think we want to measure from the prompt - position even if the minibuffer window has scrolled. */ - if (EQ (window, minibuf_window)) - { - if (minibuf_prompt_width == 0 && STRINGP (minibuf_prompt)) - minibuf_prompt_width - = string_display_width (minibuf_prompt, Qnil, Qnil); - - start_hpos = minibuf_prompt_width; - } -#endif /* NO_PROMPT_IN_BUFFER */ - /* If the window contains this buffer, use it for getting text properties. Otherwise use the current buffer as arg for doing that. */ if (EQ (w->buffer, Fcurrent_buffer ())) diff -r f964a1e5b29c -r c7247eabc834 src/insdel.c --- a/src/insdel.c Sat Aug 21 19:29:38 1999 +0000 +++ b/src/insdel.c Sat Aug 21 19:29:47 1999 +0000 @@ -2052,14 +2052,12 @@ { int from_byte, to_byte; -#if !NO_PROMPT_IN_BUFFER if (INTEGERP (current_buffer->minibuffer_prompt_length)) { /* Don't delete part of a mini-buffer prompt. */ int len = XFASTINT (current_buffer->minibuffer_prompt_length); from = max (from, len); } -#endif /* !NO_PROMPT_IN_BUFFER */ /* Make args be valid */ if (from < BEGV)