aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2002-10-29 07:53:08 +0000
committerJuanma Barranquero2002-10-29 07:53:08 +0000
commit2b6a2afe1dbd4c4994106c284be3fa0cb976f215 (patch)
treeaceb24376234ad20285e5f850fff49b038c90e2e
parente1a68e89f4b5e39b8de31dd1d63753eb131f57d3 (diff)
downloademacs-2b6a2afe1dbd4c4994106c284be3fa0cb976f215.tar.gz
emacs-2b6a2afe1dbd4c4994106c284be3fa0cb976f215.zip
(texinfo-format-ifplaintext): New function.
(ifplaintext, ifnotplaintext) (afourpaper, afivepaper, afourlatex, afourwide) (documentlanguage, documentencoding): New aliases.
-rw-r--r--lisp/textmodes/texinfmt.el20
1 files changed, 19 insertions, 1 deletions
diff --git a/lisp/textmodes/texinfmt.el b/lisp/textmodes/texinfmt.el
index 1de77246b28..eab3405c8c3 100644
--- a/lisp/textmodes/texinfmt.el
+++ b/lisp/textmodes/texinfmt.el
@@ -2129,7 +2129,8 @@ This command is executed when texinfmt sees @item inside @multitable."
2129 (setq fill-column existing-fill-column))) 2129 (setq fill-column existing-fill-column)))
2130 2130
2131 2131
2132;;; @ifinfo, @iftex, @tex, @ifhtml, @html, @ifnottex, @ifnotinfo, @ifnothtml 2132;;; @ifinfo, @iftex, @tex, @ifhtml, @html, @ifplaintext
2133;; @ifnottex, @ifnotinfo, @ifnothtml, @ifnotplaintext
2133 2134
2134(put 'ifinfo 'texinfo-format 'texinfo-discard-line) 2135(put 'ifinfo 'texinfo-format 'texinfo-discard-line)
2135(put 'ifinfo 'texinfo-end 'texinfo-discard-command) 2136(put 'ifinfo 'texinfo-end 'texinfo-discard-command)
@@ -2146,6 +2147,12 @@ This command is executed when texinfmt sees @item inside @multitable."
2146 (progn (re-search-forward "@end ifhtml[ \t]*\n") 2147 (progn (re-search-forward "@end ifhtml[ \t]*\n")
2147 (point)))) 2148 (point))))
2148 2149
2150(put 'ifplaintext 'texinfo-format 'texinfo-format-ifplaintext)
2151(defun texinfo-format-ifplaintext ()
2152 (delete-region texinfo-command-start
2153 (progn (re-search-forward "@end ifplaintext[ \t]*\n")
2154 (point))))
2155
2149(put 'tex 'texinfo-format 'texinfo-format-tex) 2156(put 'tex 'texinfo-format 'texinfo-format-tex)
2150(defun texinfo-format-tex () 2157(defun texinfo-format-tex ()
2151 (delete-region texinfo-command-start 2158 (delete-region texinfo-command-start
@@ -2164,6 +2171,9 @@ This command is executed when texinfmt sees @item inside @multitable."
2164 (progn (re-search-forward "@end ifnotinfo[ \t]*\n") 2171 (progn (re-search-forward "@end ifnotinfo[ \t]*\n")
2165 (point)))) 2172 (point))))
2166 2173
2174(put 'ifnotplaintext 'texinfo-format 'texinfo-discard-line)
2175(put 'ifnotplaintext 'texinfo-end 'texinfo-discard-command)
2176
2167(put 'ifnottex 'texinfo-format 'texinfo-discard-line) 2177(put 'ifnottex 'texinfo-format 'texinfo-discard-line)
2168(put 'ifnottex 'texinfo-end 'texinfo-discard-command) 2178(put 'ifnottex 'texinfo-end 'texinfo-discard-command)
2169 2179
@@ -4084,6 +4094,10 @@ the @ifeq command."
4084(put 'smallbreak 'texinfo-format 'texinfo-discard-line) 4094(put 'smallbreak 'texinfo-format 'texinfo-discard-line)
4085(put 'medbreak 'texinfo-format 'texinfo-discard-line) 4095(put 'medbreak 'texinfo-format 'texinfo-discard-line)
4086(put 'bigbreak 'texinfo-format 'texinfo-discard-line) 4096(put 'bigbreak 'texinfo-format 'texinfo-discard-line)
4097(put 'afourpaper 'texinfo-format 'texinfo-discard-line)
4098(put 'afivepaper 'texinoo-format 'texinfo-discard-line)
4099(put 'afourlatex 'texinoo-format 'texinfo-discard-line)
4100(put 'afourwide 'texinoo-format 'texinfo-discard-line)
4087 4101
4088 4102
4089;;; These noop commands discard the rest of the line. 4103;;; These noop commands discard the rest of the line.
@@ -4126,6 +4140,10 @@ the @ifeq command."
4126(put 'summarycontents 'texinfo-format 'texinfo-discard-line-with-args) 4140(put 'summarycontents 'texinfo-format 'texinfo-discard-line-with-args)
4127(put 'input 'texinfo-format 'texinfo-discard-line-with-args) 4141(put 'input 'texinfo-format 'texinfo-discard-line-with-args)
4128 4142
4143(put 'documentlanguage 'texinfo-format 'texinfo-discard-line-with-args)
4144(put 'documentencoding 'texinfo-format 'texinfo-discard-line-with-args)
4145
4146
4129 4147
4130;;; Some commands cannot be handled 4148;;; Some commands cannot be handled
4131 4149