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;
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;
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;
/* 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;
else
CHECK_NUMBER (n, 0);
-#if !NO_PROMPT_IN_BUFFER
{
int pos = XFASTINT (Fline_beginning_position (n));
if (INTEGERP (current_buffer->minibuffer_prompt_length)
pos = XFASTINT (current_buffer->minibuffer_prompt_length);
SET_PT (pos);
}
-#else
- SET_PT (XINT (Fline_beginning_position (n)));
-#endif
+
return Qnil;
}
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 ()))
{
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)