diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/minibuf.c | 19 | ||||
| -rw-r--r-- | src/window.c | 11 |
2 files changed, 19 insertions, 11 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index b23e24c4bd9..a0025e22720 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -1052,20 +1052,21 @@ A user option, or customizable variable, is one for which | |||
| 1052 | } | 1052 | } |
| 1053 | 1053 | ||
| 1054 | DEFUN ("read-buffer", Fread_buffer, Sread_buffer, 1, 4, 0, | 1054 | DEFUN ("read-buffer", Fread_buffer, Sread_buffer, 1, 4, 0, |
| 1055 | doc: /* Read the name of a buffer and return as a string. | 1055 | doc: /* Read the name of a buffer and return it as a string. |
| 1056 | Prompt with PROMPT. | 1056 | Prompt with PROMPT, which should be a string ending with a colon and a space. |
| 1057 | Optional second arg DEF is value to return if user enters an empty line. | 1057 | Provides completion on buffer names the user types. |
| 1058 | Optional second arg DEF is value to return if user enters an empty line, | ||
| 1059 | instead of that empty string. | ||
| 1058 | If DEF is a list of default values, return its first element. | 1060 | If DEF is a list of default values, return its first element. |
| 1059 | Optional third arg REQUIRE-MATCH determines whether non-existing | 1061 | Optional third arg REQUIRE-MATCH has the same meaning as the |
| 1060 | buffer names are allowed. It has the same meaning as the | ||
| 1061 | REQUIRE-MATCH argument of `completing-read'. | 1062 | REQUIRE-MATCH argument of `completing-read'. |
| 1062 | The argument PROMPT should be a string ending with a colon and a space. | 1063 | Optional arg PREDICATE, if non-nil, is a function limiting the buffers that |
| 1064 | can be considered. It will be called with each potential candidate, and | ||
| 1065 | should return non-nil to accept the candidate for completion, nil otherwise. | ||
| 1063 | If `read-buffer-completion-ignore-case' is non-nil, completion ignores | 1066 | If `read-buffer-completion-ignore-case' is non-nil, completion ignores |
| 1064 | case while reading the buffer name. | 1067 | case while reading the buffer name. |
| 1065 | If `read-buffer-function' is non-nil, this works by calling it as a | 1068 | If `read-buffer-function' is non-nil, this works by calling it as a |
| 1066 | function, instead of the usual behavior. | 1069 | function, instead of the usual behavior. */) |
| 1067 | Optional arg PREDICATE if non-nil is a function limiting the buffers that can | ||
| 1068 | be considered. */) | ||
| 1069 | (Lisp_Object prompt, Lisp_Object def, Lisp_Object require_match, | 1070 | (Lisp_Object prompt, Lisp_Object def, Lisp_Object require_match, |
| 1070 | Lisp_Object predicate) | 1071 | Lisp_Object predicate) |
| 1071 | { | 1072 | { |
diff --git a/src/window.c b/src/window.c index 85d7bcade94..be338c2af61 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -7481,7 +7481,9 @@ reserve for the left marginal area. Optional third arg RIGHT-WIDTH | |||
| 7481 | does the same for the right marginal area. A nil width parameter | 7481 | does the same for the right marginal area. A nil width parameter |
| 7482 | means no margin. | 7482 | means no margin. |
| 7483 | 7483 | ||
| 7484 | Return t if any margin was actually changed and nil otherwise. */) | 7484 | Leave margins unchanged if WINDOW is not large enough to accommodate |
| 7485 | margins of the desired width. Return t if any margin was actually | ||
| 7486 | changed and nil otherwise. */) | ||
| 7485 | (Lisp_Object window, Lisp_Object left_width, Lisp_Object right_width) | 7487 | (Lisp_Object window, Lisp_Object left_width, Lisp_Object right_width) |
| 7486 | { | 7488 | { |
| 7487 | struct window *w = set_window_margins (decode_live_window (window), | 7489 | struct window *w = set_window_margins (decode_live_window (window), |
| @@ -7563,11 +7565,14 @@ the left fringe. Optional third arg RIGHT-WIDTH specifies the right | |||
| 7563 | fringe width. If a fringe width arg is nil, that means to use the | 7565 | fringe width. If a fringe width arg is nil, that means to use the |
| 7564 | frame's default fringe width. Default fringe widths can be set with | 7566 | frame's default fringe width. Default fringe widths can be set with |
| 7565 | the command `set-fringe-style'. | 7567 | the command `set-fringe-style'. |
| 7568 | |||
| 7566 | If optional fourth arg OUTSIDE-MARGINS is non-nil, draw the fringes | 7569 | If optional fourth arg OUTSIDE-MARGINS is non-nil, draw the fringes |
| 7567 | outside of the display margins. By default, fringes are drawn between | 7570 | outside of the display margins. By default, fringes are drawn between |
| 7568 | display marginal areas and the text area. | 7571 | display marginal areas and the text area. |
| 7569 | 7572 | ||
| 7570 | Return t if any fringe was actually changed and nil otherwise. */) | 7573 | Leave fringes unchanged if WINDOW is not large enough to accommodate |
| 7574 | fringes of the desired width. Return t if any fringe was actually | ||
| 7575 | changed and nil otherwise. */) | ||
| 7571 | (Lisp_Object window, Lisp_Object left_width, | 7576 | (Lisp_Object window, Lisp_Object left_width, |
| 7572 | Lisp_Object right_width, Lisp_Object outside_margins) | 7577 | Lisp_Object right_width, Lisp_Object outside_margins) |
| 7573 | { | 7578 | { |
| @@ -7692,6 +7697,8 @@ horizontal scroll bar: bottom, nil, or t where nil means to not display | |||
| 7692 | a horizontal scroll bar on WINDOW and t means to use WINDOW frame's | 7697 | a horizontal scroll bar on WINDOW and t means to use WINDOW frame's |
| 7693 | horizontal scroll bar type. | 7698 | horizontal scroll bar type. |
| 7694 | 7699 | ||
| 7700 | If WINDOW is not large enough to accommodate a scroll bar of the | ||
| 7701 | desired dimension, leave the corresponding scroll bar unchanged. | ||
| 7695 | Return t if scroll bars were actually changed and nil otherwise. */) | 7702 | Return t if scroll bars were actually changed and nil otherwise. */) |
| 7696 | (Lisp_Object window, Lisp_Object width, Lisp_Object vertical_type, | 7703 | (Lisp_Object window, Lisp_Object width, Lisp_Object vertical_type, |
| 7697 | Lisp_Object height, Lisp_Object horizontal_type) | 7704 | Lisp_Object height, Lisp_Object horizontal_type) |