I thought I'd pass on this fix I've received from our emacs
maintainer, which removes the feature where buffers in modes such as
perl or python unexpectedly change to degraded nxml mode.
diff old.nxml-mode.el nxml-mode.el
1041,1052c1041,1053
< (condition-case err
< (save-excursion
< (save-restriction
< (widen)
< (save-match-data
< (nxml-with-invisible-motion
< (nxml-with-unmodifying-text-property-changes
< (if nxml-degraded
< (nxml-set-fontified start (point-max))
< (nxml-fontify1 start)))))))
< (error
< (nxml-degrade 'nxml-fontify err))))
---
> (and (eq major-mode 'nxml-mode)
> (condition-case err
> (save-excursion
> (save-restriction
> (widen)
> (save-match-data
> (nxml-with-invisible-motion
> (nxml-with-unmodifying-text-property-changes
> (if nxml-degraded
> (nxml-set-fontified start (point-max))
> (nxml-fontify1 start)))))))
> (error
> (nxml-degrade 'nxml-fontify err)))))
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/emacs-nxml-mode/
<*> To unsubscribe from this group, send an email to:
emacs-nxml-mode-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|