# HG changeset patch # User Mike Williams # Date 1017658833 0 # Node ID f259c3857feadc4a6c5ce0909757086f9fc710e8 # Parent d89134e06ecaaef61b4f16e8f18491e2b6ccc767 Remove redundant remains of xml-lite-mode. diff -r d89134e06eca -r f259c3857fea lisp/textmodes/xml-lite.el --- a/lisp/textmodes/xml-lite.el Mon Apr 01 10:23:37 2002 +0000 +++ b/lisp/textmodes/xml-lite.el Mon Apr 01 11:00:33 2002 +0000 @@ -43,49 +43,6 @@ (require 'sgml-mode) -;; Variables - -(defgroup xml-lite nil - "Customizable variables for XML-Lite mode." - :group 'languages - ) - -(defcustom xml-lite-basic-offset 2 - "*Specifies the basic indentation level for `xml-lite-indent-line'." - :type 'integer - :group 'xml-lite - ) - -(defcustom xml-lite-electric-slash 'close - "*If non-nil, inserting a '/' after a '<' behaves electrically. -If set to `indent', typing ' (xml-lite-tag-end tag-info) - (xml-lite-tag-end (car context)))) - (setq context (cdr context))) + (> (xml-lite-tag-end tag-info) + (xml-lite-tag-end (car context)))) + (setq context (cdr context))) (cond @@ -289,9 +238,6 @@ (pp (save-excursion (xml-lite-get-context full))))) -;; Indenting - - ;; Editing shortcuts (defun xml-lite-insert-end-tag () @@ -340,43 +286,6 @@ (t (insert-char ?/ arg)))) - -;; Keymap - -(defvar xml-lite-mode-map - (let ((map (make-sparse-keymap))) - (define-key map "\C-c/" 'xml-lite-insert-end-tag) - (define-key map "\C-c\C-s" 'xml-lite-show-context) - (define-key map "/" 'xml-lite-slash) - map) - "Key bindings for `xml-lite-mode'.") - - -;; Minor mode - -;;;###autoload -(define-minor-mode xml-lite-mode - "Toggle `xml-lite-mode'. -With ARG, enable xml-lite-mode if and only if ARG is positive. - -xml-lite-mode provides indentation for XML tags. The value of -`xml-lite-basic-offset' determines the amount of indentation. - -Key bindings: -\\{xml-lite-mode-map}" - nil ; initial value - " XML" ; mode indicator - 'xml-lite-mode-map ; keymap - (if xml-lite-mode - (progn - (if (eq major-mode 'fundamental-mode) (sgml-mode)) - (set (make-local-variable 'sgml-xml-mode) t) - (set (make-local-variable 'xml-lite-orig-indent-line-function) - indent-line-function) - (set (make-local-variable 'indent-line-function) 'sgml-indent-line)) - (kill-local-variable 'sgml-xml-mode) - (setq indent-line-function xml-lite-orig-indent-line-function))) - (provide 'xml-lite) ;;; xml-lite.el ends here