]> git.eshelyaron.com Git - emacs.git/commitdiff
(texinfo-no-refill-regexp): Recognize @ifhtml, @html.
authorRichard M. Stallman <rms@gnu.org>
Sun, 16 Oct 1994 01:34:57 +0000 (01:34 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 16 Oct 1994 01:34:57 +0000 (01:34 +0000)
(texinfo-format-ifhtml, texinfo-format-html): New functions.
(texinfo-format-enddots): New function.

lisp/textmodes/texinfmt.el

index e287212dc240cd236941d29d67cb8ed1611a1dd7..6c770caec27e06b4c43e4cfba7899c30504220ae 100644 (file)
@@ -391,7 +391,7 @@ converted to Info is stored in a temporary buffer."
 ;;; Handle paragraph filling
 
 (defvar texinfo-no-refill-regexp
-  "^@\\(example\\|smallexample\\|lisp\\|smalllisp\\|display\\|format\\|flushleft\\|flushright\\|menu\\|titlepage\\|iftex\\|tex\\)"
+  "^@\\(example\\|smallexample\\|lisp\\|smalllisp\\|display\\|format\\|flushleft\\|flushright\\|menu\\|titlepage\\|iftex\\|ifhtml\\|tex\\|html\\)"
   "Regexp specifying environments in which paragraphs are not filled.")
 
 (defvar texinfo-part-of-para-regexp
@@ -1054,7 +1054,7 @@ lower types.")
     (insert ?\n)))
 
 \f
-;;; Space controling commands:  @. and @:   
+;;; Space controlling commands:  @. and @:   
 (put '\. 'texinfo-format 'texinfo-format-\.)
 (defun texinfo-format-\. ()
   (texinfo-discard-command)
@@ -1494,7 +1494,7 @@ Used by @refill indenting command to avoid indenting within lists, etc.")
     (texinfo-do-itemize (nth 1 stacktop))))
 
 \f
-;;; @ifinfo,  @iftex, @tex
+;;; @ifinfo,  @iftex, @tex, @ifhtml, @html
 
 (put 'ifinfo 'texinfo-format 'texinfo-discard-line)
 (put 'ifinfo 'texinfo-end 'texinfo-discard-command)
@@ -1505,12 +1505,24 @@ Used by @refill indenting command to avoid indenting within lists, etc.")
                  (progn (re-search-forward "@end iftex[ \t]*\n")
                         (point))))
 
+(put 'ifhtml 'texinfo-format 'texinfo-format-ifhtml)
+(defun texinfo-format-ifhtml ()
+  (delete-region texinfo-command-start
+                 (progn (re-search-forward "@end ifhtml[ \t]*\n")
+                        (point))))
+
 (put 'tex 'texinfo-format 'texinfo-format-tex)
 (defun texinfo-format-tex ()
   (delete-region texinfo-command-start
                  (progn (re-search-forward "@end tex[ \t]*\n")
                         (point))))
 
+(put 'html 'texinfo-format 'texinfo-format-html)
+(defun texinfo-format-html ()
+  (delete-region texinfo-command-start
+                 (progn (re-search-forward "@end html[ \t]*\n")
+                        (point))))
+
 \f
 ;;; @titlepage
 
@@ -1825,6 +1837,11 @@ If used within a line, follow `@minus' with braces."
   (texinfo-parse-arg-discard)
   (insert "..."))
 
+(put 'enddots 'texinfo-format 'texinfo-format-enddots)
+(defun texinfo-format-enddots ()
+  (texinfo-parse-arg-discard)
+  (insert "...."))
+
 \f
 ;;; Refilling and indenting:  @refill, @paragraphindent, @noindent