aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann1999-08-21 19:29:11 +0000
committerGerd Moellmann1999-08-21 19:29:11 +0000
commit0634a78e14d26ddd3727b1ea7c51f893832f4118 (patch)
tree7c77fec7a0b7a6c1af6ce7b66c3d5bc4d6533339 /src
parentb96fd3e81f4a8c8b9e68df026a022d9ac23c2bfc (diff)
downloademacs-0634a78e14d26ddd3727b1ea7c51f893832f4118.tar.gz
emacs-0634a78e14d26ddd3727b1ea7c51f893832f4118.zip
Remove conditional compilation on NO_PROMPT_IN_BUFFER.
(Fcurrent_message): Rewritten.
Diffstat (limited to 'src')
-rw-r--r--src/editfns.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/editfns.c b/src/editfns.c
index bbe6aec0e8a..5c379e0a6c9 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -1606,14 +1606,12 @@ make_buffer_string_both (start, start_byte, end, end_byte, props)
1606{ 1606{
1607 Lisp_Object result, tem, tem1; 1607 Lisp_Object result, tem, tem1;
1608 1608
1609#if !NO_PROMPT_IN_BUFFER
1610 if (INTEGERP (current_buffer->minibuffer_prompt_length)) 1609 if (INTEGERP (current_buffer->minibuffer_prompt_length))
1611 { 1610 {
1612 int len = XFASTINT (current_buffer->minibuffer_prompt_length); 1611 int len = XFASTINT (current_buffer->minibuffer_prompt_length);
1613 start = min (end, max (len, start)); 1612 start = min (end, max (len, start));
1614 start_byte = CHAR_TO_BYTE (start); 1613 start_byte = CHAR_TO_BYTE (start);
1615 } 1614 }
1616#endif
1617 1615
1618 if (start < GPT && GPT < end) 1616 if (start < GPT && GPT < end)
1619 move_gap (start); 1617 move_gap (start);
@@ -2432,12 +2430,7 @@ DEFUN ("current-message", Fcurrent_message, Scurrent_message, 0, 0, 0,
2432 "Return the string currently displayed in the echo area, or nil if none.") 2430 "Return the string currently displayed in the echo area, or nil if none.")
2433 () 2431 ()
2434{ 2432{
2435 if (STRINGP (echo_area_message)) 2433 return current_message ();
2436 return make_string (XSTRING (echo_area_message)->data,
2437 echo_area_glyphs_length);
2438 return (echo_area_glyphs
2439 ? make_string (echo_area_glyphs, echo_area_glyphs_length)
2440 : Qnil);
2441} 2434}
2442 2435
2443/* Number of bytes that STRING will occupy when put into the result. 2436/* Number of bytes that STRING will occupy when put into the result.