Hi Daniel!

> Hello,
>
> I made some work on the installation process, thanks to gnus for the
> code and the ideas.
>
> I tell you that I'm not an expert of Makefiles and debian
> packaging. and I hope I'll not say to much stupidities.
>
> The generation of autoloads are done at installation time, the builing
> of the .el files are done by a little library (an adaptation of
> dgnushack.el), I thought that using lisp code to build dvc should avoid
> the build dependencies in the Makefile but I'm not sure, during
> compilation I have many "reference to free variable 'foo'", see the
> attached logfile.
>

The reason for the free variables is the use of dvc-capturing-lambda.

For example:

In xhg-manifest:
xhg.el:249:41:Warning: reference to free variable `output'
Wrote /usr/share/emacs/site-lisp/dvc/lisp/xhg.elc

(defun xhg-manifest ()
  "Run hg manifest."
  (interactive)
  (let ((buffer (dvc-get-buffer-create 'xhg 'manifest)))
    (dvc-run-dvc-sync 'xhg '("manifest")
       :finished
       (dvc-capturing-lambda (output error status arguments)
         (progn
           (with-current-buffer (capture buffer)
             (let ((inhibit-read-only t))
               (erase-buffer)
               (insert-buffer-substring output)
               (toggle-read-only 1)))
           (dvc-switch-to-buffer (capture buffer)))))))

These warnings are harmless. But it would be nice to tell the byte
compiler that these warnings should not be shown...


Stefan.

Reply via email to