aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/edebug.texi10
-rw-r--r--doc/lispref/files.texi26
-rw-r--r--doc/lispref/internals.texi6
-rw-r--r--doc/lispref/lists.texi33
-rw-r--r--doc/lispref/processes.texi8
-rw-r--r--doc/lispref/windows.texi15
6 files changed, 81 insertions, 17 deletions
diff --git a/doc/lispref/edebug.texi b/doc/lispref/edebug.texi
index f6f73ea8947..da72c9b700c 100644
--- a/doc/lispref/edebug.texi
+++ b/doc/lispref/edebug.texi
@@ -979,9 +979,13 @@ program.
979 979
980@itemize @bullet 980@itemize @bullet
981@item 981@item
982@code{max-lisp-eval-depth} and @code{max-specpdl-size} are both 982@vindex edebug-max-depth
983increased to reduce Edebug's impact on the stack. You could, however, 983@code{max-lisp-eval-depth} (@pxref{Eval}) and @code{max-specpdl-size}
984still run out of stack space when using Edebug. 984(@pxref{Local Variables}) are both increased to reduce Edebug's impact
985on the stack. You could, however, still run out of stack space when
986using Edebug. You can also enlarge the value of
987@code{edebug-max-depth} if Edebug reaches the limit of recursion depth
988instrumenting code that contains very large quoted lists.
985 989
986@item 990@item
987The state of keyboard macro execution is saved and restored. While 991The state of keyboard macro execution is saved and restored. While
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi
index 853e84477e2..ef373211415 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -368,17 +368,21 @@ asks the user about each buffer. But if @var{save-silently-p} is
368non-@code{nil}, it saves all the file-visiting buffers without querying 368non-@code{nil}, it saves all the file-visiting buffers without querying
369the user. 369the user.
370 370
371The optional @var{pred} argument controls which buffers to ask about 371@vindex save-some-buffers-default-predicate
372(or to save silently if @var{save-silently-p} is non-@code{nil}). 372The optional @var{pred} argument provides a predicate that controls
373If it is @code{nil}, that means to ask only about file-visiting buffers. 373which buffers to ask about (or to save silently if
374If it is @code{t}, that means also offer to save certain other non-file 374@var{save-silently-p} is non-@code{nil}). If @var{pred} is
375buffers---those that have a non-@code{nil} buffer-local value of 375@code{nil}, that means to use the value of
376@code{buffer-offer-save} (@pxref{Killing Buffers}). A user who says 376@code{save-some-buffers-default-predicate} instead of @var{pred}. If
377@samp{yes} to saving a non-file buffer is asked to specify the file 377the result is @code{nil}, it means ask only about file-visiting
378name to use. The @code{save-buffers-kill-emacs} function passes the 378buffers. If it is @code{t}, that means also offer to save certain
379value @code{t} for @var{pred}. 379other non-file buffers---those that have a non-@code{nil} buffer-local
380 380value of @code{buffer-offer-save} (@pxref{Killing Buffers}). A user
381If @var{pred} is neither @code{t} nor @code{nil}, then it should be 381who says @samp{yes} to saving a non-file buffer is asked to specify
382the file name to use. The @code{save-buffers-kill-emacs} function
383passes the value @code{t} for @var{pred}.
384
385If the predicate is neither @code{t} nor @code{nil}, then it should be
382a function of no arguments. It will be called in each buffer to decide 386a function of no arguments. It will be called in each buffer to decide
383whether to offer to save that buffer. If it returns a non-@code{nil} 387whether to offer to save that buffer. If it returns a non-@code{nil}
384value in a certain buffer, that means do offer to save that buffer. 388value in a certain buffer, that means do offer to save that buffer.
diff --git a/doc/lispref/internals.texi b/doc/lispref/internals.texi
index 69d21bedaa4..663d0fd92b9 100644
--- a/doc/lispref/internals.texi
+++ b/doc/lispref/internals.texi
@@ -672,7 +672,7 @@ usage: (or CONDITIONS...) */)
672 if (!NILP (val)) 672 if (!NILP (val))
673 break; 673 break;
674 args = XCDR (args); 674 args = XCDR (args);
675 QUIT; 675 maybe_quit ();
676 @} 676 @}
677@end group 677@end group
678 678
@@ -792,8 +792,8 @@ their addresses after performing Lisp evaluation. Lisp evaluation can
792occur via calls to @code{eval_sub} or @code{Feval}, either directly or 792occur via calls to @code{eval_sub} or @code{Feval}, either directly or
793indirectly. 793indirectly.
794 794
795@cindex @code{QUIT}, use in Lisp primitives 795@cindex @code{maybe_quit}, use in Lisp primitives
796 Note the call to the @code{QUIT} macro inside the loop: this macro 796 Note the call to @code{maybe_quit} inside the loop: this function
797checks whether the user pressed @kbd{C-g}, and if so, aborts the 797checks whether the user pressed @kbd{C-g}, and if so, aborts the
798processing. You should do that in any loop that can potentially 798processing. You should do that in any loop that can potentially
799require a large number of iterations; in this case, the list of 799require a large number of iterations; in this case, the list of
diff --git a/doc/lispref/lists.texi b/doc/lispref/lists.texi
index bd7d85aa189..8eab2818f97 100644
--- a/doc/lispref/lists.texi
+++ b/doc/lispref/lists.texi
@@ -362,6 +362,39 @@ This is the same as @code{(cdr (cdr @var{cons-cell}))}
362or @code{(nthcdr 2 @var{cons-cell})}. 362or @code{(nthcdr 2 @var{cons-cell})}.
363@end defun 363@end defun
364 364
365@findex caaar
366@findex caadr
367@findex cadar
368@findex caddr
369@findex cdaar
370@findex cdadr
371@findex cddar
372@findex cdddr
373@findex caaaar
374@findex caaadr
375@findex caadar
376@findex caaddr
377@findex cadaar
378@findex cadadr
379@findex caddar
380@findex cadddr
381@findex cdaaar
382@findex cdaadr
383@findex cdadar
384@findex cdaddr
385@findex cddaar
386@findex cddadr
387@findex cdddar
388@findex cddddr
389In addition to the above, 24 additional compositions of @code{car} and
390@code{cdr} are defined as @code{c@var{xxx}r} and @code{c@var{xxxx}r},
391where each @code{@var{x}} is either @code{a} or @code{d}. @code{cadr},
392@code{caddr}, and @code{cadddr} pick out the second, third or fourth
393elements of a list, respectively. @file{cl-lib} provides the same
394under the names @code{cl-second}, @code{cl-third}, and
395@code{cl-fourth}. @xref{List Functions,,, cl, Common Lisp
396Extensions}.
397
365@defun butlast x &optional n 398@defun butlast x &optional n
366This function returns the list @var{x} with the last element, 399This function returns the list @var{x} with the last element,
367or the last @var{n} elements, removed. If @var{n} is greater 400or the last @var{n} elements, removed. If @var{n} is greater
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi
index 014a0aed913..58e04a311a1 100644
--- a/doc/lispref/processes.texi
+++ b/doc/lispref/processes.texi
@@ -2414,6 +2414,14 @@ If non-@code{nil}, the host's capability string.
2414The connection type: @samp{plain} or @samp{tls}. 2414The connection type: @samp{plain} or @samp{tls}.
2415@end table 2415@end table
2416 2416
2417@item :shell-command @var{string-or-nil}
2418If the connection @code{type} is @code{shell}, this parameter will be
2419interpreted as a format-spec string that will be executed to make the
2420connection. The specs available are @samp{%s} for the host name and
2421@samp{%p} for the port number. For instance, if you want to first ssh
2422to @samp{gateway} before making a plain connection, then this
2423parameter could be something like @samp{ssh gateway nc %s %p}.
2424
2417@end table 2425@end table
2418 2426
2419@end defun 2427@end defun
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index 6f3de0c8a0e..affa28c9202 100644
--- a/doc/lispref/windows.texi
+++ b/doc/lispref/windows.texi
@@ -3924,6 +3924,21 @@ redisplay scrolls the text automatically (if possible) to move point
3924out of the margin, closer to the center of the window. 3924out of the margin, closer to the center of the window.
3925@end defopt 3925@end defopt
3926 3926
3927@defopt maximum-scroll-margin
3928This variable limits the effective value of @code{scroll-margin} to a
3929fraction of the current window line height. For example, if the
3930current window has 20 lines and @code{maximum-scroll-margin} is 0.1,
3931then the scroll margins will never be larger than 2 lines, no matter
3932how big @code{scroll-margin} is.
3933
3934@code{maximum-scroll-margin} itself has a maximum value of 0.5, which
3935allows setting margins large to keep the cursor at the middle line of
3936the window (or two middle lines if the window has an even number of
3937lines). If it's set to a larger value (or any value other than a
3938float between 0.0 and 0.5) then the default value of 0.25 will be used
3939instead.
3940@end defopt
3941
3927@defopt scroll-conservatively 3942@defopt scroll-conservatively
3928This variable controls how scrolling is done automatically when point 3943This variable controls how scrolling is done automatically when point
3929moves off the screen (or into the scroll margin). If the value is a 3944moves off the screen (or into the scroll margin). If the value is a