aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love1999-08-04 19:18:55 +0000
committerDave Love1999-08-04 19:18:55 +0000
commitd4c89075d6f148eab61270c944f5439bbeabb99e (patch)
tree579707ab589bc933e25034141b9472f5fc7d1018
parenteee06d2659255f30b39726b8709fabee50c824c7 (diff)
downloademacs-d4c89075d6f148eab61270c944f5439bbeabb99e.tar.gz
emacs-d4c89075d6f148eab61270c944f5439bbeabb99e.zip
Require outline when compiling.
(sgml-mode-hook, html-mode-hook): Customize. (sgml-validate-command): Fix :version. (html-autoview-mode): Doc fix.
-rw-r--r--lisp/textmodes/sgml-mode.el21
1 files changed, 18 insertions, 3 deletions
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
index 365f478e3c8..a28a18535ab 100644
--- a/lisp/textmodes/sgml-mode.el
+++ b/lisp/textmodes/sgml-mode.el
@@ -32,7 +32,9 @@
32 32
33;;; Code: 33;;; Code:
34 34
35(eval-when-compile (require 'skeleton)) 35(eval-when-compile
36 (require 'skeleton)
37 (require 'outline))
36 38
37(defgroup sgml nil 39(defgroup sgml nil
38 "SGML editing mode" 40 "SGML editing mode"
@@ -46,6 +48,12 @@
46(put 'sgml-transformation 'variable-interactive 48(put 'sgml-transformation 'variable-interactive
47 "aTransformation function: ") 49 "aTransformation function: ")
48 50
51(defcustom sgml-mode-hook nil
52 "Hook run by command `sgml-mode'.
53`text-mode-hook' is run first."
54 :group 'sgml
55 :type 'hook)
56
49;; As long as Emacs' syntax can't be complemented with predicates to context 57;; As long as Emacs' syntax can't be complemented with predicates to context
50;; sensitively confirm the syntax of characters, we have to live with this 58;; sensitively confirm the syntax of characters, we have to live with this
51;; kludgy kind of tradeoff. 59;; kludgy kind of tradeoff.
@@ -188,7 +196,7 @@ This takes effect when first loading the sgml-mode library.")
188The file name of current buffer file name will be appended to this, 196The file name of current buffer file name will be appended to this,
189separated by a space." 197separated by a space."
190 :type 'string 198 :type 'string
191 :version "20.5" 199 :version "21.1"
192 :group 'sgml) 200 :group 'sgml)
193 201
194(defvar sgml-saved-validate-command nil 202(defvar sgml-saved-validate-command nil
@@ -822,6 +830,13 @@ See `sgml-tag-alist' for info about attributerules.."
822 830
823(provide 'sgml-mode) 831(provide 'sgml-mode)
824 832
833(defcustom html-mode-hook nil
834 "Hook run by command `html-mode'.
835`text-mode-hook' and `sgml-mode-hook' are run first."
836 :group 'sgml
837 :type 'hook
838 :options '(html-autoview-mode))
839
825(defvar html-quick-keys sgml-quick-keys 840(defvar html-quick-keys sgml-quick-keys
826 "Use C-c X combinations for quick insertion of frequent tags when non-nil. 841 "Use C-c X combinations for quick insertion of frequent tags when non-nil.
827This defaults to `sgml-quick-keys'. 842This defaults to `sgml-quick-keys'.
@@ -1237,7 +1252,7 @@ The third `match-string' will be the used in the menu.")
1237 (nreverse toc-index))) 1252 (nreverse toc-index)))
1238 1253
1239(defun html-autoview-mode (&optional arg) 1254(defun html-autoview-mode (&optional arg)
1240 "Toggle automatic viewing via `html-viewer' upon saving buffer. 1255 "Toggle automatic viewing via `browse-url-of-buffer' upon saving buffer.
1241With positive prefix ARG always turns viewing on, with negative ARG always off. 1256With positive prefix ARG always turns viewing on, with negative ARG always off.
1242Can be used as a value for `html-mode-hook'." 1257Can be used as a value for `html-mode-hook'."
1243 (interactive "P") 1258 (interactive "P")