aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2019-03-20 13:47:07 -0700
committerGlenn Morris2019-03-20 13:47:07 -0700
commit1fc6afbdf1ce0f8b23780bd4d2630ed49f365013 (patch)
tree515068805cee7b3c5c7fff7e924c2594b2572764 /src
parent99b3d64e54bb896e7b35567ac7022f9d3fb16bbb (diff)
parent24b6e6edcfe034f76de475657cb3997821cfd1f0 (diff)
downloademacs-1fc6afbdf1ce0f8b23780bd4d2630ed49f365013.tar.gz
emacs-1fc6afbdf1ce0f8b23780bd4d2630ed49f365013.zip
Merge from origin/emacs-26
24b6e6e (origin/emacs-26) * etc/AUTHORS: Update. 2f22a17 * ; ChangeLog.3 update 0f523de Improve indexing of the user manual bd5795e Fix url-copy-file arglist eaa188a ; * admin/notes/bugtracker: Minor additions and updates. 5ed05fb Fix downloading updates for packages with non-ASCII descriptions e9f2d1f * etc/NEWS: Remove temporary markers. 24fc133 * doc/misc/cc-mode.texi (Config Basics): in @itemize, @asis -... 0f325d1 Don't clobber 'comint-input-autoexpand' in 'read-shell-command' bc75589 Document restrictions when setting window margins, fringes or... cc4cebf More improvements for 'read-buffer's doc string d026d9a * lisp/progmodes/cc-defs.el: Update c-version to 5.33.2 for E... 5dbf08b * src/minibuf.c (Fread_buffer): Minor doc fixes. (Bug#34749) # Conflicts: # etc/NEWS # lisp/url/url-handlers.el
Diffstat (limited to 'src')
-rw-r--r--src/minibuf.c19
-rw-r--r--src/window.c11
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
1054DEFUN ("read-buffer", Fread_buffer, Sread_buffer, 1, 4, 0, 1054DEFUN ("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.
1056Prompt with PROMPT. 1056Prompt with PROMPT, which should be a string ending with a colon and a space.
1057Optional second arg DEF is value to return if user enters an empty line. 1057Provides completion on buffer names the user types.
1058Optional 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.
1059Optional third arg REQUIRE-MATCH determines whether non-existing 1061Optional 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'.
1062The argument PROMPT should be a string ending with a colon and a space. 1063Optional arg PREDICATE, if non-nil, is a function limiting the buffers that
1064can be considered. It will be called with each potential candidate, and
1065should return non-nil to accept the candidate for completion, nil otherwise.
1063If `read-buffer-completion-ignore-case' is non-nil, completion ignores 1066If `read-buffer-completion-ignore-case' is non-nil, completion ignores
1064case while reading the buffer name. 1067case while reading the buffer name.
1065If `read-buffer-function' is non-nil, this works by calling it as a 1068If `read-buffer-function' is non-nil, this works by calling it as a
1066function, instead of the usual behavior. 1069function, instead of the usual behavior. */)
1067Optional arg PREDICATE if non-nil is a function limiting the buffers that can
1068be 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
7481does the same for the right marginal area. A nil width parameter 7481does the same for the right marginal area. A nil width parameter
7482means no margin. 7482means no margin.
7483 7483
7484Return t if any margin was actually changed and nil otherwise. */) 7484Leave margins unchanged if WINDOW is not large enough to accommodate
7485margins of the desired width. Return t if any margin was actually
7486changed 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
7563fringe width. If a fringe width arg is nil, that means to use the 7565fringe width. If a fringe width arg is nil, that means to use the
7564frame's default fringe width. Default fringe widths can be set with 7566frame's default fringe width. Default fringe widths can be set with
7565the command `set-fringe-style'. 7567the command `set-fringe-style'.
7568
7566If optional fourth arg OUTSIDE-MARGINS is non-nil, draw the fringes 7569If optional fourth arg OUTSIDE-MARGINS is non-nil, draw the fringes
7567outside of the display margins. By default, fringes are drawn between 7570outside of the display margins. By default, fringes are drawn between
7568display marginal areas and the text area. 7571display marginal areas and the text area.
7569 7572
7570Return t if any fringe was actually changed and nil otherwise. */) 7573Leave fringes unchanged if WINDOW is not large enough to accommodate
7574fringes of the desired width. Return t if any fringe was actually
7575changed 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
7692a horizontal scroll bar on WINDOW and t means to use WINDOW frame's 7697a horizontal scroll bar on WINDOW and t means to use WINDOW frame's
7693horizontal scroll bar type. 7698horizontal scroll bar type.
7694 7699
7700If WINDOW is not large enough to accommodate a scroll bar of the
7701desired dimension, leave the corresponding scroll bar unchanged.
7695Return t if scroll bars were actually changed and nil otherwise. */) 7702Return 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)