From: Eli Zaretskii Date: Sat, 27 Oct 2001 14:57:00 +0000 (+0000) Subject: No change. Error by bob, not eliz, logging change for wrong file. X-Git-Tag: ttn-vms-21-2-B4~19108 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=25cacfa7f0dab73ab4c42b904ef2d8f7c180f482;p=emacs.git No change. Error by bob, not eliz, logging change for wrong file. --- diff --git a/lisp/textmodes/texinfmt.el b/lisp/textmodes/texinfmt.el index 01f49921b4c..1de77246b28 100644 --- a/lisp/textmodes/texinfmt.el +++ b/lisp/textmodes/texinfmt.el @@ -2129,7 +2129,7 @@ This command is executed when texinfmt sees @item inside @multitable." (setq fill-column existing-fill-column))) -;;; @ifinfo, @iftex, @tex, @ifhtml, @html, @ifnottex +;;; @ifinfo, @iftex, @tex, @ifhtml, @html, @ifnottex, @ifnotinfo, @ifnothtml (put 'ifinfo 'texinfo-format 'texinfo-discard-line) (put 'ifinfo 'texinfo-end 'texinfo-discard-command) @@ -2158,9 +2158,18 @@ This command is executed when texinfmt sees @item inside @multitable." (progn (re-search-forward "@end html[ \t]*\n") (point)))) +(put 'ifnotinfo 'texinfo-format 'texinfo-format-ifnotinfo) +(defun texinfo-format-ifnotinfo () + (delete-region texinfo-command-start + (progn (re-search-forward "@end ifnotinfo[ \t]*\n") + (point)))) + (put 'ifnottex 'texinfo-format 'texinfo-discard-line) (put 'ifnottex 'texinfo-end 'texinfo-discard-command) +(put 'ifnothtml 'texinfo-format 'texinfo-discard-line) +(put 'ifnothtml 'texinfo-end 'texinfo-discard-command) + ;;; @titlepage