]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fminibuffer_prompt_width): Allow for negative value.
authorKarl Heuer <kwzh@gnu.org>
Wed, 6 Apr 1994 05:59:21 +0000 (05:59 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 6 Apr 1994 05:59:21 +0000 (05:59 +0000)
src/minibuf.c

index fc53c3922d5fb91a9bdb3dfb9fc6d233a2fd5991..89d5ddb023568e9ac6570bd8f8c6f1d55f0842fb 100644 (file)
@@ -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;
 }
 \f