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>>
Make a couple of tla errors go away.

* lisp/tla.el (tla--ewoc-delete): Make an error go away.
  (tla--revisions-parse-list): Ignore bad data entries so that they don't
  cause errors to be thrown.

<<LOG-END>>


[VERSION] dvc-dev-bzr

bzr (bazaar-ng) 0.8.2

Emacs  : GNU Emacs 22.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.8.17)
 of 2006-06-07 on tuxtanker

-- 
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: Emacs Lisp, text markup, protocols -- Jabber: mwolson_at_hcoop.net
  /` |\ | | | IRC: freenode.net/mwolson: #emacs, #hcoop, #muse, #PurdueLUG
 |_] | \| |_| Projects: Emacs, Muse, ERC, EMMS, Planner, ErBot, DVC

Attachment: pgpfbYA0ZkwTT.pgp
Description: PGP signature

=== modified file 'lisp/tla.el'
--- lisp/tla.el	
+++ lisp/tla.el	
@@ -215,8 +215,9 @@
 
 (defun tla--ewoc-delete (cookie elem)
   "Remove element from COOKIE the element ELEM."
-  (ewoc-filter cookie
-               '(lambda (x) (not (eq x (ewoc-data elem))))))
+  (when elem
+    (ewoc-filter cookie
+                 '(lambda (x) (not (eq x (ewoc-data elem)))))))
 
 (defun tla--insert-right-justified (string count &optional face)
   "Insert a string with a right-justification.
@@ -4099,7 +4100,9 @@
                 )))
           (if last-node
               (setq last-node
-                    (ewoc-enter-after cookie last-node elem))
+                    (condition-case nil
+                        (ewoc-enter-after cookie last-node elem)
+                      (error nil)))     ; ignore bad data
             (ewoc-enter-last cookie elem)))
         (beginning-of-line))
       (kill-buffer (current-buffer)))

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

Reply via email to