nxhtml lisp errors

Asked by isho

Hello,

I'm having a lot of trouble getting nxhtml to work properly for me, it keeps throwing Lisp errors like the one bellow. This one was triggered by an undo command but sometimes other simple editing commands like yank trigger similar errors.

I have gone through the setup process several times with similar results. This time I'm using a clean install of GNU Emacs 22.3.1 (i386-apple-darwin9.6.0, Carbon Version 1.6.0) of 2009-01-02 on seijiz.local

I'm editing php files with a .ctp extension (cakephp templates) in nxhtml-mumamo-mode. Any idea what's wrong?

Also, I'm using tramp, but it seems to be giving me the same problems when I edit files locally as well.

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  looking-at(nil)
  c-end-of-current-token()
  c-trim-found-types(1100 1101 1)
  c-after-change(1100 1101 1)
  primitive-undo(1 ((nil rear-nonsticky nil 1107 . 1108) (nil fontified nil 1107 . 1108) (nil fontified nil 1106 . 1107) (nil fontified nil 1105 . 1106) (nil fontified nil 1104 . 1105) (nil fontified nil 1103 . 1104) (nil fontified nil 1101 . 1103) (nil fontified nil 1100 . 1101) (nil fontified nil 1096 . 1100) (nil fontified nil 1094 . 1096) (nil fontified nil 1092 . 1094) (nil fontified nil 1083 . 1092) (nil fontified nil 1081 . 1083) (nil fontified nil 1079 . 1081) (nil fontified nil 1077 . 1079) (nil fontified nil 1071 . 1077) (nil fontified nil 1069 . 1071) (nil fontified nil 1064 . 1069) (nil fontified nil 1062 . 1064) (nil fontified nil 1057 . 1062) (nil fontified nil 1055 . 1057) (nil fontified nil 1053 . 1055) (nil fontified nil 1051 . 1053) (nil fontified nil 1044 . 1051) (nil fontified nil 1042 . 1044) (nil fontified nil 1036 . 1042) (nil fontified nil 1034 . 1036) (nil fontified nil 1028 . 1034) (nil fontified nil 1022 . 1028) (nil fontified nil 1020 . 1022) (nil fontified nil 1010 . 1020) (nil fontified nil 1009 . 1010) (nil fontified nil 1004 . 1009) (nil fontified nil 1002 . 1004) (nil fontified nil 998 . 1002) (nil fontified nil 996 . 998) (nil fontified nil 992 . 996) (nil fontified nil 991 . 992) (nil fontified nil 988 . 991) (nil fontified nil 987 . 988) (nil fontified nil 986 . 987) (nil fontified nil 985 . 986) (nil fontified nil 984 . 985) (nil fontified nil 983 . 984) (983 . 1108) nil (nil rear-nonsticky nil 982 . 983) (nil fontified nil 982 . 983) (nil fontified nil 981 . 982) (nil fontified nil 980 . 981) ...))
  undo-more(1)
  undo(nil)
  call-interactively(undo)

Question information

Language:
English Edit question
Status:
Solved
For:
nXhtml Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
isho (ishmael-riles) said :
#1

To verify that the errors don't have anything to do with tramp I tried editing a local file, a php file from a wordpress installation and got the following backtrace:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  looking-at(nil)
  c-beginning-of-current-token()
  c-trim-found-types(596 861 0)
  c-after-change(596 861 0)
  insert-for-yank-1(#("\n <p class=\"postmetadata\"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>\n </div>" 0 1 (fontified t) 1 6 (fontified t) 6 7 (fontified t face font-lock-function-name-face) 7 8 (fontified t) 8 13 (fontified t face font-lock-variable-name-face) 13 14 (fontified t) 14 28 (fontified t face font-lock-string-face) 28 29 (fontified t) 29 34 (fontified t face mumamo-border-face-in) 34 35 (fontified t) 35 38 (fontified t face font-lock-warning-face) 38 39 (fontified t) 39 44 (fontified t face default) 44 52 (fontified t face font-lock-string-face) 52 54 (fontified t) 54 58 (fontified t face font-lock-string-face) 58 60 (fontified t) 60 68 (fontified t face font-lock-string-face) 68 71 (fontified t) 71 73 (fontified t face mumamo-border-face-out) 73 84 (fontified t) 84 89 (fontified t face mumamo-border-face-in) 89 90 (fontified t) 90 93 (fontified t face font-lock-warning-face) 93 94 (fontified t) 94 103 (fontified t face default) 103 107 (fontified t face font-lock-string-face) 107 109 (fontified t) 109 111 (fontified t face mumamo-border-face-out) 111 114 (fontified t) 114 119 (fontified t face mumamo-border-face-in) 119 120 (fontified t) 120 124 (fontified t face font-lock-warning-face) 124 125 (fontified t) 125 129 (fontified t face font-lock-warning-face) 129 130 (fontified t) 130 135 (fontified t face default) 135 141 (fontified t face font-lock-string-face) 141 143 (fontified t) 143 145 (fontified t face font-lock-string-face) 145 147 (fontified t) 147 152 (fontified t face font-lock-string-face) 152 155 (fontified t) 155 157 (fontified t face mumamo-border-face-out) 157 159 (fontified t) 159 164 (fontified t face mumamo-border-face-in) 164 165 (fontified t) 165 173 (fontified t face font-lock-warning-face) 173 174 (fontified t) 174 179 (fontified t face font-lock-warning-face) 179 180 (fontified t) 180 185 (fontified t face default) 185 205 (fontified t face font-lock-string-face) 205 207 (fontified t) 207 225 (fontified t face font-lock-string-face) 225 227 (fontified t) 227 246 (fontified t face font-lock-string-face) 246 249 (fontified t) 249 251 (fontified t face mumamo-border-face-out) 251 253 (fontified t) 253 254 (fontified t face font-lock-function-name-face) 254 255 (fontified t) 255 256 (fontified t) 256 261 (fontified t) 261 264 (fontified t face font-lock-function-name-face) 264 265 (fontified t)))
  insert-for-yank(#("\n <p class=\"postmetadata\"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>\n </div>" 0 1 (fontified t) 1 6 (fontified t) 6 7 (fontified t face font-lock-function-name-face) 7 8 (fontified t) 8 13 (fontified t face font-lock-variable-name-face) 13 14 (fontified t) 14 28 (fontified t face font-lock-string-face) 28 29 (fontified t) 29 34 (fontified t face mumamo-border-face-in) 34 35 (fontified t) 35 38 (fontified t face font-lock-warning-face) 38 39 (fontified t) 39 44 (fontified t face default) 44 52 (fontified t face font-lock-string-face) 52 54 (fontified t) 54 58 (fontified t face font-lock-string-face) 58 60 (fontified t) 60 68 (fontified t face font-lock-string-face) 68 71 (fontified t) 71 73 (fontified t face mumamo-border-face-out) 73 84 (fontified t) 84 89 (fontified t face mumamo-border-face-in) 89 90 (fontified t) 90 93 (fontified t face font-lock-warning-face) 93 94 (fontified t) 94 103 (fontified t face default) 103 107 (fontified t face font-lock-string-face) 107 109 (fontified t) 109 111 (fontified t face mumamo-border-face-out) 111 114 (fontified t) 114 119 (fontified t face mumamo-border-face-in) 119 120 (fontified t) 120 124 (fontified t face font-lock-warning-face) 124 125 (fontified t) 125 129 (fontified t face font-lock-warning-face) 129 130 (fontified t) 130 135 (fontified t face default) 135 141 (fontified t face font-lock-string-face) 141 143 (fontified t) 143 145 (fontified t face font-lock-string-face) 145 147 (fontified t) 147 152 (fontified t face font-lock-string-face) 152 155 (fontified t) 155 157 (fontified t face mumamo-border-face-out) 157 159 (fontified t) 159 164 (fontified t face mumamo-border-face-in) 164 165 (fontified t) 165 173 (fontified t face font-lock-warning-face) 173 174 (fontified t) 174 179 (fontified t face font-lock-warning-face) 179 180 (fontified t) 180 185 (fontified t face default) 185 205 (fontified t face font-lock-string-face) 205 207 (fontified t) 207 225 (fontified t face font-lock-string-face) 225 227 (fontified t) 227 246 (fontified t face font-lock-string-face) 246 249 (fontified t) 249 251 (fontified t face mumamo-border-face-out) 251 253 (fontified t) 253 254 (fontified t face font-lock-function-name-face) 254 255 (fontified t) 255 256 (fontified t) 256 261 (fontified t) 261 264 (fontified t face font-lock-function-name-face) 264 265 (fontified t)))
  yank(nil)
  call-interactively(yank)

Revision history for this message
isho (ishmael-riles) said :
#2

I narrowed the problem down a bit further.

If I kill and then yank a section of text that includes a whole <?php ?> section the error is thrown. Similarly an error is thrown if I kill and then undo a whole <?php ?> section. If it's just the beginning or end of the section no errors are thrown.

Revision history for this message
lborgman (lennart-borgman) said :
#3

This is solved, see the linked bug report.

Revision history for this message
lborgman (lennart-borgman) said :
#4

Solved, see linked bug report