Mercurial > emacs
changeset 25351:c7247eabc834
Remove conditional compilation on NO_PROMPT_IN_BUFFER.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Sat, 21 Aug 1999 19:29:47 +0000 |
parents | f964a1e5b29c |
children | 9d8bd4841e77 |
files | src/buffer.c src/buffer.h src/cmds.c src/indent.c src/insdel.c |
diffstat | 5 files changed, 3 insertions(+), 31 deletions(-) [+] |
line wrap: on
line diff
--- 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;
--- 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;
--- 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; }
--- 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 ()))
--- 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)