emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* further on compiling development version of org-mode without make command
@ 2009-07-08 21:52 Eric S Fraga
  2009-07-09  9:17 ` Sebastian Rose
  2009-07-09 10:19 ` Sebastian Rose
  0 siblings, 2 replies; 13+ messages in thread
From: Eric S Fraga @ 2009-07-08 21:52 UTC (permalink / raw)
  To: emacs-orgmode

Hello again,

Although Sebastian's elisp code was perfect for batch compiling the
lisp/*.el files in the org distribution, it doesn't address one key
element of the make step required: the creation of the
org-install.el file.

I've (with my rather rudimentary elisp skills) modified the function
as follows to incorporate the commands from the Makefile which are
used to create the org-install.el file:

--8<---------------cut here---------------start------------->8---
;; functions from Sebastian Rose <sebastian_rose@gmx.de>             
;; to compile all org files in lieu of a make utility,
;; modified by me to create and compile the org-install.el file
(defvar my/org-lisp-directory "~/git/org-mode/lisp"
  "Directory where your org-mode files live.")
;; adjust my/org-lisp-directory:                                     
(setq my/org-lisp-directory "~/git/org-mode/lisp")
(defun my/compile-org()
  "Compile all *.el files that come with org-mode."
  (interactive)
  (dired my/org-lisp-directory)
  (dired-mark-files-regexp "\\.el$")
  (setq list-of-org-files (dired-get-marked-files))
  (dired-do-load)
  (dired-do-byte-compile)
  ;; create the org-install file                                     
  (require 'autoload)
  (setq esf/org-install-file (concat my/org-lisp-directory "org-install.el"))
  (find-file esf/org-install-file)
  (erase-buffer)
  (mapc (lambda (x)
          (generate-file-autoloads x))
        list-of-org-files
        )
  (insert "\n(provide (quote org-install))\n")
  (save-buffer)
  (byte-compile-file esf/org-install-file)
  
)
--8<---------------cut here---------------end--------------->8---

Comments of any sort are more than welcome!  It seems to work (but
only time will tell).  Actually, I probably need to delete any
existing org-install.el file first... any suggestions on the best way
to do this would be more than welcome!

Thanks,
eric

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2009-07-12 23:32 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-08 21:52 further on compiling development version of org-mode without make command Eric S Fraga
2009-07-09  9:17 ` Sebastian Rose
2009-07-09 17:05   ` Stefan Vollmar
2009-07-09 18:02     ` Sebastian Rose
2009-07-09 18:25     ` Sebastian Rose
2009-07-10 14:43       ` Stefan Vollmar
2009-07-10 15:20         ` Sebastian Rose
2009-07-09 10:19 ` Sebastian Rose
2009-07-09 10:47   ` Eric S Fraga
2009-07-09 19:47   ` Sebastian Rose
2009-07-10  6:47     ` Rainer Stengele
2009-07-10  6:57       ` Bastien
2009-07-12 23:31     ` Eric S Fraga

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).