aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1994-04-06 05:59:21 +0000
committerKarl Heuer1994-04-06 05:59:21 +0000
commitc7eddf3c356675a39ca24a2b4dbc752c42c693ab (patch)
tree357891ee15fdcac34ae91b71fa504efbec4f046a
parentb6ace927573c754adab0f2a90f3bfb7e5575a6fe (diff)
downloademacs-c7eddf3c356675a39ca24a2b4dbc752c42c693ab.tar.gz
emacs-c7eddf3c356675a39ca24a2b4dbc752c42c693ab.zip
(Fminibuffer_prompt_width): Allow for negative value.
-rw-r--r--src/minibuf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/minibuf.c b/src/minibuf.c
index fc53c3922d5..89d5ddb0235 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -1541,11 +1541,13 @@ If no minibuffer is active, return nil.")
1541 1541
1542DEFUN ("minibuffer-prompt-width", Fminibuffer_prompt_width, 1542DEFUN ("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\
1545This may be less than the actual display width of the minibuffer prompt,\n\
1546or 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