all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sebastian Rose <sebastian_rose@gmx.de>
To: Eric S Fraga <e.fraga@ucl.ac.uk>
Cc: emacs-orgmode@gnu.org
Subject: Re: further on compiling development version of org-mode without make command
Date: Thu, 09 Jul 2009 11:17:27 +0200	[thread overview]
Message-ID: <87ab3emd08.fsf@kassiopeya.MSHEIMNETZ> (raw)
In-Reply-To: <87k52i266j.wl%ucecesf@ucl.ac.uk> (Eric S. Fraga's message of "Wed, 08 Jul 2009 22:52:52 +0100")

Eric S Fraga <ucecesf@ucl.ac.uk> 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 <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)
>   
> )
>
> 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

  reply	other threads:[~2009-07-09  9:13 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ab3emd08.fsf@kassiopeya.MSHEIMNETZ \
    --to=sebastian_rose@gmx.de \
    --cc=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.