From 63fedde0091c755ed3166b516f0d7dccd3905ada Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Mon, 1 Apr 2002 11:00:33 +0000 Subject: [PATCH] Remove redundant remains of xml-lite-mode. --- lisp/textmodes/xml-lite.el | 101 ++----------------------------------- 1 file changed, 5 insertions(+), 96 deletions(-) diff --git a/lisp/textmodes/xml-lite.el b/lisp/textmodes/xml-lite.el index ccab39365f4..65394aea952 100644 --- a/lisp/textmodes/xml-lite.el +++ b/lisp/textmodes/xml-lite.el @@ -42,49 +42,6 @@ (eval-when-compile (require 'cl)) (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 @@ -288,9 +237,6 @@ If FULL is non-nil, parse back to the beginning of the buffer." (with-output-to-temp-buffer "*XML Context*" (pp (save-excursion (xml-lite-get-context full))))) - -;; Indenting - ;; Editing shortcuts @@ -340,43 +286,6 @@ Behaves electrically if `xml-lite-electric-slash' is non-nil." (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 -- 2.39.2