John Wiegley writes:

>>>>>> Craig Earls <[email protected]> writes:
>
>> line-regex is a macro that needs to be evaluated at run time.  Do not
>> compile ldg-context.  The other files should be fine.

Does this look like a suitable design change? I'm just about to try a
build with it.

Cheers,
Colin.

commit dbf970321f21970ee9e0876a3df922e5b3217e1b
Author: Colin Hall <[email protected]>
Date:   Fri May 17 10:03:17 2013 +0100

    Avoid byte-compilation of ldg-context.el
    
    The elisp source ldg-context.el contains a definition for a
    macro, line-regex. Byte-compilation of ldg-context.el results
    in an error due to line-regex being undefined.

diff --git a/lisp/CMakeLists.txt b/lisp/CMakeLists.txt
index 2258fd5..4e10410 100644
--- a/lisp/CMakeLists.txt
+++ b/lisp/CMakeLists.txt
@@ -16,9 +16,11 @@ set(EMACS_LISP_SOURCES
   ldg-test.el
   ldg-texi.el
   ldg-xact.el
-  ldg-context.el
   ldg-schedule.el)
 
+set(EMACS_LISP_SOURCES_NOTCOMPILED
+  ldg-context.el)
+
 # find emacs and complain if not found
 find_program(EMACS_EXECUTABLE emacs)
 
@@ -47,7 +49,7 @@ if(EMACS_EXECUTABLE)
   add_custom_target(emacs_lisp_byte_compile ALL DEPENDS ${EMACS_LISP_BINARIES})
 
   # install the byte-compiled emacs-lisp sources
-  install(FILES ${EMACS_LISP_SOURCES} ${EMACS_LISP_BINARIES}
+  install(FILES ${EMACS_LISP_SOURCES} ${EMACS_LISP_BINARIES} 
${EMACS_LISP_SOURCES_NOTCOMPILED} 
     DESTINATION share/emacs/site-lisp)
 endif()
 
> I believe you can use (eval-when (load eval) ...) to ensure that a given form
> is never compiled, but is only evaluated when the file is being loaded or the
> form evaluated...

I researched that briefly, John, but the only Emacs features I found
were related to enforcing byte-compilation, rather than avoiding it.

If you could expand your point, or send references, I'll investigate
making a change to ldg-context.el

Cheers,
Colin.

-- 
Colin Hall

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to