Commit c7eddf3c authored by Karl Heuer's avatar Karl Heuer
Browse files

(Fminibuffer_prompt_width): Allow for negative value.

parent b6ace927
......@@ -1541,11 +1541,13 @@ If no minibuffer is active, return nil.")
DEFUN ("minibuffer-prompt-width", Fminibuffer_prompt_width,
Sminibuffer_prompt_width, 0, 0, 0,
"Return the display width of the minibuffer prompt.")
"Return the horizontal position after the minibuffer prompt.\n\
This may be less than the actual display width of the minibuffer prompt,\n\
or even negative, if horizontal scrolling is in effect in the minibuffer.")
Lisp_Object width;
XFASTINT (width) = minibuf_prompt_width;
XSET (width, Lisp_Int, minibuf_prompt_width);
return width;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment