feature request: byte-compile from commandline
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
Medium
|
Andreas Roehler |
Bug Description
It Would Be Nice if you could include a script to byte-compile the elisp, since that is not working for me in the usual way. What I mean:
Normally after I install emacs "packages" (in the absence of a real emacs package manager, insert lament here) I typically download, then byte-compile from in batch mode, e.g.,
me@it:~$ URI=http://
me@it:~$ pushd /home/me/
me@it:~
me@it:~
...
> drwxr-xr-x 4 me me 4.0K 2011-08-01 09:16 python-
me@it:~
> drwxr-xr-x 2 me me 4.0K 2011-08-01 09:16 completion
> -rw-r--r-- 1 me me 379 2011-08-01 09:16 PKG-INFO
> drwxr-xr-x 2 me me 4.0K 2011-08-01 09:16 test
> -rw-r--r-- 1 me me 191K 2011-08-01 09:15 python-mode.el
> -rw-r--r-- 1 me me 248 2011-08-01 07:42 NEWS-6.0.1
> -rw-r--r-- 1 me me 1.6K 2011-08-01 07:39 NEWS
> -rw-r--r-- 1 me me 478 2011-08-01 07:05 setup.py
> -rw-r--r-- 1 me me 353 2011-07-21 15:14 README
> -rw-r--r-- 1 me me 35K 2011-04-26 14:34 LICENSE
> -rw-r--r-- 1 me me 3.0K 2011-04-25 06:01 highlight-
me@it:~
me@it:~$ pushd ~/.emacs.
me@it:~
> 7
me@it:~
> ./test/
> ./test/
> ./test/
> ./test/
> ./highlight-
> ./completion/
> ./python-mode.el
me@it:~
> 0
me@it:~
However in this case, in addition to the usual spew, I get errors, e.g..
> py-bug-
Once finished, I see
me@it:~
> 7
me@it:~
> 4
me@it:~
./test/
./test/
./test/
./highlight-
I then hafta get into emacs and `M-x byte-compile-file` a bit until I get
tlroche@
> ./test/
> ./test/
> ./test/
> ./completion/
> ./highlight-
> ./python-mode.elc
(I still can't get py-bug-
$ emacs -batch -l ./your_file_here.el
TIA, Tom Roche <email address hidden>
Changed in python-mode: | |
assignee: | nobody → Andreas Roehler (a-roehler) |
importance: | Undecided → Medium |
Changed in python-mode: | |
status: | New → In Progress |
milestone: | none → 6.1 |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
Hi,
when byte-compiling from the command line, I'm using the following:
$EMACS -Q --batch --eval "(message (emacs-version))" --eval "(when (featurep 'python- mode)(unload- feature 'python-mode t))" --eval "(add-to-list 'load-path \"$PFW/\")" -load "$PFW/python- mode.el" -load "$PFW/$TESTFILE" -load "$PFW/$TESTFILE2" -load $CCCMDS --eval "(byte-compile-file (expand-file-name \"~OTHER_ PATH/test/ py-bug- numbered- tests.el\ "))" --eval "(byte-compile-file (expand-file-name \"~OTHER_ PATH/test/ python- mode-test. el\"))"
where $PFW etc. are path-variables
HTH,
Andreas