Adrian Aichner <aichner(a)ecf.teradyne.com> writes:
Yoshiki> You only need to add just these two lines to handle
Yoshiki> @ifnottex. It's semantically equivalent to @ifinfo when
Yoshiki> formatting Info.
Yoshiki> (put 'ifnottex 'texinfo-format 'texinfo-discard-line)
Yoshiki> (put 'ifnottex 'texinfo-end 'texinfo-discard-command)
Can you send a patch to xemacs-patches?
I will be happy to test it.
rms said, the patch to add @ifnottex handling is adding a
new feature and it won't go into 20.5.
That means syncing with 20.5 will not have @ifnottex
handling. So there's no reason waiting for 20.5 w.r.t
@ifnottex. Here's the patch against texinfmt.el
1999-11-25 Yoshiki Hayashi <t90553(a)mail.ecc.u-tokyo.ac.jp>
* texinfmt.el: Handle @ifnottex.
Index: texinfmt.el
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs-packages/wp/texinfo/texinfmt.el,v
retrieving revision 1.4
diff -u -r1.4 texinfmt.el
--- texinfmt.el 1998/07/10 09:30:38 1.4
+++ texinfmt.el 1999/11/25 08:52:34
@@ -2093,7 +2093,7 @@
(setq fill-column existing-fill-column)))
-;;; @ifinfo, @iftex, @tex, @ifhtml, @html
+;;; @ifinfo, @iftex, @tex, @ifhtml, @html, @ifnottex
(put 'ifinfo 'texinfo-format 'texinfo-discard-line)
(put 'ifinfo 'texinfo-end 'texinfo-discard-command)
@@ -2121,6 +2121,9 @@
(delete-region texinfo-command-start
(progn (re-search-forward "@end html[ \t]*\n")
(point))))
+
+(put 'ifnottex 'texinfo-format 'texinfo-discard-line)
+(put 'ifnottex 'texinfo-end 'texinfo-discard-command)
;;; @titlepage
--
Yoshiki Hayashi