magnars / tagedit

A collection of paredit-like functions for editing in html-mode.
99 stars 10 forks source link

Error in nxml-mode? #20

Open arichiardi opened 5 years ago

arichiardi commented 5 years ago

Hi!

I have a problem with opening/closing/filling the tags automatically (I think it's one of the experimental features).

The error is:

Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
  insert(nil)
  te/update-mirror-from-master(nil)
  (if (te/is-self-closing master) (te/remove-closing-tag-and-mirror master) (te/update-mirror-from-master master))
  (if te/mirror (if (te/is-self-closing master) (te/remove-closing-tag-and-mirror master) (te/update-mirror-from-master master)) (if (te/is-self-closing master) nil (te/insert-closing-tag-with-mirror master)))
  (let ((master (te/current-tag))) (if te/mirror (if (te/is-self-closing master) (te/remove-closing-tag-and-mirror master) (te/update-mirror-from-master master)) (if (te/is-self-closing master) nil (te/insert-closing-tag-with-mirror master))))
  (save-excursion (goto-char (overlay-start te/master)) (let ((master (te/current-tag))) (if te/mirror (if (te/is-self-closing master) (te/remove-closing-tag-and-mirror master) (te/update-mirror-from-master master)) (if (te/is-self-closing master) nil (te/insert-closing-tag-with-mirror master)))))
  (let ((inhibit-modification-hooks t)) (save-excursion (goto-char (overlay-start te/master)) (let ((master (te/current-tag))) (if te/mirror (if (te/is-self-closing master) (te/remove-closing-tag-and-mirror master) (te/update-mirror-from-master master)) (if (te/is-self-closing master) nil (te/insert-closing-tag-with-mirror master))))))
  (progn (let ((inhibit-modification-hooks t)) (save-excursion (goto-char (overlay-start te/master)) (let ((master (te/current-tag))) (if te/mirror (if (te/is-self-closing master) (te/remove-closing-tag-and-mirror master) (te/update-mirror-from-master master)) (if (te/is-self-closing master) nil (te/insert-closing-tag-with-mirror master)))))))
  (if after\? (progn (let ((inhibit-modification-hooks t)) (save-excursion (goto-char (overlay-start te/master)) (let ((master (te/current-tag))) (if te/mirror (if (te/is-self-closing master) (te/remove-closing-tag-and-mirror master) (te/update-mirror-from-master master)) (if (te/is-self-closing master) nil (te/insert-closing-tag-with-mirror master))))))))
  te/on-master-modification(#<overlay from 262 to 263 in pom.xml> t 262 263 0)
  self-insert-command(1)
  funcall-interactively(self-insert-command 1)
  call-interactively(self-insert-command nil nil)
  command-execute(self-insert-command)

It seems like it is clashing with the some xml validation?

Do you know what I can do to understand why that is failing?