aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2008-01-16 16:17:53 +0000
committerStefan Monnier2008-01-16 16:17:53 +0000
commit7d7d1bb69d0d5d2d1df13947a66be1b17ee120bf (patch)
treed2ccbe30c0ab9bd6c5fe76d564ec9252274c8349
parentc7972fb159dbe7ea591132e04b17f346f0eb71e1 (diff)
downloademacs-7d7d1bb69d0d5d2d1df13947a66be1b17ee120bf.tar.gz
emacs-7d7d1bb69d0d5d2d1df13947a66be1b17ee120bf.zip
(nxml-mode): Use mode-line-process to indicate the use of degraded mode.
(nxml-degrade): Don't change mode-name.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/nxml/nxml-mode.el4
2 files changed, 6 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 73bfeb84b24..d426c72a4b7 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12008-01-16 Stefan Monnier <monnier@iro.umontreal.ca> 12008-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * nxml/nxml-mode.el (nxml-mode): Use mode-line-process to indicate
4 the use of degraded mode.
5 (nxml-degrade): Don't change mode-name.
6
3 * nxml/rng-nxml.el (rng-nxml-mode-init): 7 * nxml/rng-nxml.el (rng-nxml-mode-init):
4 Don't overwrite mode-line-process. 8 Don't overwrite mode-line-process.
5 9
diff --git a/lisp/nxml/nxml-mode.el b/lisp/nxml/nxml-mode.el
index aa6ac078400..11fadedd531 100644
--- a/lisp/nxml/nxml-mode.el
+++ b/lisp/nxml/nxml-mode.el
@@ -510,6 +510,7 @@ Many aspects this mode can be customized using
510 (kill-all-local-variables) 510 (kill-all-local-variables)
511 (setq major-mode 'nxml-mode) 511 (setq major-mode 'nxml-mode)
512 (setq mode-name "nXML") 512 (setq mode-name "nXML")
513 (set (make-local-variable 'mode-line-process) '((nxml-degraded "/degraded")))
513 ;; We'll determine the fill prefix ourselves 514 ;; We'll determine the fill prefix ourselves
514 (make-local-variable 'adaptive-fill-mode) 515 (make-local-variable 'adaptive-fill-mode)
515 (setq adaptive-fill-mode nil) 516 (setq adaptive-fill-mode nil)
@@ -573,8 +574,7 @@ Many aspects this mode can be customized using
573 (nxml-with-unmodifying-text-property-changes 574 (nxml-with-unmodifying-text-property-changes
574 (nxml-clear-face (point-min) (point-max)) 575 (nxml-clear-face (point-min) (point-max))
575 (nxml-set-fontified (point-min) (point-max)) 576 (nxml-set-fontified (point-min) (point-max))
576 (nxml-clear-inside (point-min) (point-max))) 577 (nxml-clear-inside (point-min) (point-max))))))
577 (setq mode-name "nXML/degraded"))))
578 578
579;;; Change management 579;;; Change management
580 580