Michael Olson <[EMAIL PROTECTED]> writes:

> On a second look, this is the wrong solution, because the
> ~/.bazaar/ignore is not being created.  I'm still scratching my head
> as to why the buffer does not have an associated file name.

I debugged the problem to some extent.  I noticed that
`bzr-ignore-setup' is called 2 times.  I think this happens because
`bzr-ignore-setup' opens a file and `find-file-hook' already contains
dvc specific hooks.  Executing one of those hooks triggers the
(re)loading of `bzr.el' for the second time, because the `provide'
form is called after the call to `bzr-ignore-setup'.

How about this solution?

Please change the Subject header to a concise description of your patch.
Please describe your patch between the LOG-START and LOG-END markers:
<<LOG-START>>

* bzr.el: provide feature `bzr' before calling `bzr-ignore-setup',
  avoiding loading the file 2 times.

<<LOG-END>>



[VERSION] dvc-dev-bzr

Bazaar (bzr) 0.10.0

Emacs  : GNU Emacs 22.0.50.10 (i686-pc-linux-gnu, GTK+ Version 2.8.20)
 of 2006-10-15 on onosendai.org
-- 
Reclama i tuoi diritti digitali, elimina il DRM.  Approfondisci su
http://www.no1984.org
Reclaim your digital rights, eliminate DRM.  Learn more at
http://www.defectivebydesign.org/what_is_drm
=== modified file 'lisp/bzr.el'
--- lisp/bzr.el	2006-10-15 07:02:42 +0000
+++ lisp/bzr.el	2006-10-17 18:40:58 +0000
@@ -873,9 +873,10 @@
           (save-buffer)))
       (kill-buffer buffer))))
 
+(provide 'bzr)
+
 ;; Must remain toplevel, and should not be autoloaded.
 (when (executable-find bzr-executable)
   (bzr-ignore-setup))
 
-(provide 'bzr)
 ;;; bzr.el ends here

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

Reply via email to