On Wed, Feb 13 2008, Robert Widhopf-Fenk wrote:

>> So, the problem appears to be related to mule.  For me, removing
>> -no-autoloads from FLAGS in the Makefile makes the problem go away.  I
>> don't know anything about XEmacs, so I won't debug any further.
>> Hopefully an XEmacs expert will offer some more intelligent advice, but
>> you can try using the xemacs21-mule package or removing -no-autoloads
>> for now.
>
> Well, I am kind of XEmacs expert, but since DVC switched to
> package-maint I experience built problems which are had to
> debug as no backtrace is generated 
>
> In order to track down things like that I once added the
> (setq debug-on-error t) below.
>
> === modified file 'lisp/dvc-build.el'
> --- lisp/dvc-build.el 2008-02-06 09:01:20 +0000
> +++ lisp/dvc-build.el 2008-02-12 22:39:00 +0000
> @@ -50,7 +50,7 @@
>            (add-to-list 'load-path dir)))
>       (split-string otherdirs " "))
>  
> -;(setq debug-on-error t)
> +(setq debug-on-error t)
>  
>  ;; The name of our package
>  (setq package-maint-pkg "dvc")
>
> But my actual question was, how to debug these.  You could
> cause similar problems in GNU Emacs, so how do you debug
> them?

Me?  I don't.  I only started hacking DVC a week or so ago :-)

But I just tried and had some success starting xemacs using the command
that the Makefile uses but taking off the -l and -f options, then
setting debug-on-error, then `load-file'ing dvc-build.el.

It seems that the problem is that (require 'cl) only sets up an autoload
for `defstruct' but this isn't operational in the presence of
-no-autoloads.

Can you try the following patch?

Regards,
Toby.

--- a/lisp/dvc-build.el
+++ b/lisp/dvc-build.el
@@ -144,6 +144,7 @@
 
 ;; Teach make-autoload how to handle define-dvc-unified-command.
 (require 'autoload)
+(load "cl-macs")
 (require 'dvc-unified)
 (defadvice make-autoload (before handle-define-dvc-unified-command activate)
   (if (eq (car-safe (ad-get-arg 0)) 'define-dvc-unified-command)
_______________________________________________
Dvc-dev mailing list
[email protected]
https://mail.gna.org/listinfo/dvc-dev

Reply via email to