diff options
| author | Paul Eggert | 2017-03-19 12:29:06 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-03-19 12:29:06 -0700 |
| commit | e6fd84d2d5ca256797ff210c915a2fa773d4d742 (patch) | |
| tree | ba2ba64a65705a3259a0ecb66098f834e741fb4b | |
| parent | d86bcedd880b3cb6383641082d406075aa6e70e2 (diff) | |
| parent | ab0a60a1b334fafc7d805eb44e6069ea314ad486 (diff) | |
| download | emacs-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
| -rw-r--r-- | CONTRIBUTE | 2 | ||||
| -rw-r--r-- | admin/admin.el | 7 | ||||
| -rw-r--r-- | doc/emacs/files.texi | 6 | ||||
| -rw-r--r-- | doc/lispref/backups.texi | 5 | ||||
| -rw-r--r-- | doc/lispref/compile.texi | 10 | ||||
| -rw-r--r-- | doc/lispref/files.texi | 6 | ||||
| -rw-r--r-- | doc/lispref/strings.texi | 35 | ||||
| -rw-r--r-- | doc/misc/ert.texi | 14 | ||||
| -rw-r--r-- | doc/misc/eshell.texi | 2 | ||||
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 3 | ||||
| -rw-r--r-- | lisp/emacs-lisp/cl-preloaded.el | 2 | ||||
| -rw-r--r-- | lisp/files.el | 10 | ||||
| -rw-r--r-- | lisp/net/mailcap.el | 2 | ||||
| -rw-r--r-- | lisp/org/org-src.el | 24 | ||||
| -rw-r--r-- | lisp/progmodes/flymake.el | 2 | ||||
| -rw-r--r-- | lisp/vc/ediff-merg.el | 2 | ||||
| -rw-r--r-- | src/editfns.c | 24 |
17 files changed, 102 insertions, 54 deletions
diff --git a/CONTRIBUTE b/CONTRIBUTE index 8aba424b744..8e45b6780e7 100644 --- a/CONTRIBUTE +++ b/CONTRIBUTE | |||
| @@ -162,7 +162,7 @@ them right the first time, so here are guidelines for formatting them: | |||
| 162 | - If you use Emacs VC, one way to format ChangeLog entries is to create | 162 | - If you use Emacs VC, one way to format ChangeLog entries is to create |
| 163 | a top-level ChangeLog file manually, and update it with 'C-x 4 a' as | 163 | a top-level ChangeLog file manually, and update it with 'C-x 4 a' as |
| 164 | usual. Do not register the ChangeLog file under git; instead, use | 164 | usual. Do not register the ChangeLog file under git; instead, use |
| 165 | 'C-c C-a' to insert its contents into into your *vc-log* buffer. | 165 | 'C-c C-a' to insert its contents into your *vc-log* buffer. |
| 166 | Or if 'log-edit-hook' includes 'log-edit-insert-changelog' (which it | 166 | Or if 'log-edit-hook' includes 'log-edit-insert-changelog' (which it |
| 167 | does by default), they will be filled in for you automatically. | 167 | does by default), they will be filled in for you automatically. |
| 168 | 168 | ||
diff --git a/admin/admin.el b/admin/admin.el index a6ef19c9aba..5428e3a10bc 100644 --- a/admin/admin.el +++ b/admin/admin.el | |||
| @@ -141,6 +141,13 @@ Root must be the root of an Emacs source tree." | |||
| 141 | (not (equal (cadr oldversion) (cadr newversion))))) | 141 | (not (equal (cadr oldversion) (cadr newversion))))) |
| 142 | (newsfile (expand-file-name "etc/NEWS" root)) | 142 | (newsfile (expand-file-name "etc/NEWS" root)) |
| 143 | (oldnewsfile (expand-file-name (format "etc/NEWS.%s" oldmajor) root))) | 143 | (oldnewsfile (expand-file-name (format "etc/NEWS.%s" oldmajor) root))) |
| 144 | (unless (> (length newversion) 2) ; pretest or release candidate? | ||
| 145 | (with-temp-buffer | ||
| 146 | (insert-file-contents newsfile) | ||
| 147 | (if (re-search-forward "^\\(+++ *\\|--- *\\)$" nil t) | ||
| 148 | (display-warning 'admin | ||
| 149 | "NEWS file still contains temporary markup. | ||
| 150 | Documentation changes might not have been completed!")))) | ||
| 144 | (when (and majorbump | 151 | (when (and majorbump |
| 145 | (not (file-exists-p oldnewsfile))) | 152 | (not (file-exists-p oldnewsfile))) |
| 146 | (rename-file newsfile oldnewsfile) | 153 | (rename-file newsfile oldnewsfile) |
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 |
| 1045 | in a separate auto-save file, set the variable | 1045 | in 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 |
| 1047 | mode, there is no real difference between auto-saving and explicit | 1047 | mode, auto-saving is very similar to explicit saving. However, |
| 1048 | saving. | 1048 | differences still exist, in particular for modes which modify the |
| 1049 | buffer-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 | |||
| 550 | reenabled in it. If auto-save mode is already enabled, auto-saves | 550 | reenabled in it. If auto-save mode is already enabled, auto-saves |
| 551 | continue to go in the same file name until @code{auto-save-mode} is | 551 | continue to go in the same file name until @code{auto-save-mode} is |
| 552 | called again. | 552 | called again. |
| 553 | |||
| 554 | Note that setting this variable to a non-@code{nil} value does not | ||
| 555 | change the fact that auto-saving is different from saving the buffer; | ||
| 556 | e.g., the hooks described in @ref{Saving Buffers} are @emph{not} run | ||
| 557 | when 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 |
| 93 | in a buffer called @file{*Compile-Log*}, which uses Compilation mode. | 94 | recorded in a buffer called @file{*Compile-Log*}, which uses |
| 94 | @xref{Compilation Mode,,,emacs, The GNU Emacs Manual}. | 95 | Compilation mode. @xref{Compilation Mode,,,emacs, The GNU Emacs |
| 96 | Manual}. However, if the variable @code{byte-compile-debug} is | ||
| 97 | non-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 |
| 411 | conversion (@pxref{Format Conversion}). | 411 | conversion (@pxref{Format Conversion}). Note that these hooks, |
| 412 | described below, are only run by @code{save-buffer}, they are not run | ||
| 413 | by other primitives and functions that write buffer text to files, and | ||
| 414 | in particular auto-saving (@pxref{Auto-Saving}) doesn't run these | ||
| 415 | hooks. | ||
| 412 | 416 | ||
| 413 | @defvar write-file-functions | 417 | @defvar write-file-functions |
| 414 | The value of this variable is a list of functions to be called before | 418 | The 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 |
| 903 | Replace the specification with the base-eight representation of an | 903 | Replace the specification with the base-eight representation of an |
| 904 | integer. | 904 | unsigned integer. |
| 905 | 905 | ||
| 906 | @item %d | 906 | @item %d |
| 907 | Replace the specification with the base-ten representation of an | 907 | Replace the specification with the base-ten representation of a signed |
| 908 | integer. | 908 | integer. |
| 909 | 909 | ||
| 910 | @item %x | 910 | @item %x |
| 911 | @itemx %X | 911 | @itemx %X |
| 912 | @cindex integer to hexadecimal | 912 | @cindex integer to hexadecimal |
| 913 | Replace the specification with the base-sixteen representation of an | 913 | Replace the specification with the base-sixteen representation of an |
| 914 | integer. @samp{%x} uses lower case and @samp{%X} uses upper case. | 914 | unsigned integer. @samp{%x} uses lower case and @samp{%X} uses upper |
| 915 | case. | ||
| 915 | 916 | ||
| 916 | @item %c | 917 | @item %c |
| 917 | Replace the specification with the character which is the value given. | 918 | Replace 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 |
| 928 | Replace the specification with notation for a floating-point number, | 929 | Replace the specification with notation for a floating-point number, |
| 929 | using either exponential notation or decimal-point notation, whichever | 930 | using either exponential notation or decimal-point notation. The |
| 930 | is shorter. | 931 | exponential notation is used if the exponent would be less than -4 or |
| 932 | greater than or equal to the precision (default: 6). By default, | ||
| 933 | trailing zeros are removed from the fractional portion of the result | ||
| 934 | and a decimal-point character appears only if it is followed by a | ||
| 935 | digit. | ||
| 931 | 936 | ||
| 932 | @item %% | 937 | @item %% |
| 933 | Replace the specification with a single @samp{%}. This format | 938 | Replace 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 |
| 1009 | the format in use. For @samp{%o}, it ensures that the result begins | 1014 | the format in use. For @samp{%o}, it ensures that the result begins |
| 1010 | with a @samp{0}. For @samp{%x} and @samp{%X}, it prefixes the result | 1015 | with a @samp{0}. For @samp{%x} and @samp{%X}, it prefixes the result |
| 1011 | with @samp{0x} or @samp{0X}. For @samp{%e}, @samp{%f}, and @samp{%g}, | 1016 | with @samp{0x} or @samp{0X}. For @samp{%e} and @samp{%f}, the |
| 1012 | the @samp{#} flag means include a decimal point even if the precision | 1017 | @samp{#} flag means include a decimal point even if the precision is |
| 1013 | is zero. | 1018 | zero. For @samp{%g}, it always includes a decimal point, and also |
| 1019 | forces any trailing zeros after the decimal point to be left in place | ||
| 1020 | where 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} |
| 1016 | characters instead of spaces. This flag is ignored for non-numerical | 1023 | characters 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} |
| 1042 | before the character (after the width, if present). The precision is | 1049 | before the character (after the width, if present). The precision is |
| 1043 | a decimal-point @samp{.} followed by a digit-string. For the | 1050 | a decimal-point @samp{.} followed by a digit-string. For the |
| 1044 | floating-point specifications (@samp{%e}, @samp{%f}, @samp{%g}), the | 1051 | floating-point specifications (@samp{%e} and @samp{%f}), the |
| 1045 | precision specifies how many decimal places to show; if zero, the | 1052 | precision specifies how many digits following the decimal point to |
| 1046 | decimal-point itself is also omitted. For @samp{%s} and @samp{%S}, | 1053 | show; if zero, the decimal-point itself is also omitted. For |
| 1047 | the 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 | ||
| 1056 | all the digits after it). If the precision of %g is zero or | ||
| 1057 | unspecified, it is treated as 1. For @samp{%s} and @samp{%S}, the | ||
| 1058 | precision truncates the string to the given width, so @samp{%.3s} | ||
| 1048 | shows only the first three characters of the representation for | 1059 | shows 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 |
| 1050 | precision is what the local library functions of the @code{printf} | 1061 | precision 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 | ||
| 562 | This test calls the function @code{ert--mismatch} several times with | 562 | This test calls the function @code{cl-mismatch} several times with |
| 563 | various combinations of arguments and compares the return value to the | 563 | various combinations of arguments and compares the return value to the |
| 564 | expected return value. (Some programmers prefer @code{(should (eql | 564 | expected return value. (Some programmers prefer @code{(should (eql |
| 565 | EXPECTED ACTUAL))} over the @code{(should (eql ACTUAL EXPECTED))} | 565 | EXPECTED 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 |
| 494 | Previous and next history line. If there is anything on the input | 494 | Previous and next history line. If there is anything on the input |
| 495 | line when you run these commands, they will instead jump to the | 495 | line when you run these commands, they will instead jump to the |
| 496 | precious or next line that begins with that string. | 496 | previous or next line that begins with that string. |
| 497 | @end table | 497 | @end table |
| 498 | 498 | ||
| 499 | @node Completion | 499 | @node Completion |
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 7cbef8e4340..f45ae359f6c 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -416,7 +416,8 @@ specify different fields to sort on." | |||
| 416 | :type '(choice (const name) (const callers) (const calls) | 416 | :type '(choice (const name) (const callers) (const calls) |
| 417 | (const calls+callers) (const nil))) | 417 | (const calls+callers) (const nil))) |
| 418 | 418 | ||
| 419 | (defvar byte-compile-debug nil) | 419 | (defvar byte-compile-debug nil |
| 420 | "If non-nil, byte compile errors will be raised as signals instead of logged.") | ||
| 420 | (defvar byte-compile-jump-tables nil | 421 | (defvar byte-compile-jump-tables nil |
| 421 | "List of all jump tables used during compilation of this form.") | 422 | "List of all jump tables used during compilation of this form.") |
| 422 | (defvar byte-compile-constants nil | 423 | (defvar byte-compile-constants nil |
diff --git a/lisp/emacs-lisp/cl-preloaded.el b/lisp/emacs-lisp/cl-preloaded.el index bba7b83a792..482b579f11a 100644 --- a/lisp/emacs-lisp/cl-preloaded.el +++ b/lisp/emacs-lisp/cl-preloaded.el | |||
| @@ -45,7 +45,7 @@ | |||
| 45 | 45 | ||
| 46 | (defun cl--assertion-failed (form &optional string sargs args) | 46 | (defun cl--assertion-failed (form &optional string sargs args) |
| 47 | (if debug-on-error | 47 | (if debug-on-error |
| 48 | (funcall debugger `(cl-assertion-failed ,form ,string ,@sargs)) | 48 | (funcall debugger 'error `(cl-assertion-failed (,form ,string ,@sargs))) |
| 49 | (if string | 49 | (if string |
| 50 | (apply #'error string (append sargs args)) | 50 | (apply #'error string (append sargs args)) |
| 51 | (signal 'cl-assertion-failed `(,form ,@sargs))))) | 51 | (signal 'cl-assertion-failed `(,form ,@sargs))))) |
diff --git a/lisp/files.el b/lisp/files.el index c7de4453d75..0a023a88b10 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -439,7 +439,8 @@ functions are called." | |||
| 439 | 439 | ||
| 440 | (define-obsolete-variable-alias 'write-file-hooks 'write-file-functions "22.1") | 440 | (define-obsolete-variable-alias 'write-file-hooks 'write-file-functions "22.1") |
| 441 | (defvar write-file-functions nil | 441 | (defvar write-file-functions nil |
| 442 | "List of functions to be called before writing out a buffer to a file. | 442 | "List of functions to be called before saving a buffer to a file. |
| 443 | Only used by `save-buffer'. | ||
| 443 | If one of them returns non-nil, the file is considered already written | 444 | If one of them returns non-nil, the file is considered already written |
| 444 | and the rest are not called. | 445 | and the rest are not called. |
| 445 | These hooks are considered to pertain to the visited file. | 446 | These hooks are considered to pertain to the visited file. |
| @@ -464,6 +465,7 @@ updates before the buffer is saved, use `before-save-hook'.") | |||
| 464 | 'write-contents-functions "22.1") | 465 | 'write-contents-functions "22.1") |
| 465 | (defvar write-contents-functions nil | 466 | (defvar write-contents-functions nil |
| 466 | "List of functions to be called before writing out a buffer to a file. | 467 | "List of functions to be called before writing out a buffer to a file. |
| 468 | Only used by `save-buffer'. | ||
| 467 | If one of them returns non-nil, the file is considered already written | 469 | If one of them returns non-nil, the file is considered already written |
| 468 | and the rest are not called and neither are the functions in | 470 | and the rest are not called and neither are the functions in |
| 469 | `write-file-functions'. | 471 | `write-file-functions'. |
| @@ -4855,13 +4857,15 @@ the last real save, but optional arg FORCE non-nil means delete anyway." | |||
| 4855 | "Normal hook run just before auto-saving.") | 4857 | "Normal hook run just before auto-saving.") |
| 4856 | 4858 | ||
| 4857 | (defcustom before-save-hook nil | 4859 | (defcustom before-save-hook nil |
| 4858 | "Normal hook that is run before a buffer is saved to its file." | 4860 | "Normal hook that is run before a buffer is saved to its file. |
| 4861 | Only used by `save-buffer'." | ||
| 4859 | :options '(copyright-update time-stamp) | 4862 | :options '(copyright-update time-stamp) |
| 4860 | :type 'hook | 4863 | :type 'hook |
| 4861 | :group 'files) | 4864 | :group 'files) |
| 4862 | 4865 | ||
| 4863 | (defcustom after-save-hook nil | 4866 | (defcustom after-save-hook nil |
| 4864 | "Normal hook that is run after a buffer is saved to its file." | 4867 | "Normal hook that is run after a buffer is saved to its file. |
| 4868 | Only used by `save-buffer'." | ||
| 4865 | :options '(executable-make-buffer-file-executable-if-script-p) | 4869 | :options '(executable-make-buffer-file-executable-if-script-p) |
| 4866 | :type 'hook | 4870 | :type 'hook |
| 4867 | :group 'files) | 4871 | :group 'files) |
diff --git a/lisp/net/mailcap.el b/lisp/net/mailcap.el index 4e53b5a2861..89f6c91156b 100644 --- a/lisp/net/mailcap.el +++ b/lisp/net/mailcap.el | |||
| @@ -853,7 +853,7 @@ If NO-DECODE is non-nil, don't decode STRING." | |||
| 853 | (".css" . "text/css") | 853 | (".css" . "text/css") |
| 854 | (".dvi" . "application/x-dvi") | 854 | (".dvi" . "application/x-dvi") |
| 855 | (".diff" . "text/x-patch") | 855 | (".diff" . "text/x-patch") |
| 856 | (".dpatch". "test/x-patch") | 856 | (".dpatch". "text/x-patch") |
| 857 | (".el" . "application/emacs-lisp") | 857 | (".el" . "application/emacs-lisp") |
| 858 | (".eps" . "application/postscript") | 858 | (".eps" . "application/postscript") |
| 859 | (".etx" . "text/x-setext") | 859 | (".etx" . "text/x-setext") |
diff --git a/lisp/org/org-src.el b/lisp/org/org-src.el index 0e82cfda7b8..caa6526435b 100644 --- a/lisp/org/org-src.el +++ b/lisp/org/org-src.el | |||
| @@ -914,16 +914,20 @@ fontification of code blocks see `org-src-fontify-block' and | |||
| 914 | (with-current-buffer | 914 | (with-current-buffer |
| 915 | (get-buffer-create | 915 | (get-buffer-create |
| 916 | (concat " org-src-fontification:" (symbol-name lang-mode))) | 916 | (concat " org-src-fontification:" (symbol-name lang-mode))) |
| 917 | (delete-region (point-min) (point-max)) | 917 | ;; Make sure that modification hooks are not inhibited in |
| 918 | (insert string " ") ;; so there's a final property change | 918 | ;; the org-src-fontification buffer in case we're called |
| 919 | (unless (eq major-mode lang-mode) (funcall lang-mode)) | 919 | ;; from `jit-lock-function' (Bug#25132). |
| 920 | (org-font-lock-ensure) | 920 | (let ((inhibit-modification-hooks nil)) |
| 921 | (setq pos (point-min)) | 921 | (delete-region (point-min) (point-max)) |
| 922 | (while (setq next (next-single-property-change pos 'face)) | 922 | (insert string " ") ;; so there's a final property change |
| 923 | (put-text-property | 923 | (unless (eq major-mode lang-mode) (funcall lang-mode)) |
| 924 | (+ start (1- pos)) (1- (+ start next)) 'face | 924 | (org-font-lock-ensure) |
| 925 | (get-text-property pos 'face) org-buffer) | 925 | (setq pos (point-min)) |
| 926 | (setq pos next))) | 926 | (while (setq next (next-single-property-change pos 'face)) |
| 927 | (put-text-property | ||
| 928 | (+ start (1- pos)) (1- (+ start next)) 'face | ||
| 929 | (get-text-property pos 'face) org-buffer) | ||
| 930 | (setq pos next)))) | ||
| 927 | (add-text-properties | 931 | (add-text-properties |
| 928 | start end | 932 | start end |
| 929 | '(font-lock-fontified t fontified t font-lock-multiline t)) | 933 | '(font-lock-fontified t fontified t font-lock-multiline t)) |
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index e488c196fef..ed34d9aaa52 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el | |||
| @@ -363,7 +363,7 @@ instead of SOURCE-FILE-NAME. | |||
| 363 | 363 | ||
| 364 | For example, foo.cpp is a master file if it includes foo.h. | 364 | For example, foo.cpp is a master file if it includes foo.h. |
| 365 | 365 | ||
| 366 | Whether a buffer for MATER-FILE-NAME exists, use it as a source | 366 | When a buffer for MASTER-FILE-NAME exists, use it as a source |
| 367 | instead of reading master file from disk." | 367 | instead of reading master file from disk." |
| 368 | (let* ((source-file-nondir (file-name-nondirectory source-file-name)) | 368 | (let* ((source-file-nondir (file-name-nondirectory source-file-name)) |
| 369 | (source-file-extension (file-name-extension source-file-nondir)) | 369 | (source-file-extension (file-name-extension source-file-nondir)) |
diff --git a/lisp/vc/ediff-merg.el b/lisp/vc/ediff-merg.el index 2567818de65..d7fa74fff87 100644 --- a/lisp/vc/ediff-merg.el +++ b/lisp/vc/ediff-merg.el | |||
| @@ -84,7 +84,7 @@ A region is considered to have been changed if it is different from the current | |||
| 84 | default (`default-A', `default-B', `combined') and it hasn't been marked as | 84 | default (`default-A', `default-B', `combined') and it hasn't been marked as |
| 85 | `prefer-A' or `prefer-B'. | 85 | `prefer-A' or `prefer-B'. |
| 86 | A region is considered to have been changed also when it is marked as | 86 | A region is considered to have been changed also when it is marked as |
| 87 | as `prefer-A', but is different from the corresponding difference region in | 87 | `prefer-A', but is different from the corresponding difference region in |
| 88 | Buffer A or if it is marked as `prefer-B' and is different from the region in | 88 | Buffer A or if it is marked as `prefer-B' and is different from the region in |
| 89 | Buffer B." | 89 | Buffer B." |
| 90 | :type 'boolean | 90 | :type 'boolean |
diff --git a/src/editfns.c b/src/editfns.c index 612893c377b..65c0c721d11 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -3865,12 +3865,14 @@ The format control string may contain %-sequences meaning to substitute | |||
| 3865 | the next available argument: | 3865 | the next available argument: |
| 3866 | 3866 | ||
| 3867 | %s means print a string argument. Actually, prints any object, with `princ'. | 3867 | %s means print a string argument. Actually, prints any object, with `princ'. |
| 3868 | %d means print as number in decimal (%o octal, %x hex). | 3868 | %d means print as signed number in decimal. |
| 3869 | %o means print as unsigned number in octal, %x as unsigned number in hex. | ||
| 3869 | %X is like %x, but uses upper case. | 3870 | %X is like %x, but uses upper case. |
| 3870 | %e means print a number in exponential notation. | 3871 | %e means print a number in exponential notation. |
| 3871 | %f means print a number in decimal-point notation. | 3872 | %f means print a number in decimal-point notation. |
| 3872 | %g means print a number in exponential notation | 3873 | %g means print a number in exponential notation if the exponent would be |
| 3873 | or decimal-point notation, whichever uses fewer characters. | 3874 | less than -4 or greater than or equal to the precision (default: 6); |
| 3875 | otherwise it prints in decimal-point notation. | ||
| 3874 | %c means print a number as a single character. | 3876 | %c means print a number as a single character. |
| 3875 | %S means print any object as an s-expression (using `prin1'). | 3877 | %S means print any object as an s-expression (using `prin1'). |
| 3876 | 3878 | ||
| @@ -3893,8 +3895,10 @@ The - and 0 flags affect the width specifier, as described below. | |||
| 3893 | The # flag means to use an alternate display form for %o, %x, %X, %e, | 3895 | The # flag means to use an alternate display form for %o, %x, %X, %e, |
| 3894 | %f, and %g sequences: for %o, it ensures that the result begins with | 3896 | %f, and %g sequences: for %o, it ensures that the result begins with |
| 3895 | \"0\"; for %x and %X, it prefixes the result with \"0x\" or \"0X\"; | 3897 | \"0\"; for %x and %X, it prefixes the result with \"0x\" or \"0X\"; |
| 3896 | for %e, %f, and %g, it causes a decimal point to be included even if | 3898 | for %e and %f, it causes a decimal point to be included even if the |
| 3897 | the precision is zero. | 3899 | the precision is zero; for %g, it causes a decimal point to be |
| 3900 | included even if the the precision is zero, and also forces trailing | ||
| 3901 | zeros after the decimal point to be left in place. | ||
| 3898 | 3902 | ||
| 3899 | The width specifier supplies a lower limit for the length of the | 3903 | The width specifier supplies a lower limit for the length of the |
| 3900 | printed representation. The padding, if any, normally goes on the | 3904 | printed representation. The padding, if any, normally goes on the |
| @@ -3903,10 +3907,12 @@ character is normally a space, but it is 0 if the 0 flag is present. | |||
| 3903 | The 0 flag is ignored if the - flag is present, or the format sequence | 3907 | The 0 flag is ignored if the - flag is present, or the format sequence |
| 3904 | is something other than %d, %e, %f, and %g. | 3908 | is something other than %d, %e, %f, and %g. |
| 3905 | 3909 | ||
| 3906 | For %e, %f, and %g sequences, the number after the "." in the | 3910 | For %e and %f sequences, the number after the "." in the precision |
| 3907 | precision specifier says how many decimal places to show; if zero, the | 3911 | specifier says how many decimal places to show; if zero, the decimal |
| 3908 | decimal point itself is omitted. For %s and %S, the precision | 3912 | point itself is omitted. For %g, the precision specifies how many |
| 3909 | specifier truncates the string to the given width. | 3913 | significant digits to print; zero or omitted are treated as 1. |
| 3914 | For %s and %S, the precision specifier truncates the string to the | ||
| 3915 | given width. | ||
| 3910 | 3916 | ||
| 3911 | Text properties, if any, are copied from the format-string to the | 3917 | Text properties, if any, are copied from the format-string to the |
| 3912 | produced text. | 3918 | produced text. |