From a1ef10e6a0a216e80551dd179fc511ea8fdc4c88 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Tue, 17 Jan 2017 16:10:03 -0500 Subject: [PATCH 01/16] More NEWS checking for admin.el's set-version * admin/admin.el (set-version): Warn if temporary NEWS markup still present in release candidates. --- admin/admin.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/admin/admin.el b/admin/admin.el index 4892045a690..7b9f01f64a1 100644 --- a/admin/admin.el +++ b/admin/admin.el @@ -143,6 +143,13 @@ Root must be the root of an Emacs source tree." (not (equal (cadr oldversion) (cadr newversion))))) (newsfile (expand-file-name "etc/NEWS" root)) (oldnewsfile (expand-file-name (format "etc/NEWS.%s" oldmajor) root))) + (unless (> (length newversion) 2) ; pretest or release candidate? + (with-temp-buffer + (insert-file-contents newsfile) + (if (re-search-forward "^\\(+++ *\\|--- *\\)$" nil t) + (display-warning 'admin + "NEWS file still contains temporary markup. +Documentation changes might not have been completed!")))) (when (and majorbump (not (file-exists-p oldnewsfile))) (rename-file newsfile oldnewsfile) From 85a3e4e486f5a717e1dd2ee902dedf5e59dccf9e Mon Sep 17 00:00:00 2001 From: Lele Gaifax Date: Wed, 18 Jan 2017 18:15:28 +0200 Subject: [PATCH 02/16] Fix typos in flymake.el * lisp/progmodes/flymake.el (flymake-check-patch-master-file-buffer): Spelling fixes in the doc string. Copyright-paperwork-exempt: yes --- lisp/progmodes/flymake.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index 11605bcf3a3..03eb776a8d4 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el @@ -361,7 +361,7 @@ instead of SOURCE-FILE-NAME. For example, foo.cpp is a master file if it includes foo.h. -Whether a buffer for MATER-FILE-NAME exists, use it as a source +When a buffer for MASTER-FILE-NAME exists, use it as a source instead of reading master file from disk." (let* ((source-file-nondir (file-name-nondirectory source-file-name)) (source-file-extension (file-name-extension source-file-nondir)) From 2236c53bbec60480f624b32171a77d79b488f2da Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 17 Jan 2017 21:58:09 -0700 Subject: [PATCH 03/16] fix typo in mailcap-mime-extensions * lisp/net/mailcap.el (mailcap-mime-extensions): Use "text/x-patch", not "test/x-patch". (Bug#25472) --- lisp/gnus/mailcap.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/gnus/mailcap.el b/lisp/gnus/mailcap.el index fc259d43090..0a339e8c112 100644 --- a/lisp/gnus/mailcap.el +++ b/lisp/gnus/mailcap.el @@ -818,7 +818,7 @@ If NO-DECODE is non-nil, don't decode STRING." (".css" . "text/css") (".dvi" . "application/x-dvi") (".diff" . "text/x-patch") - (".dpatch". "test/x-patch") + (".dpatch". "text/x-patch") (".el" . "application/emacs-lisp") (".eps" . "application/postscript") (".etx" . "text/x-setext") From 9fcab85efd10090786266610f4dbb83ee0da4b31 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 20 Jan 2017 10:34:15 +0200 Subject: [PATCH 04/16] Improve documentation of auto-save-visited-file-name * doc/emacs/files.texi (Auto Save Files): Mention subtle differences between saving the buffer and auto-saving with auto-save-visited-file-name set non-nil. (Bug#25478) --- doc/emacs/files.texi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi index 47f92812be9..efe4156c435 100644 --- a/doc/emacs/files.texi +++ b/doc/emacs/files.texi @@ -1038,8 +1038,10 @@ auto-save-mode}. If you want auto-saving to be done in the visited file rather than in a separate auto-save file, set the variable @code{auto-save-visited-file-name} to a non-@code{nil} value. In this -mode, there is no real difference between auto-saving and explicit -saving. +mode, auto-saving is very similar to explicit saving. However, +differences still exist, in particular for modes which modify the +buffer-saving process in non-trivial ways via various hooks +(@pxref{Saving Buffers,,, elisp, The Emacs Lisp Reference Manual}). @vindex delete-auto-save-files A buffer's auto-save file is deleted when you save the buffer in its From 954e9e983b7e446ebf4a7b4dfee0dca82b6b57f7 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 20 Jan 2017 10:57:14 +0200 Subject: [PATCH 05/16] Improve documentation of hooks related to saving buffers * lisp/files.el (write-file-functions, write-contents-functions) (before-save-hook, after-save-hook): Note that these are only used by save-buffer. * doc/lispref/backups.texi (Auto-Saving): * doc/lispref/files.texi (Saving Buffers): Mention that save-related hooks are not run by auto-saving. (Bug#25460) --- doc/lispref/backups.texi | 5 +++++ doc/lispref/files.texi | 6 +++++- lisp/files.el | 10 +++++++--- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/doc/lispref/backups.texi b/doc/lispref/backups.texi index 83d826018ca..361fa81099b 100644 --- a/doc/lispref/backups.texi +++ b/doc/lispref/backups.texi @@ -545,6 +545,11 @@ effect in an existing buffer until the next time auto-save mode is reenabled in it. If auto-save mode is already enabled, auto-saves continue to go in the same file name until @code{auto-save-mode} is called again. + +Note that setting this variable to a non-@code{nil} value does not +change the fact that auto-saving is different from saving the buffer; +e.g., the hooks described in @ref{Saving Buffers} are @emph{not} run +when a buffer is auto-saved. @end defopt @defun recent-auto-save-p diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index 6f015e2d643..49cb150dc64 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi @@ -403,7 +403,11 @@ buffer name instead. @end deffn Saving a buffer runs several hooks. It also performs format -conversion (@pxref{Format Conversion}). +conversion (@pxref{Format Conversion}). Note that these hooks, +described below, are only run by @code{save-buffer}, they are not run +by other primitives and functions that write buffer text to files, and +in particular auto-saving (@pxref{Auto-Saving}) doesn't run these +hooks. @defvar write-file-functions The value of this variable is a list of functions to be called before diff --git a/lisp/files.el b/lisp/files.el index a6fe381a50a..83ef4e271cd 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -440,7 +440,8 @@ functions are called." (define-obsolete-variable-alias 'write-file-hooks 'write-file-functions "22.1") (defvar write-file-functions nil - "List of functions to be called before writing out a buffer to a file. + "List of functions to be called before saving a buffer to a file. +Only used by `save-buffer'. If one of them returns non-nil, the file is considered already written and the rest are not called. These hooks are considered to pertain to the visited file. @@ -465,6 +466,7 @@ updates before the buffer is saved, use `before-save-hook'.") 'write-contents-functions "22.1") (defvar write-contents-functions nil "List of functions to be called before writing out a buffer to a file. +Only used by `save-buffer'. If one of them returns non-nil, the file is considered already written and the rest are not called and neither are the functions in `write-file-functions'. @@ -4721,13 +4723,15 @@ the last real save, but optional arg FORCE non-nil means delete anyway." "Normal hook run just before auto-saving.") (defcustom before-save-hook nil - "Normal hook that is run before a buffer is saved to its file." + "Normal hook that is run before a buffer is saved to its file. +Only used by `save-buffer'." :options '(copyright-update time-stamp) :type 'hook :group 'files) (defcustom after-save-hook nil - "Normal hook that is run after a buffer is saved to its file." + "Normal hook that is run after a buffer is saved to its file. +Only used by `save-buffer'." :options '(executable-make-buffer-file-executable-if-script-p) :type 'hook :group 'files) From 06695a02fd9afde4f39916d8bc359cf5eac8c053 Mon Sep 17 00:00:00 2001 From: Tino Calancha Date: Sat, 21 Jan 2017 00:31:40 +0900 Subject: [PATCH 06/16] ; Fix a typo in ediff-merg.el * lisp/vc/ediff-merg.el (ediff-skip-merge-regions-that-differ-from-default): Fix a typo in docstring. --- lisp/vc/ediff-merg.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 default (`default-A', `default-B', `combined') and it hasn't been marked as `prefer-A' or `prefer-B'. A region is considered to have been changed also when it is marked as -as `prefer-A', but is different from the corresponding difference region in +`prefer-A', but is different from the corresponding difference region in Buffer A or if it is marked as `prefer-B' and is different from the region in Buffer B." :type 'boolean From c416b141dda77101db7555fcc05243abe988eb11 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 27 Jan 2017 11:42:59 +0200 Subject: [PATCH 07/16] Fix a typo in Eshell manual * doc/misc/eshell.texi (History): Fix a typo. Reported by Mak Kolybabi . --- doc/misc/eshell.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. @itemx M-n Previous and next history line. If there is anything on the input line when you run these commands, they will instead jump to the -precious or next line that begins with that string. +previous or next line that begins with that string. @end table @node Completion From 9f52f67a967819916eedfe55f4ea92f659133dc5 Mon Sep 17 00:00:00 2001 From: Vladimir Panteleev Date: Fri, 27 Jan 2017 11:49:42 +0200 Subject: [PATCH 08/16] Remove stale functions from ert manual * doc/misc/ert.texi (Useful Techniques when Writing Tests): Replace ert--mismatch references with its cl-lib replacement, cl-mismatch. Copyright-paperwork-exempt: yes --- doc/misc/ert.texi | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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: @lisp (ert-deftest ert-test-mismatch () - (should (eql (ert--mismatch "" "") nil)) - (should (eql (ert--mismatch "" "a") 0)) - (should (eql (ert--mismatch "a" "a") nil)) - (should (eql (ert--mismatch "ab" "a") 1)) - (should (eql (ert--mismatch "Aa" "aA") 0)) - (should (eql (ert--mismatch '(a b c) '(a b d)) 2))) + (should (eql (cl-mismatch "" "") nil)) + (should (eql (cl-mismatch "" "a") 0)) + (should (eql (cl-mismatch "a" "a") nil)) + (should (eql (cl-mismatch "ab" "a") 1)) + (should (eql (cl-mismatch "Aa" "aA") 0)) + (should (eql (cl-mismatch '(a b c) '(a b d)) 2))) @end lisp -This test calls the function @code{ert--mismatch} several times with +This test calls the function @code{cl-mismatch} several times with various combinations of arguments and compares the return value to the expected return value. (Some programmers prefer @code{(should (eql EXPECTED ACTUAL))} over the @code{(should (eql ACTUAL EXPECTED))} From c331f393c120208983a4c9890cfd606635ef782a Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 28 Jan 2017 10:30:17 +0200 Subject: [PATCH 09/16] Improve documentation of 'format' conversions * src/editfns.c (Fformat): More accurate description of %g and effects of the various flags on it. More accurate description of integer conversions. * doc/lispref/strings.texi (Formatting Strings): More accurate description of %g and effects of the various flags on it. More accurate description of integer conversions. (Bug#25557) --- doc/lispref/strings.texi | 32 ++++++++++++++++++++------------ src/editfns.c | 24 +++++++++++++++--------- 2 files changed, 35 insertions(+), 21 deletions(-) diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi index d343bcf5eff..d5980f62bd4 100644 --- a/doc/lispref/strings.texi +++ b/doc/lispref/strings.texi @@ -893,17 +893,18 @@ Functions}). Thus, strings are enclosed in @samp{"} characters, and @item %o @cindex integer to octal Replace the specification with the base-eight representation of an -integer. +unsigned integer. @item %d -Replace the specification with the base-ten representation of an +Replace the specification with the base-ten representation of a signed integer. @item %x @itemx %X @cindex integer to hexadecimal Replace the specification with the base-sixteen representation of an -integer. @samp{%x} uses lower case and @samp{%X} uses upper case. +unsigned integer. @samp{%x} uses lower case and @samp{%X} uses upper +case. @item %c Replace the specification with the character which is the value given. @@ -918,8 +919,9 @@ floating-point number. @item %g Replace the specification with notation for a floating-point number, -using either exponential notation or decimal-point notation, whichever -is shorter. +using either exponential notation or decimal-point notation. The +exponential notation is used if the exponent would be less than -4 or +greater than or equal to the precision (default: 6). @item %% Replace the specification with a single @samp{%}. This format @@ -1000,9 +1002,11 @@ both flags are used, @samp{+} takes precedence. The flag @samp{#} specifies an alternate form which depends on the format in use. For @samp{%o}, it ensures that the result begins with a @samp{0}. For @samp{%x} and @samp{%X}, it prefixes the result -with @samp{0x} or @samp{0X}. For @samp{%e}, @samp{%f}, and @samp{%g}, -the @samp{#} flag means include a decimal point even if the precision -is zero. +with @samp{0x} or @samp{0X}. For @samp{%e} and @samp{%f}, the +@samp{#} flag means include a decimal point even if the precision is +zero. For @samp{%g}, it always includes a decimal point, and also +forces any trailing zeros after the decimal point to be left in place +where they would otherwise be removed. The flag @samp{0} ensures that the padding consists of @samp{0} characters instead of spaces. This flag is ignored for non-numerical @@ -1033,10 +1037,14 @@ ignored. All the specification characters allow an optional @dfn{precision} before the character (after the width, if present). The precision is a decimal-point @samp{.} followed by a digit-string. For the -floating-point specifications (@samp{%e}, @samp{%f}, @samp{%g}), the -precision specifies how many decimal places to show; if zero, the -decimal-point itself is also omitted. For @samp{%s} and @samp{%S}, -the precision truncates the string to the given width, so @samp{%.3s} +floating-point specifications (@samp{%e} and @samp{%f}), the +precision specifies how many digits following the decimal point to +show; if zero, the decimal-point itself is also omitted. For +@samp{%g}, the precision specifies how many significant digits to show +(significant digits are the first digit before the decimal point and +all the digits after it). If the precision of %g is zero or +unspecified, it is treated as 1. For @samp{%s} and @samp{%S}, the +precision truncates the string to the given width, so @samp{%.3s} shows only the first three characters of the representation for @var{object}. For other specification characters, the effect of precision is what the local library functions of the @code{printf} diff --git a/src/editfns.c b/src/editfns.c index 395b3f3faed..18384a7d03a 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -3823,12 +3823,14 @@ The format control string may contain %-sequences meaning to substitute the next available argument: %s means print a string argument. Actually, prints any object, with `princ'. -%d means print as number in decimal (%o octal, %x hex). +%d means print as signed number in decimal. +%o means print as unsigned number in octal, %x as unsigned number in hex. %X is like %x, but uses upper case. %e means print a number in exponential notation. %f means print a number in decimal-point notation. -%g means print a number in exponential notation - or decimal-point notation, whichever uses fewer characters. +%g means print a number in exponential notation if the exponent would be + less than -4 or greater than or equal to the precision (default: 6); + otherwise it prints in decimal-point notation. %c means print a number as a single character. %S means print any object as an s-expression (using `prin1'). @@ -3851,8 +3853,10 @@ The - and 0 flags affect the width specifier, as described below. The # flag means to use an alternate display form for %o, %x, %X, %e, %f, and %g sequences: for %o, it ensures that the result begins with \"0\"; for %x and %X, it prefixes the result with \"0x\" or \"0X\"; -for %e, %f, and %g, it causes a decimal point to be included even if -the precision is zero. +for %e and %f, it causes a decimal point to be included even if the +the precision is zero; for %g, it causes a decimal point to be +included even if the the precision is zero, and also forces trailing +zeros after the decimal point to be left in place. The width specifier supplies a lower limit for the length of the printed representation. The padding, if any, normally goes on the @@ -3861,10 +3865,12 @@ character is normally a space, but it is 0 if the 0 flag is present. The 0 flag is ignored if the - flag is present, or the format sequence is something other than %d, %e, %f, and %g. -For %e, %f, and %g sequences, the number after the "." in the -precision specifier says how many decimal places to show; if zero, the -decimal point itself is omitted. For %s and %S, the precision -specifier truncates the string to the given width. +For %e and %f sequences, the number after the "." in the precision +specifier says how many decimal places to show; if zero, the decimal +point itself is omitted. For %g, the precision specifies how many +significant digits to print; zero or omitted are treated as 1. +For %s and %S, the precision specifier truncates the string to the +given width. usage: (format STRING &rest OBJECTS) */) (ptrdiff_t nargs, Lisp_Object *args) From b3139da0778739b88e17aa9d980e6025b811f928 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 28 Jan 2017 11:14:28 +0200 Subject: [PATCH 10/16] ; Fix last change in doc/lispref/strings.texi * doc/lispref/strings.texi (Formatting Strings): One more clarification to the last change. (Bug#25557) --- doc/lispref/strings.texi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi index d5980f62bd4..02dfdfb0971 100644 --- a/doc/lispref/strings.texi +++ b/doc/lispref/strings.texi @@ -921,7 +921,10 @@ floating-point number. Replace the specification with notation for a floating-point number, using either exponential notation or decimal-point notation. The exponential notation is used if the exponent would be less than -4 or -greater than or equal to the precision (default: 6). +greater than or equal to the precision (default: 6). By default, +trailing zeros are removed from the fractional portion of the result +and a decimal-point character appears only if it is followed by a +digit. @item %% Replace the specification with a single @samp{%}. This format From ae8264c5cccf19d5b25a340a605bf2f07de1577e Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Sat, 7 Jan 2017 16:05:19 -0500 Subject: [PATCH 11/16] Call modification hooks in org-src fontify buffers * lisp/org/org-src.el (org-src-font-lock-fontify-block): Let-bind `inhibit-modification-hooks' to nil, since this function can be called from jit-lock-function which binds that variable to t (Bug#25132). --- lisp/org/org-src.el | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/lisp/org/org-src.el b/lisp/org/org-src.el index d01f1082f9f..a02402cf60e 100644 --- a/lisp/org/org-src.el +++ b/lisp/org/org-src.el @@ -913,16 +913,20 @@ fontification of code blocks see `org-src-fontify-block' and (with-current-buffer (get-buffer-create (concat " org-src-fontification:" (symbol-name lang-mode))) - (delete-region (point-min) (point-max)) - (insert string " ") ;; so there's a final property change - (unless (eq major-mode lang-mode) (funcall lang-mode)) - (org-font-lock-ensure) - (setq pos (point-min)) - (while (setq next (next-single-property-change pos 'face)) - (put-text-property - (+ start (1- pos)) (1- (+ start next)) 'face - (get-text-property pos 'face) org-buffer) - (setq pos next))) + ;; Make sure that modification hooks are not inhibited in + ;; the org-src-fontification buffer in case we're called + ;; from `jit-lock-function' (Bug#25132). + (let ((inhibit-modification-hooks nil)) + (delete-region (point-min) (point-max)) + (insert string " ") ;; so there's a final property change + (unless (eq major-mode lang-mode) (funcall lang-mode)) + (org-font-lock-ensure) + (setq pos (point-min)) + (while (setq next (next-single-property-change pos 'face)) + (put-text-property + (+ start (1- pos)) (1- (+ start next)) 'face + (get-text-property pos 'face) org-buffer) + (setq pos next)))) (add-text-properties start end '(font-lock-fontified t fontified t font-lock-multiline t)) From 72ef710f6e1c8e334fd50da9480a8cb151e823a2 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Mon, 30 Jan 2017 21:45:02 -0500 Subject: [PATCH 12/16] Fix call to debugger on assertion failure * lisp/emacs-lisp/cl-preloaded.el (cl--assertion-failed): The first argument must be `error', and the second is a list of arguments for `signal'. --- lisp/emacs-lisp/cl-preloaded.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/cl-preloaded.el b/lisp/emacs-lisp/cl-preloaded.el index 0b079410002..4ae77a58ec9 100644 --- a/lisp/emacs-lisp/cl-preloaded.el +++ b/lisp/emacs-lisp/cl-preloaded.el @@ -45,7 +45,7 @@ (defun cl--assertion-failed (form &optional string sargs args) (if debug-on-error - (funcall debugger `(cl-assertion-failed ,form ,string ,@sargs)) + (funcall debugger 'error `(cl-assertion-failed (,form ,string ,@sargs))) (if string (apply #'error string (append sargs args)) (signal 'cl-assertion-failed `(,form ,@sargs))))) From 4d81eb450ef5219b551e01e7df7f08784fdc3231 Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Tue, 31 Jan 2017 19:04:36 +0100 Subject: [PATCH 13/16] Document variable `byte-compile-debug' * lisp/emacs-lisp/bytecomp.el (byte-compile-debug): Document variable. --- lisp/emacs-lisp/bytecomp.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index eb3f46d3d7a..2c808a5b4bd 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -411,7 +411,8 @@ specify different fields to sort on." :type '(choice (const name) (const callers) (const calls) (const calls+callers) (const nil))) -(defvar byte-compile-debug nil) +(defvar byte-compile-debug nil + "If non-nil, byte compile errors will be raised as signals instead of logged.") (defvar byte-compile-constants nil "List of all constants encountered during compilation of this form.") (defvar byte-compile-variables nil From 7c1e598a0559db79a5166e34514413e3f524eeff Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Tue, 31 Jan 2017 21:10:03 +0100 Subject: [PATCH 14/16] Document `byte-compile-debug' in the ELisp manual * doc/lispref/compile.texi: Document variable `byte-compile-debug'. --- doc/lispref/compile.texi | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/lispref/compile.texi b/doc/lispref/compile.texi index b1cc04be09d..441ee9afb26 100644 --- a/doc/lispref/compile.texi +++ b/doc/lispref/compile.texi @@ -89,9 +89,12 @@ the @code{byte-compile} function. You can compile a whole file with @code{byte-recompile-directory} or @code{batch-byte-compile}. Sometimes, the byte compiler produces warning and/or error messages -(@pxref{Compiler Errors}, for details). These messages are recorded -in a buffer called @file{*Compile-Log*}, which uses Compilation mode. -@xref{Compilation Mode,,,emacs, The GNU Emacs Manual}. +(@pxref{Compiler Errors}, for details). These messages are normally +recorded in a buffer called @file{*Compile-Log*}, which uses +Compilation mode. @xref{Compilation Mode,,,emacs, The GNU Emacs +Manual}. However, if the variable @code{byte-compile-debug} is +non-nil, error message will be signaled as Lisp errors instead +(@pxref{Errors}). @cindex macro compilation Be careful when writing macro calls in files that you intend to From 7e02a477bbcabb4e65aeecade79b67357c0b9dae Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 31 Jan 2017 22:36:02 +0200 Subject: [PATCH 15/16] Index byte-compile-debug * doc/lispref/compile.texi (Compilation Functions): Index byte-compile-debug. --- doc/lispref/compile.texi | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/lispref/compile.texi b/doc/lispref/compile.texi index 441ee9afb26..201d9fc2fa5 100644 --- a/doc/lispref/compile.texi +++ b/doc/lispref/compile.texi @@ -88,6 +88,7 @@ the @code{byte-compile} function. You can compile a whole file with @code{byte-compile-file}, or several files with @code{byte-recompile-directory} or @code{batch-byte-compile}. +@vindex byte-compile-debug Sometimes, the byte compiler produces warning and/or error messages (@pxref{Compiler Errors}, for details). These messages are normally recorded in a buffer called @file{*Compile-Log*}, which uses From ab0a60a1b334fafc7d805eb44e6069ea314ad486 Mon Sep 17 00:00:00 2001 From: Tino Calancha Date: Fri, 3 Feb 2017 17:49:39 +0900 Subject: [PATCH 16/16] ; * CONTRIBUTE (Generating ChangeLog entries): Drop duplicate word. --- CONTRIBUTE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTE b/CONTRIBUTE index c12f0cc08db..809b6e3208d 100644 --- a/CONTRIBUTE +++ b/CONTRIBUTE @@ -162,7 +162,7 @@ them right the first time, so here are guidelines for formatting them: - If you use Emacs VC, one way to format ChangeLog entries is to create a top-level ChangeLog file manually, and update it with 'C-x 4 a' as usual. Do not register the ChangeLog file under git; instead, use - 'C-c C-a' to insert its contents into into your *vc-log* buffer. + 'C-c C-a' to insert its contents into your *vc-log* buffer. Or if 'log-edit-hook' includes 'log-edit-insert-changelog' (which it does by default), they will be filled in for you automatically.