diff 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
line wrap: on
line diff
--- a/src/minibuf.c	Wed Apr 06 05:04:40 1994 +0000
+++ b/src/minibuf.c	Wed Apr 06 05:59:21 1994 +0000
@@ -1541,11 +1541,13 @@
 
 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;
 }