Commits

Anonymous committed c6ad432

[PATCH] packages: Make comment-region work for xsl-mode <heb455ok.fsf@smtprelay.T-Online.De>

Comments (0)

Files changed (2)

+2003-02-16  Adrian Aichner  <adrian@xemacs.org>
+
+	* xslide.el (xsl-mode): Make comment-region work for xsl-mode.
+
 2003-01-13  Rendhalver [Peter Brown]  <rendhalver@xemacs.org>
 
 	* Makefile (VERSION): XEmacs package 1.04 released.
   ;; comment stuff
 ;;  (make-local-variable 'comment-column)
 ;;  (setq comment-column 32)
-;;  (make-local-variable 'comment-start)
-;;  (setq comment-start "; ")
-;;  (make-local-variable 'comment-end)
-;;  (setq comment-end "\n")
-;;  (make-local-variable 'comment-start-skip)
-;;  (setq comment-start-skip ";;* *")
+  (make-local-variable 'comment-start)
+  (setq comment-start "<!-- ")
+  (make-local-variable 'comment-end)
+  (setq comment-end " -->")
+  (make-local-variable 'comment-indent-function)
+  (setq comment-indent-function 'xsl-electric-tab)
+  (make-local-variable 'comment-start-skip)
+  ;; This will allow existing comments within declarations to be
+  ;; recognized.  [Does not work well with auto-fill, Lst/940205]
+  ;;(setq comment-start-skip "--[ \t]*")
+  (setq comment-start-skip "<!--[ \t]*")
   ;;
   ;; later we should move this into the xsl-mode-hook in
   ;; our local .emacs file
   (setq font-lock-defaults '(xsl-font-lock-keywords t))
   (setq font-lock-mark-block-function 'xsl-font-lock-mark-block-function)
   (make-local-variable 'indent-line-function)
-  (setq indent-line-function `xsl-electric-tab)
+  (setq indent-line-function 'xsl-electric-tab)
 ;;  (make-local-variable 'font-lock-defaults)
 ;;  (setq font-lock-defaults
 ;;	'(xsl-font-lock-keywords nil t ((?- . "w")