emacs-31 8b38548dd5d: ; Document native-compile-directory.
Sean Whitton <[email protected]>
| Newsgroups | gmane.emacs.diffs |
|---|---|
| Message-ID | <[email protected]> |
branch: emacs-31 commit 8b38548dd5d349bc33fa5921058dd2e877eda82b Author: Sean Whitton <[email protected]> Commit: Sean Whitton <[email protected]> ; Document native-compile-directory. --- doc/lispref/compile.texi | 9 +++++++++ etc/NEWS | 16 +++++++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/doc/lispref/compile.texi b/doc/lispref/compile.texi index 87a1e053905..136a1ed3efb 100644 --- a/doc/lispref/compile.texi +++ b/doc/lispref/compile.texi @@ -871,6 +871,15 @@ invokes the same Emacs executable as the process that called this function. @end defun +@defun native-compile-directory directory +This function recursively searches for @file{.el} files in +@var{directory} and any subdirectories thereof, and runs +native-compilation on any that have not already been compiled. To +determine whether a file has already been compiled, it searches for a +corresponding @file{.eln} in the @code{native-comp-eln-load-path} +variable (@pxref{Native-Compilation Variables}). +@end defun + @defun batch-native-compile &optional for-tarball This function runs native-compilation on files specified on the Emacs command line in batch mode. It must be used only in a batch execution diff --git a/etc/NEWS b/etc/NEWS index e63a04a96e9..1783c1efd46 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -3354,6 +3354,7 @@ Directory". This also means that combining the 'use-package' keywords --- *** Package menu now highlights packages marked for installation or deletion. +--- *** Package menu now displays the total number of the package type. The package menu now displays in the mode line the total number of packages installed, the total number of packages from all the package @@ -3831,7 +3832,6 @@ CPerl mode creates Imenu entries for ":writer" generated accessors and recognizes the new builtin functions "all" and "any". See https://perldoc.perl.org/5.42.0/perldelta for details. ---- ** Zone Zone can scramble multiple windows across multiple frames; it may also @@ -3842,22 +3842,26 @@ control the use of frames and windows beyond the currently active ones. It identifies suitable buffers for zoning out so that potentially important buffer contents are not exposed. +--- *** New user option 'zone-delete-other-windows'. When non-nil, the frame is made into a single full frame window to hold the zoned buffer. If all frames were to be used ('zone-all-frames' set to non-nil), then all frames are converted to single window frames. +--- *** New user option 'zone-all-frames'. When non-nil, Zone will appear on all visible frames. While the buffer scrambling will appear on each frame, it will be the same buffer so they will all behave the same way. +--- *** New user option 'zone-all-windows-in-frame'. When non-nil, the zoned buffer will be mapped to all of the windows present on the frame. If the option is nil, then only the selected window will show the zoned buffer. Note, however, that each window holding the zoned buffer is showing the same zoned buffer. +--- *** New variable 'zone-ignored-buffers'. This variable is a list of criteria for excluding a buffer from consideration as the source of zoning. The list has entries that are @@ -3881,9 +3885,9 @@ begrudgingly use the "*scratch*" buffer. Customize the user option 'abbrev-mode' to non-nil to enable Abbrev mode by default in all buffers. ---- ** Antlr mode +--- *** Variable 'antlr-tool-version' is no longer a user option. It is now buffer-local and has the symbol 'antlr-v2', 'antlr-v3' or 'antlr-v4' as its value. The value determines which of the tool @@ -3892,16 +3896,19 @@ command 'antlr-run-tool' uses the option 'antlr-v3-tool-command' (with default value "java org.antlr.Tool") when 'antlr-tool-version' has the value 'antlr-v3'. +--- *** 'antlr-mode' now also works on ANTLR v3 or v4 grammars. If the variable 'antlr-tool-version' is not set locally, e.g., by the file's local variables specs, the command sets its local value to 'antlr-v2' if a keyword "class" or "header" appears at the beginning of the source, or to 'antlr-v3' otherwise. +--- *** New 'antlr-v4-mode' is a derived mode of 'antlr-mode'. It sets 'antlr-tool-version' to value 'antlr-v4', and is automatically used for files with extension ".g4". +--- *** The variable 'antlr-language' is now used more generally. The variable's value is a symbol which determines which of the language-dependent customization options are used. These options @@ -3911,6 +3918,7 @@ of 'antlr-v2-language-list', 'antlr-v3-language-list' and 'antlr-v4-language-list'. This mode now supports C, Delphi, JavaScript, ObjC, Python and Ruby, in addition to Java and C++. +--- *** New user option 'antlr-run-tool-on-buffer-file'. The command 'antlr-run-tool' now usually runs on the file for the current buffer. Customize this user option to nil to get the previous @@ -3924,9 +3932,9 @@ If an active region exists, the commands 'hi-lock-line-face-buffer' and 'hi-lock-face-phrase-buffer' now use its contents as their default value. Previously, only 'hi-lock-face-buffer' supported this. ---- ** Shadowfile +--- *** 'shadow-info-buffer' and 'shadow-todo-buffer' now use ephemeral buffer names. ** Display Battery mode @@ -4190,6 +4198,7 @@ coding mistakes. For example, may return either nil or t. +--- ** Nested backquotes are no longer supported in Pcase patterns. --- @@ -4525,6 +4534,7 @@ This function returns non-nil if a given key is present in a hash table. +++ ** The function 'purecopy' is now an obsolete alias for 'identity'. ++++ ** New function 'native-compile-directory'. This function natively compiles all Lisp files in a directory and in its sub-directories, recursively, excluding those already natively compiled.