Christian Ohler <[EMAIL PROTECTED]> writes:
> The file dvc-load-install.el (generated by ./configure from
> dvc-load-install.el.in) contains this code:
>
> (add-to-list 'load-path "$(prefix)/share/emacs/site-lisp/dvc/")
> (unless (locate-library "ewoc")
> (add-to-list 'load-path "$(prefix)/share/emacs/site-lisp/dvc/contrib"))
> (add-to-list 'Info-default-directory-list "${datarootdir}/info/info")
>
> I don't see how this code can possibly work;
It doesn't work as it is, but "make install" will do the substitution:
install: dvc-load.el
@for i in $(SUBDIRS) ; do \
$(MAKE) -C $$i install; \
done
sed 's|$$(prefix)|$(prefix)|' dvc-load-install.el \
> ${lispdir}/dvc-load.el
and that will generate a correct elisp file.
That's a small but usefull hack, it allows one to run Emacs with DVC
by launching e.g. "emacs -l /path/to/dvc-load.el", or just add a
single (load-file ...) line in ~/.emacs.el.
Now, the (small) bug is that the Debian package shouldn't try to
compile this file. Indeed, it should really ignore it, since it the
Debian package is precisely meant to be a cleaner replacement for this
small hack.
--
Matthieu
_______________________________________________
Dvc-dev mailing list
[email protected]
https://mail.gna.org/listinfo/dvc-dev