diff options
| author | Alan Mackenzie | 2017-02-12 10:59:03 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2017-02-12 10:59:03 +0000 |
| commit | f4d5b687150810129b7a1d5b006e31ccf82b691b (patch) | |
| tree | 4229b13800349032697daae3904dc3773e6b7a80 /doc/lispref | |
| parent | d5514332d4a6092673ce1f78fadcae0c57f7be64 (diff) | |
| parent | 148100d98319499f0ac6f57b8be08cbd14884a5c (diff) | |
| download | emacs-comment-cache.tar.gz emacs-comment-cache.zip | |
Merge branch 'master' into comment-cachecomment-cache
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/edebug.texi | 10 | ||||
| -rw-r--r-- | doc/lispref/files.texi | 26 | ||||
| -rw-r--r-- | doc/lispref/internals.texi | 6 | ||||
| -rw-r--r-- | doc/lispref/lists.texi | 33 | ||||
| -rw-r--r-- | doc/lispref/processes.texi | 8 | ||||
| -rw-r--r-- | doc/lispref/windows.texi | 15 |
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 |
| 983 | increased to reduce Edebug's impact on the stack. You could, however, | 983 | @code{max-lisp-eval-depth} (@pxref{Eval}) and @code{max-specpdl-size} |
| 984 | still run out of stack space when using Edebug. | 984 | (@pxref{Local Variables}) are both increased to reduce Edebug's impact |
| 985 | on the stack. You could, however, still run out of stack space when | ||
| 986 | using Edebug. You can also enlarge the value of | ||
| 987 | @code{edebug-max-depth} if Edebug reaches the limit of recursion depth | ||
| 988 | instrumenting code that contains very large quoted lists. | ||
| 985 | 989 | ||
| 986 | @item | 990 | @item |
| 987 | The state of keyboard macro execution is saved and restored. While | 991 | The 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 | |||
| 368 | non-@code{nil}, it saves all the file-visiting buffers without querying | 368 | non-@code{nil}, it saves all the file-visiting buffers without querying |
| 369 | the user. | 369 | the user. |
| 370 | 370 | ||
| 371 | The 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}). | 372 | The optional @var{pred} argument provides a predicate that controls |
| 373 | If it is @code{nil}, that means to ask only about file-visiting buffers. | 373 | which buffers to ask about (or to save silently if |
| 374 | If 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 |
| 375 | buffers---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 | 377 | the result is @code{nil}, it means ask only about file-visiting |
| 378 | name to use. The @code{save-buffers-kill-emacs} function passes the | 378 | buffers. If it is @code{t}, that means also offer to save certain |
| 379 | value @code{t} for @var{pred}. | 379 | other non-file buffers---those that have a non-@code{nil} buffer-local |
| 380 | 380 | value of @code{buffer-offer-save} (@pxref{Killing Buffers}). A user | |
| 381 | If @var{pred} is neither @code{t} nor @code{nil}, then it should be | 381 | who says @samp{yes} to saving a non-file buffer is asked to specify |
| 382 | the file name to use. The @code{save-buffers-kill-emacs} function | ||
| 383 | passes the value @code{t} for @var{pred}. | ||
| 384 | |||
| 385 | If the predicate is neither @code{t} nor @code{nil}, then it should be | ||
| 382 | a function of no arguments. It will be called in each buffer to decide | 386 | a function of no arguments. It will be called in each buffer to decide |
| 383 | whether to offer to save that buffer. If it returns a non-@code{nil} | 387 | whether to offer to save that buffer. If it returns a non-@code{nil} |
| 384 | value in a certain buffer, that means do offer to save that buffer. | 388 | value 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 | |||
| 792 | occur via calls to @code{eval_sub} or @code{Feval}, either directly or | 792 | occur via calls to @code{eval_sub} or @code{Feval}, either directly or |
| 793 | indirectly. | 793 | indirectly. |
| 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 |
| 797 | checks whether the user pressed @kbd{C-g}, and if so, aborts the | 797 | checks whether the user pressed @kbd{C-g}, and if so, aborts the |
| 798 | processing. You should do that in any loop that can potentially | 798 | processing. You should do that in any loop that can potentially |
| 799 | require a large number of iterations; in this case, the list of | 799 | require 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}))} | |||
| 362 | or @code{(nthcdr 2 @var{cons-cell})}. | 362 | or @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 | ||
| 389 | In 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}, | ||
| 391 | where 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 | ||
| 393 | elements of a list, respectively. @file{cl-lib} provides the same | ||
| 394 | under the names @code{cl-second}, @code{cl-third}, and | ||
| 395 | @code{cl-fourth}. @xref{List Functions,,, cl, Common Lisp | ||
| 396 | Extensions}. | ||
| 397 | |||
| 365 | @defun butlast x &optional n | 398 | @defun butlast x &optional n |
| 366 | This function returns the list @var{x} with the last element, | 399 | This function returns the list @var{x} with the last element, |
| 367 | or the last @var{n} elements, removed. If @var{n} is greater | 400 | or 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. | |||
| 2414 | The connection type: @samp{plain} or @samp{tls}. | 2414 | The connection type: @samp{plain} or @samp{tls}. |
| 2415 | @end table | 2415 | @end table |
| 2416 | 2416 | ||
| 2417 | @item :shell-command @var{string-or-nil} | ||
| 2418 | If the connection @code{type} is @code{shell}, this parameter will be | ||
| 2419 | interpreted as a format-spec string that will be executed to make the | ||
| 2420 | connection. 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 | ||
| 2422 | to @samp{gateway} before making a plain connection, then this | ||
| 2423 | parameter 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 | |||
| 3924 | out of the margin, closer to the center of the window. | 3924 | out of the margin, closer to the center of the window. |
| 3925 | @end defopt | 3925 | @end defopt |
| 3926 | 3926 | ||
| 3927 | @defopt maximum-scroll-margin | ||
| 3928 | This variable limits the effective value of @code{scroll-margin} to a | ||
| 3929 | fraction of the current window line height. For example, if the | ||
| 3930 | current window has 20 lines and @code{maximum-scroll-margin} is 0.1, | ||
| 3931 | then the scroll margins will never be larger than 2 lines, no matter | ||
| 3932 | how big @code{scroll-margin} is. | ||
| 3933 | |||
| 3934 | @code{maximum-scroll-margin} itself has a maximum value of 0.5, which | ||
| 3935 | allows setting margins large to keep the cursor at the middle line of | ||
| 3936 | the window (or two middle lines if the window has an even number of | ||
| 3937 | lines). If it's set to a larger value (or any value other than a | ||
| 3938 | float between 0.0 and 0.5) then the default value of 0.25 will be used | ||
| 3939 | instead. | ||
| 3940 | @end defopt | ||
| 3941 | |||
| 3927 | @defopt scroll-conservatively | 3942 | @defopt scroll-conservatively |
| 3928 | This variable controls how scrolling is done automatically when point | 3943 | This variable controls how scrolling is done automatically when point |
| 3929 | moves off the screen (or into the scroll margin). If the value is a | 3944 | moves off the screen (or into the scroll margin). If the value is a |