Committed revision 343 to http://bazaar.launchpad.net/~toby-mi6/dvc/toby_allsopp

Fix autoloads for functions defined using define-dvc-unified-command.
  
  Prior to this patch, dvc-autoloads.el ended up with calls to the
  define-dvc-unified-command macro in it.  When byte-compiled, the macro
  was expanded, leaving the defun form in its entirety.  The exapnsion of
  this macro uses the function dvc-remove-optional-args which is defined in
  dvc-unified.el but is not autoloaded, which meant that calling one of the
  "autoloaded" functions defined using define-dvc-unified-command resulted
  in an error, at least until dvc-unified.el was loaded for some other
  reason.
  
  Possible solutions to this problem included:
  
  1) Autoload dvc-remove-optional-args.
  
  2) Don't byte-compile dvc-autoloads.el (because
     define-dvc-unified-command is autoloaded from dvc-unified.el).
  
  3) Manually specify the autload forms for the functions defined using
     define-dvc-unified-command.
  
  4) Teach make-autoload how to generate proper autoloads for
     define-dvc-unified-command forms.
  
  This patch uses solution 4.
  
  * lisp/dvc-build.el (make-autoload): Advise make-autoload to macroexpand
    define-dvc-unified-command before attempting to generate the autoload
    form.

_______________________________________________
Dvc-dev mailing list
[email protected]
https://mail.gna.org/listinfo/dvc-dev

Reply via email to