emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 913e50aba6c: Add native-compilation to Emacs Lisp mode menu


From: Eli Zaretskii
Subject: emacs-29 913e50aba6c: Add native-compilation to Emacs Lisp mode menu
Date: Wed, 9 Aug 2023 10:35:48 -0400 (EDT)

branch: emacs-29
commit 913e50aba6c8be86c762ad2f6491b81ca7e9cdfd
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Add native-compilation to Emacs Lisp mode menu
    
    * lisp/progmodes/elisp-mode.el (emacs-lisp-mode-menu): Add menu
    item for emacs-lisp-native-compile-and-load.
---
 lisp/progmodes/elisp-mode.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index 956e3d30bce..1b42051ab93 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -84,6 +84,10 @@ All commands in `lisp-mode-shared-map' are inherited by this 
map."
      :help "Byte-compile the current file (if it has changed), then load 
compiled code"]
     ["Byte-recompile Directory..." byte-recompile-directory
      :help "Recompile every `.el' file in DIRECTORY that needs recompilation"]
+    ["Native-compile and Load" emacs-lisp-native-compile-and-load
+     :help "Compile the current file to native code, then load compiled native 
code"
+     :active (and (featurep 'native-compile)
+                  (native-comp-available-p))]
     ["Disassemble Byte Compiled Object..." disassemble
      :help "Print disassembled code for OBJECT in a buffer"]
     "---"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]