aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann1999-08-21 19:29:47 +0000
committerGerd Moellmann1999-08-21 19:29:47 +0000
commit4f13cc9959c1a786da94bbb1fef1a633619e3066 (patch)
tree999e06fdda0325331f795750329e8ea5483cfd87 /src
parent32347cf4deb76073e688fe14f0875e0366c981be (diff)
downloademacs-4f13cc9959c1a786da94bbb1fef1a633619e3066.tar.gz
emacs-4f13cc9959c1a786da94bbb1fef1a633619e3066.zip
Remove conditional compilation on NO_PROMPT_IN_BUFFER.
Diffstat (limited to 'src')
-rw-r--r--src/buffer.c6
-rw-r--r--src/buffer.h6
-rw-r--r--src/cmds.c5
-rw-r--r--src/indent.c15
-rw-r--r--src/insdel.c2
5 files changed, 3 insertions, 31 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 1b0b5ee988e..8aa19381983 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -369,9 +369,7 @@ The value is never nil.")
369 b->newline_cache = 0; 369 b->newline_cache = 0;
370 b->width_run_cache = 0; 370 b->width_run_cache = 0;
371 b->width_table = Qnil; 371 b->width_table = Qnil;
372#if !NO_PROMPT_IN_BUFFER
373 b->minibuffer_prompt_length = Qnil; 372 b->minibuffer_prompt_length = Qnil;
374#endif
375 373
376 /* Put this on the chain of all buffers including killed ones. */ 374 /* Put this on the chain of all buffers including killed ones. */
377 b->next = all_buffers; 375 b->next = all_buffers;
@@ -450,9 +448,7 @@ NAME should be a string which is not the name of an existing buffer.")
450 b->newline_cache = 0; 448 b->newline_cache = 0;
451 b->width_run_cache = 0; 449 b->width_run_cache = 0;
452 b->width_table = Qnil; 450 b->width_table = Qnil;
453#if !NO_PROMPT_IN_BUFFER
454 b->minibuffer_prompt_length = Qnil; 451 b->minibuffer_prompt_length = Qnil;
455#endif
456 452
457 /* Put this on the chain of all buffers including killed ones. */ 453 /* Put this on the chain of all buffers including killed ones. */
458 b->next = all_buffers; 454 b->next = all_buffers;
@@ -1221,9 +1217,7 @@ with SIGHUP.")
1221 b->width_run_cache = 0; 1217 b->width_run_cache = 0;
1222 } 1218 }
1223 b->width_table = Qnil; 1219 b->width_table = Qnil;
1224#if !NO_PROMPT_IN_BUFFER
1225 b->minibuffer_prompt_length = Qnil; 1220 b->minibuffer_prompt_length = Qnil;
1226#endif
1227 UNBLOCK_INPUT; 1221 UNBLOCK_INPUT;
1228 b->undo_list = Qnil; 1222 b->undo_list = Qnil;
1229 1223
diff --git a/src/buffer.h b/src/buffer.h
index 4928333cd43..99a1f60a296 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -488,11 +488,9 @@ struct buffer
488 /* The name of this buffer. */ 488 /* The name of this buffer. */
489 Lisp_Object name; 489 Lisp_Object name;
490 490
491#if !NO_PROMPT_IN_BUFFER 491 /* Length in characters of the prompt in a mini-buffer, or nil if
492 /* Amount at the start of the buffer used by a minibuffer prompt, 492 this buffer is not a mini-buffer. */
493 or nil if this buffer is not a mini-buffer. */
494 Lisp_Object minibuffer_prompt_length; 493 Lisp_Object minibuffer_prompt_length;
495#endif
496 494
497 /* The name of the file visited in this buffer, or nil. */ 495 /* The name of the file visited in this buffer, or nil. */
498 Lisp_Object filename; 496 Lisp_Object filename;
diff --git a/src/cmds.c b/src/cmds.c
index 9c2f83dc054..64e7eaca4f2 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -163,7 +163,6 @@ If scan reaches end of buffer, stop there without error.")
163 else 163 else
164 CHECK_NUMBER (n, 0); 164 CHECK_NUMBER (n, 0);
165 165
166#if !NO_PROMPT_IN_BUFFER
167 { 166 {
168 int pos = XFASTINT (Fline_beginning_position (n)); 167 int pos = XFASTINT (Fline_beginning_position (n));
169 if (INTEGERP (current_buffer->minibuffer_prompt_length) 168 if (INTEGERP (current_buffer->minibuffer_prompt_length)
@@ -171,9 +170,7 @@ If scan reaches end of buffer, stop there without error.")
171 pos = XFASTINT (current_buffer->minibuffer_prompt_length); 170 pos = XFASTINT (current_buffer->minibuffer_prompt_length);
172 SET_PT (pos); 171 SET_PT (pos);
173 } 172 }
174#else 173
175 SET_PT (XINT (Fline_beginning_position (n)));
176#endif
177 return Qnil; 174 return Qnil;
178} 175}
179 176
diff --git a/src/indent.c b/src/indent.c
index 18109acc2bc..699bae64bc1 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -1654,21 +1654,6 @@ vmotion (from, vtarget, w)
1654 1654
1655 XSETWINDOW (window, w); 1655 XSETWINDOW (window, w);
1656 1656
1657#if NO_PROMPT_IN_BUFFER
1658 /* The omission of the clause
1659 && marker_position (w->start) == BEG
1660 here is deliberate; I think we want to measure from the prompt
1661 position even if the minibuffer window has scrolled. */
1662 if (EQ (window, minibuf_window))
1663 {
1664 if (minibuf_prompt_width == 0 && STRINGP (minibuf_prompt))
1665 minibuf_prompt_width
1666 = string_display_width (minibuf_prompt, Qnil, Qnil);
1667
1668 start_hpos = minibuf_prompt_width;
1669 }
1670#endif /* NO_PROMPT_IN_BUFFER */
1671
1672 /* If the window contains this buffer, use it for getting text properties. 1657 /* If the window contains this buffer, use it for getting text properties.
1673 Otherwise use the current buffer as arg for doing that. */ 1658 Otherwise use the current buffer as arg for doing that. */
1674 if (EQ (w->buffer, Fcurrent_buffer ())) 1659 if (EQ (w->buffer, Fcurrent_buffer ()))
diff --git a/src/insdel.c b/src/insdel.c
index 0ea4924afc5..bbf0f7b036e 100644
--- a/src/insdel.c
+++ b/src/insdel.c
@@ -2052,14 +2052,12 @@ del_range_1 (from, to, prepare)
2052{ 2052{
2053 int from_byte, to_byte; 2053 int from_byte, to_byte;
2054 2054
2055#if !NO_PROMPT_IN_BUFFER
2056 if (INTEGERP (current_buffer->minibuffer_prompt_length)) 2055 if (INTEGERP (current_buffer->minibuffer_prompt_length))
2057 { 2056 {
2058 /* Don't delete part of a mini-buffer prompt. */ 2057 /* Don't delete part of a mini-buffer prompt. */
2059 int len = XFASTINT (current_buffer->minibuffer_prompt_length); 2058 int len = XFASTINT (current_buffer->minibuffer_prompt_length);
2060 from = max (from, len); 2059 from = max (from, len);
2061 } 2060 }
2062#endif /* !NO_PROMPT_IN_BUFFER */
2063 2061
2064 /* Make args be valid */ 2062 /* Make args be valid */
2065 if (from < BEGV) 2063 if (from < BEGV)