Mercurial > emacs
comparison src/minibuf.c @ 6701:4fe5b1447c3f
(Fminibuffer_prompt_width): Allow for negative value.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Wed, 06 Apr 1994 05:59:21 +0000 |
parents | 2efd8c4eb9be |
children | 336ac455547c |
comparison
equal
deleted
inserted
replaced
6700:db2292ce4894 | 6701:4fe5b1447c3f |
---|---|
1539 return build_string (minibuf_prompt); | 1539 return build_string (minibuf_prompt); |
1540 } | 1540 } |
1541 | 1541 |
1542 DEFUN ("minibuffer-prompt-width", Fminibuffer_prompt_width, | 1542 DEFUN ("minibuffer-prompt-width", Fminibuffer_prompt_width, |
1543 Sminibuffer_prompt_width, 0, 0, 0, | 1543 Sminibuffer_prompt_width, 0, 0, 0, |
1544 "Return the display width of the minibuffer prompt.") | 1544 "Return the horizontal position after the minibuffer prompt.\n\ |
1545 This may be less than the actual display width of the minibuffer prompt,\n\ | |
1546 or even negative, if horizontal scrolling is in effect in the minibuffer.") | |
1545 () | 1547 () |
1546 { | 1548 { |
1547 Lisp_Object width; | 1549 Lisp_Object width; |
1548 XFASTINT (width) = minibuf_prompt_width; | 1550 XSET (width, Lisp_Int, minibuf_prompt_width); |
1549 return width; | 1551 return width; |
1550 } | 1552 } |
1551 | 1553 |
1552 init_minibuf_once () | 1554 init_minibuf_once () |
1553 { | 1555 { |