aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-05-26 18:20:35 +0000
committerRichard M. Stallman1993-05-26 18:20:35 +0000
commitc7aa4667af788ed950c1c97cd0390324c8e1f3fd (patch)
tree1e1ce2c0a2692e689e4ad78adabe9454a5c23242
parent2b845a8c707203fad8cebf88bd397c5d9915c6c0 (diff)
downloademacs-c7aa4667af788ed950c1c97cd0390324c8e1f3fd.tar.gz
emacs-c7aa4667af788ed950c1c97cd0390324c8e1f3fd.zip
(sgml-validate): compile1 renamed to compile-internal.
(sgml-mode): Add autoload cookie.
-rw-r--r--lisp/textmodes/sgml-mode.el9
1 files changed, 4 insertions, 5 deletions
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
index 676edaf0519..d713d4577d5 100644
--- a/lisp/textmodes/sgml-mode.el
+++ b/lisp/textmodes/sgml-mode.el
@@ -64,6 +64,7 @@ separated by a space.")
64 (define-key sgml-mode-map "/" 'sgml-slash) 64 (define-key sgml-mode-map "/" 'sgml-slash)
65 (define-key sgml-mode-map "\C-c\C-v" 'sgml-validate)) 65 (define-key sgml-mode-map "\C-c\C-v" 'sgml-validate))
66 66
67;;;###autoload
67(defun sgml-mode () 68(defun sgml-mode ()
68 "Major mode for editing SGML. 69 "Major mode for editing SGML.
69Makes > display the matching <. Makes / display matching /. 70Makes > display the matching <. Makes / display matching /.
@@ -125,8 +126,7 @@ Any terminating > or / is not matched.")
125 (modify-syntax-entry ?\' "\"" sgml-mode-markup-syntax-table)) 126 (modify-syntax-entry ?\' "\"" sgml-mode-markup-syntax-table))
126 127
127(defconst sgml-angle-distance 4000 128(defconst sgml-angle-distance 4000
128 "*If non-nil, is the maximum distance to search for matching < 129 "*If non-nil, is the maximum distance to search for matching <.")
129when > is inserted.")
130 130
131(defun sgml-close-angle (arg) 131(defun sgml-close-angle (arg)
132 "Insert > and display matching <." 132 "Insert > and display matching <."
@@ -202,8 +202,7 @@ when > is inserted.")
202;;; I doubt that null end tags are used much for large elements, 202;;; I doubt that null end tags are used much for large elements,
203;;; so use a small distance here. 203;;; so use a small distance here.
204(defconst sgml-slash-distance 1000 204(defconst sgml-slash-distance 1000
205 "*If non-nil, is the maximum distance to search for matching / 205 "*If non-nil, is the maximum distance to search for matching /.")
206when / is inserted.")
207 206
208(defun sgml-slash (arg) 207(defun sgml-slash (arg)
209 "Insert / and display any previous matching /. 208 "Insert / and display any previous matching /.
@@ -263,6 +262,6 @@ and move to the line in the SGML document that caused it."
263 (and name 262 (and name
264 (file-name-nondirectory name)))))))) 263 (file-name-nondirectory name))))))))
265 (setq sgml-saved-validate-command command) 264 (setq sgml-saved-validate-command command)
266 (compile1 command "No more errors")) 265 (compile-internal command "No more errors"))
267 266
268;;; sgml-mode.el ends here 267;;; sgml-mode.el ends here