From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: further on compiling development version of org-mode without make command Date: Thu, 09 Jul 2009 11:17:27 +0200 Message-ID: <87ab3emd08.fsf@kassiopeya.MSHEIMNETZ> References: <87k52i266j.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOpgy-0004k9-8O for emacs-orgmode@gnu.org; Thu, 09 Jul 2009 05:13:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOpgt-0004d0-3N for emacs-orgmode@gnu.org; Thu, 09 Jul 2009 05:13:23 -0400 Received: from [199.232.76.173] (port=35564 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOpgs-0004cq-Ud for emacs-orgmode@gnu.org; Thu, 09 Jul 2009 05:13:18 -0400 Received: from mail.gmx.net ([213.165.64.20]:54377) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MOpgs-0003Yt-DA for emacs-orgmode@gnu.org; Thu, 09 Jul 2009 05:13:18 -0400 In-Reply-To: <87k52i266j.wl%ucecesf@ucl.ac.uk> (Eric S. Fraga's message of "Wed, 08 Jul 2009 22:52:52 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric S Fraga Cc: emacs-orgmode@gnu.org Eric S Fraga writes: > 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 wonder where I have that file. I couldn't find `org-install.el' anywhere but it seems to work fine here without. What is it needed for? Speed up things, I guess? As I never compile Org-mode, I never used that 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: > > > ;; functions from Sebastian Rose > ;; 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) > > ) > > 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! Yes - and we should remove all the *.elc files first (which I missed), in case some are obsolete after a `git pull'. Could be done via dired again: (dired-mark-files-regexp "\\.el$") (setq list-of-org-files (dired-get-marked-files)) ;; ADD THIS: ;; this deletes obsolete files: (dolist (f list-of-org-files) (delete-file (concat f "c"))) Sebastian