aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPaul Eggert2017-03-19 12:29:06 -0700
committerPaul Eggert2017-03-19 12:29:06 -0700
commite6fd84d2d5ca256797ff210c915a2fa773d4d742 (patch)
treeba2ba64a65705a3259a0ecb66098f834e741fb4b /doc
parentd86bcedd880b3cb6383641082d406075aa6e70e2 (diff)
parentab0a60a1b334fafc7d805eb44e6069ea314ad486 (diff)
downloademacs-e6fd84d2d5ca256797ff210c915a2fa773d4d742.tar.gz
emacs-e6fd84d2d5ca256797ff210c915a2fa773d4d742.zip
Merge from origin/emacs-25
ab0a60a ; * CONTRIBUTE (Generating ChangeLog entries): Drop duplicate... 7e02a47 Index byte-compile-debug 7c1e598 Document `byte-compile-debug' in the ELisp manual 4d81eb4 Document variable `byte-compile-debug' 72ef710 Fix call to debugger on assertion failure ae8264c Call modification hooks in org-src fontify buffers b3139da ; Fix last change in doc/lispref/strings.texi c331f39 Improve documentation of 'format' conversions 9f52f67 Remove stale functions from ert manual c416b14 Fix a typo in Eshell manual 06695a0 ; Fix a typo in ediff-merg.el 954e9e9 Improve documentation of hooks related to saving buffers 9fcab85 Improve documentation of auto-save-visited-file-name 2236c53 fix typo in mailcap-mime-extensions 85a3e4e Fix typos in flymake.el a1ef10e More NEWS checking for admin.el's set-version # Conflicts: # lisp/emacs-lisp/bytecomp.el
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/files.texi6
-rw-r--r--doc/lispref/backups.texi5
-rw-r--r--doc/lispref/compile.texi10
-rw-r--r--doc/lispref/files.texi6
-rw-r--r--doc/lispref/strings.texi35
-rw-r--r--doc/misc/ert.texi14
-rw-r--r--doc/misc/eshell.texi2
7 files changed, 52 insertions, 26 deletions
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi
index 1a85f96df48..0b730e27d30 100644
--- a/doc/emacs/files.texi
+++ b/doc/emacs/files.texi
@@ -1044,8 +1044,10 @@ auto-save-mode}.
1044 If you want auto-saving to be done in the visited file rather than 1044 If you want auto-saving to be done in the visited file rather than
1045in a separate auto-save file, set the variable 1045in a separate auto-save file, set the variable
1046@code{auto-save-visited-file-name} to a non-@code{nil} value. In this 1046@code{auto-save-visited-file-name} to a non-@code{nil} value. In this
1047mode, there is no real difference between auto-saving and explicit 1047mode, auto-saving is very similar to explicit saving. However,
1048saving. 1048differences still exist, in particular for modes which modify the
1049buffer-saving process in non-trivial ways via various hooks
1050(@pxref{Saving Buffers,,, elisp, The Emacs Lisp Reference Manual}).
1049 1051
1050@vindex delete-auto-save-files 1052@vindex delete-auto-save-files
1051 A buffer's auto-save file is deleted when you save the buffer in its 1053 A buffer's auto-save file is deleted when you save the buffer in its
diff --git a/doc/lispref/backups.texi b/doc/lispref/backups.texi
index 7b6f0845aeb..3e2d1f62483 100644
--- a/doc/lispref/backups.texi
+++ b/doc/lispref/backups.texi
@@ -550,6 +550,11 @@ effect in an existing buffer until the next time auto-save mode is
550reenabled in it. If auto-save mode is already enabled, auto-saves 550reenabled in it. If auto-save mode is already enabled, auto-saves
551continue to go in the same file name until @code{auto-save-mode} is 551continue to go in the same file name until @code{auto-save-mode} is
552called again. 552called again.
553
554Note that setting this variable to a non-@code{nil} value does not
555change the fact that auto-saving is different from saving the buffer;
556e.g., the hooks described in @ref{Saving Buffers} are @emph{not} run
557when a buffer is auto-saved.
553@end defopt 558@end defopt
554 559
555@defun recent-auto-save-p 560@defun recent-auto-save-p
diff --git a/doc/lispref/compile.texi b/doc/lispref/compile.texi
index b1cc04be09d..201d9fc2fa5 100644
--- a/doc/lispref/compile.texi
+++ b/doc/lispref/compile.texi
@@ -88,10 +88,14 @@ the @code{byte-compile} function. You can compile a whole file with
88@code{byte-compile-file}, or several files with 88@code{byte-compile-file}, or several files with
89@code{byte-recompile-directory} or @code{batch-byte-compile}. 89@code{byte-recompile-directory} or @code{batch-byte-compile}.
90 90
91@vindex byte-compile-debug
91 Sometimes, the byte compiler produces warning and/or error messages 92 Sometimes, the byte compiler produces warning and/or error messages
92(@pxref{Compiler Errors}, for details). These messages are recorded 93(@pxref{Compiler Errors}, for details). These messages are normally
93in a buffer called @file{*Compile-Log*}, which uses Compilation mode. 94recorded in a buffer called @file{*Compile-Log*}, which uses
94@xref{Compilation Mode,,,emacs, The GNU Emacs Manual}. 95Compilation mode. @xref{Compilation Mode,,,emacs, The GNU Emacs
96Manual}. However, if the variable @code{byte-compile-debug} is
97non-nil, error message will be signaled as Lisp errors instead
98(@pxref{Errors}).
95 99
96@cindex macro compilation 100@cindex macro compilation
97 Be careful when writing macro calls in files that you intend to 101 Be careful when writing macro calls in files that you intend to
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi
index ef373211415..2b692dbf680 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -408,7 +408,11 @@ buffer name instead.
408@end deffn 408@end deffn
409 409
410 Saving a buffer runs several hooks. It also performs format 410 Saving a buffer runs several hooks. It also performs format
411conversion (@pxref{Format Conversion}). 411conversion (@pxref{Format Conversion}). Note that these hooks,
412described below, are only run by @code{save-buffer}, they are not run
413by other primitives and functions that write buffer text to files, and
414in particular auto-saving (@pxref{Auto-Saving}) doesn't run these
415hooks.
412 416
413@defvar write-file-functions 417@defvar write-file-functions
414The value of this variable is a list of functions to be called before 418The value of this variable is a list of functions to be called before
diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi
index cf47db4a814..ae2b31c5418 100644
--- a/doc/lispref/strings.texi
+++ b/doc/lispref/strings.texi
@@ -901,17 +901,18 @@ Functions}). Thus, strings are enclosed in @samp{"} characters, and
901@item %o 901@item %o
902@cindex integer to octal 902@cindex integer to octal
903Replace the specification with the base-eight representation of an 903Replace the specification with the base-eight representation of an
904integer. 904unsigned integer.
905 905
906@item %d 906@item %d
907Replace the specification with the base-ten representation of an 907Replace the specification with the base-ten representation of a signed
908integer. 908integer.
909 909
910@item %x 910@item %x
911@itemx %X 911@itemx %X
912@cindex integer to hexadecimal 912@cindex integer to hexadecimal
913Replace the specification with the base-sixteen representation of an 913Replace the specification with the base-sixteen representation of an
914integer. @samp{%x} uses lower case and @samp{%X} uses upper case. 914unsigned integer. @samp{%x} uses lower case and @samp{%X} uses upper
915case.
915 916
916@item %c 917@item %c
917Replace the specification with the character which is the value given. 918Replace the specification with the character which is the value given.
@@ -926,8 +927,12 @@ floating-point number.
926 927
927@item %g 928@item %g
928Replace the specification with notation for a floating-point number, 929Replace the specification with notation for a floating-point number,
929using either exponential notation or decimal-point notation, whichever 930using either exponential notation or decimal-point notation. The
930is shorter. 931exponential notation is used if the exponent would be less than -4 or
932greater than or equal to the precision (default: 6). By default,
933trailing zeros are removed from the fractional portion of the result
934and a decimal-point character appears only if it is followed by a
935digit.
931 936
932@item %% 937@item %%
933Replace the specification with a single @samp{%}. This format 938Replace the specification with a single @samp{%}. This format
@@ -1008,9 +1013,11 @@ both flags are used, @samp{+} takes precedence.
1008 The flag @samp{#} specifies an alternate form which depends on 1013 The flag @samp{#} specifies an alternate form which depends on
1009the format in use. For @samp{%o}, it ensures that the result begins 1014the format in use. For @samp{%o}, it ensures that the result begins
1010with a @samp{0}. For @samp{%x} and @samp{%X}, it prefixes the result 1015with a @samp{0}. For @samp{%x} and @samp{%X}, it prefixes the result
1011with @samp{0x} or @samp{0X}. For @samp{%e}, @samp{%f}, and @samp{%g}, 1016with @samp{0x} or @samp{0X}. For @samp{%e} and @samp{%f}, the
1012the @samp{#} flag means include a decimal point even if the precision 1017@samp{#} flag means include a decimal point even if the precision is
1013is zero. 1018zero. For @samp{%g}, it always includes a decimal point, and also
1019forces any trailing zeros after the decimal point to be left in place
1020where they would otherwise be removed.
1014 1021
1015 The flag @samp{0} ensures that the padding consists of @samp{0} 1022 The flag @samp{0} ensures that the padding consists of @samp{0}
1016characters instead of spaces. This flag is ignored for non-numerical 1023characters instead of spaces. This flag is ignored for non-numerical
@@ -1041,10 +1048,14 @@ ignored.
1041 All the specification characters allow an optional @dfn{precision} 1048 All the specification characters allow an optional @dfn{precision}
1042before the character (after the width, if present). The precision is 1049before the character (after the width, if present). The precision is
1043a decimal-point @samp{.} followed by a digit-string. For the 1050a decimal-point @samp{.} followed by a digit-string. For the
1044floating-point specifications (@samp{%e}, @samp{%f}, @samp{%g}), the 1051floating-point specifications (@samp{%e} and @samp{%f}), the
1045precision specifies how many decimal places to show; if zero, the 1052precision specifies how many digits following the decimal point to
1046decimal-point itself is also omitted. For @samp{%s} and @samp{%S}, 1053show; if zero, the decimal-point itself is also omitted. For
1047the precision truncates the string to the given width, so @samp{%.3s} 1054@samp{%g}, the precision specifies how many significant digits to show
1055(significant digits are the first digit before the decimal point and
1056all the digits after it). If the precision of %g is zero or
1057unspecified, it is treated as 1. For @samp{%s} and @samp{%S}, the
1058precision truncates the string to the given width, so @samp{%.3s}
1048shows only the first three characters of the representation for 1059shows only the first three characters of the representation for
1049@var{object}. For other specification characters, the effect of 1060@var{object}. For other specification characters, the effect of
1050precision is what the local library functions of the @code{printf} 1061precision is what the local library functions of the @code{printf}
diff --git a/doc/misc/ert.texi b/doc/misc/ert.texi
index b07cb0be490..4a2c29dcb9f 100644
--- a/doc/misc/ert.texi
+++ b/doc/misc/ert.texi
@@ -551,15 +551,15 @@ on their environment is easy. Such tests often look like this:
551 551
552@lisp 552@lisp
553(ert-deftest ert-test-mismatch () 553(ert-deftest ert-test-mismatch ()
554 (should (eql (ert--mismatch "" "") nil)) 554 (should (eql (cl-mismatch "" "") nil))
555 (should (eql (ert--mismatch "" "a") 0)) 555 (should (eql (cl-mismatch "" "a") 0))
556 (should (eql (ert--mismatch "a" "a") nil)) 556 (should (eql (cl-mismatch "a" "a") nil))
557 (should (eql (ert--mismatch "ab" "a") 1)) 557 (should (eql (cl-mismatch "ab" "a") 1))
558 (should (eql (ert--mismatch "Aa" "aA") 0)) 558 (should (eql (cl-mismatch "Aa" "aA") 0))
559 (should (eql (ert--mismatch '(a b c) '(a b d)) 2))) 559 (should (eql (cl-mismatch '(a b c) '(a b d)) 2)))
560@end lisp 560@end lisp
561 561
562This test calls the function @code{ert--mismatch} several times with 562This test calls the function @code{cl-mismatch} several times with
563various combinations of arguments and compares the return value to the 563various combinations of arguments and compares the return value to the
564expected return value. (Some programmers prefer @code{(should (eql 564expected return value. (Some programmers prefer @code{(should (eql
565EXPECTED ACTUAL))} over the @code{(should (eql ACTUAL EXPECTED))} 565EXPECTED ACTUAL))} over the @code{(should (eql ACTUAL EXPECTED))}
diff --git a/doc/misc/eshell.texi b/doc/misc/eshell.texi
index bd89b9c5bf2..a7651b21d61 100644
--- a/doc/misc/eshell.texi
+++ b/doc/misc/eshell.texi
@@ -493,7 +493,7 @@ History I-search.
493@itemx M-n 493@itemx M-n
494Previous and next history line. If there is anything on the input 494Previous and next history line. If there is anything on the input
495line when you run these commands, they will instead jump to the 495line when you run these commands, they will instead jump to the
496precious or next line that begins with that string. 496previous or next line that begins with that string.
497@end table 497@end table
498 498
499@node Completion 499@node Completion