aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorRichard M. Stallman1994-10-16 01:34:57 +0000
committerRichard M. Stallman1994-10-16 01:34:57 +0000
commitc5928db2986bfeab1a5b4a0da029074327b7285a (patch)
tree31fb7fbbbdc2e44d486911dcf6ef345a07fd17dd /lisp/textmodes
parent35a474bb857b4858750c8d62023a891f774d2b90 (diff)
downloademacs-c5928db2986bfeab1a5b4a0da029074327b7285a.tar.gz
emacs-c5928db2986bfeab1a5b4a0da029074327b7285a.zip
(texinfo-no-refill-regexp): Recognize @ifhtml, @html.
(texinfo-format-ifhtml, texinfo-format-html): New functions. (texinfo-format-enddots): New function.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/texinfmt.el23
1 files changed, 20 insertions, 3 deletions
diff --git a/lisp/textmodes/texinfmt.el b/lisp/textmodes/texinfmt.el
index e287212dc24..6c770caec27 100644
--- a/lisp/textmodes/texinfmt.el
+++ b/lisp/textmodes/texinfmt.el
@@ -391,7 +391,7 @@ converted to Info is stored in a temporary buffer."
391;;; Handle paragraph filling 391;;; Handle paragraph filling
392 392
393(defvar texinfo-no-refill-regexp 393(defvar texinfo-no-refill-regexp
394 "^@\\(example\\|smallexample\\|lisp\\|smalllisp\\|display\\|format\\|flushleft\\|flushright\\|menu\\|titlepage\\|iftex\\|tex\\)" 394 "^@\\(example\\|smallexample\\|lisp\\|smalllisp\\|display\\|format\\|flushleft\\|flushright\\|menu\\|titlepage\\|iftex\\|ifhtml\\|tex\\|html\\)"
395 "Regexp specifying environments in which paragraphs are not filled.") 395 "Regexp specifying environments in which paragraphs are not filled.")
396 396
397(defvar texinfo-part-of-para-regexp 397(defvar texinfo-part-of-para-regexp
@@ -1054,7 +1054,7 @@ lower types.")
1054 (insert ?\n))) 1054 (insert ?\n)))
1055 1055
1056 1056
1057;;; Space controling commands: @. and @: 1057;;; Space controlling commands: @. and @:
1058(put '\. 'texinfo-format 'texinfo-format-\.) 1058(put '\. 'texinfo-format 'texinfo-format-\.)
1059(defun texinfo-format-\. () 1059(defun texinfo-format-\. ()
1060 (texinfo-discard-command) 1060 (texinfo-discard-command)
@@ -1494,7 +1494,7 @@ Used by @refill indenting command to avoid indenting within lists, etc.")
1494 (texinfo-do-itemize (nth 1 stacktop)))) 1494 (texinfo-do-itemize (nth 1 stacktop))))
1495 1495
1496 1496
1497;;; @ifinfo, @iftex, @tex 1497;;; @ifinfo, @iftex, @tex, @ifhtml, @html
1498 1498
1499(put 'ifinfo 'texinfo-format 'texinfo-discard-line) 1499(put 'ifinfo 'texinfo-format 'texinfo-discard-line)
1500(put 'ifinfo 'texinfo-end 'texinfo-discard-command) 1500(put 'ifinfo 'texinfo-end 'texinfo-discard-command)
@@ -1505,12 +1505,24 @@ Used by @refill indenting command to avoid indenting within lists, etc.")
1505 (progn (re-search-forward "@end iftex[ \t]*\n") 1505 (progn (re-search-forward "@end iftex[ \t]*\n")
1506 (point)))) 1506 (point))))
1507 1507
1508(put 'ifhtml 'texinfo-format 'texinfo-format-ifhtml)
1509(defun texinfo-format-ifhtml ()
1510 (delete-region texinfo-command-start
1511 (progn (re-search-forward "@end ifhtml[ \t]*\n")
1512 (point))))
1513
1508(put 'tex 'texinfo-format 'texinfo-format-tex) 1514(put 'tex 'texinfo-format 'texinfo-format-tex)
1509(defun texinfo-format-tex () 1515(defun texinfo-format-tex ()
1510 (delete-region texinfo-command-start 1516 (delete-region texinfo-command-start
1511 (progn (re-search-forward "@end tex[ \t]*\n") 1517 (progn (re-search-forward "@end tex[ \t]*\n")
1512 (point)))) 1518 (point))))
1513 1519
1520(put 'html 'texinfo-format 'texinfo-format-html)
1521(defun texinfo-format-html ()
1522 (delete-region texinfo-command-start
1523 (progn (re-search-forward "@end html[ \t]*\n")
1524 (point))))
1525
1514 1526
1515;;; @titlepage 1527;;; @titlepage
1516 1528
@@ -1825,6 +1837,11 @@ If used within a line, follow `@minus' with braces."
1825 (texinfo-parse-arg-discard) 1837 (texinfo-parse-arg-discard)
1826 (insert "...")) 1838 (insert "..."))
1827 1839
1840(put 'enddots 'texinfo-format 'texinfo-format-enddots)
1841(defun texinfo-format-enddots ()
1842 (texinfo-parse-arg-discard)
1843 (insert "...."))
1844
1828 1845
1829;;; Refilling and indenting: @refill, @paragraphindent, @noindent 1846;;; Refilling and indenting: @refill, @paragraphindent, @noindent
1830 1847