emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
blob 0cc18a6fe16b64c9c357a307b86af0d7399b797a 1202 bytes (raw)
name: doc/native-devel.org 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 
#+title: A reproducible natively compiled org-mode
#+subtitle:  Release {{{version}}}
#+author:    The Org Mode Developers
#+language:  en

* Introduction

In order to develop and test ~org-mode~ when your Emacs editor
supports native compilation, there are two things to take into
account:

1. you will need to =make native= to generate the =.eln= files. These
   will be stored under the ~lisp/~ directory of your development
   ~org-mode~ directory.
2. Add the following code in your Emacs ~early-init.el~ file:

#+BEGIN_SRC emacs-lisp
(let ((org-devel-path (expand-file-name "<org-mode development dir>/lisp")))
  (when (file-directory-p org-devel-path)
    (when (native-comp-available-p)
      (let ((first (pop native-comp-eln-load-path)))
        ;; put in second place
        (add-to-list 'native-comp-eln-load-path org-devel-path t)
        (add-to-list 'native-comp-eln-load-path first t)))
    (add-to-list 'load-path  org-devel-path)))
#+END_SRC

putting the correct path for your org-mode development directory. In
my case, it is =~/Devel/org-mode=, so the first =let= looks like this:

#+BEGIN_SRC emacs-lisp
(let ((org-devel-path (expand-file-name "~/Devel/org-mode/lisp")))
#+END_SRC

debug log:

solving 0cc18a6fe ...
found 0cc18a6fe in https://list.orgmode.org/orgmode/14271f30-5821-497d-844f-dadb720525d3@gmail.com/

applying [1/1] https://list.orgmode.org/orgmode/14271f30-5821-497d-844f-dadb720525d3@gmail.com/
diff --git a/doc/native-devel.org b/doc/native-devel.org
new file mode 100644
index 000000000..0cc18a6fe

Checking patch doc/native-devel.org...
Applied patch doc/native-devel.org cleanly.

index at:
100644 0cc18a6fe16b64c9c357a307b86af0d7399b797a	doc/native-devel.org

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).