diff options
| author | Karl Heuer | 1994-04-06 05:59:21 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-04-06 05:59:21 +0000 |
| commit | c7eddf3c356675a39ca24a2b4dbc752c42c693ab (patch) | |
| tree | 357891ee15fdcac34ae91b71fa504efbec4f046a /src | |
| parent | b6ace927573c754adab0f2a90f3bfb7e5575a6fe (diff) | |
| download | emacs-c7eddf3c356675a39ca24a2b4dbc752c42c693ab.tar.gz emacs-c7eddf3c356675a39ca24a2b4dbc752c42c693ab.zip | |
(Fminibuffer_prompt_width): Allow for negative value.
Diffstat (limited to 'src')
| -rw-r--r-- | src/minibuf.c | 6 |
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 | ||
| 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 | ||