From: kaoru Date: Thu, 5 Sep 2002 09:35:25 +0000 (+0000) Subject: * ptexinfmt.el: discard @documentdescription. Support X-Git-Tag: elmo-mark-root~14 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=5b9da62087e64af9004904e57cef579590af4c41;p=elisp%2Fwanderlust.git * ptexinfmt.el: discard @documentdescription. Support @ifplaintext, @ifnotplaintext, @ifhtml. (texinfo-format-ifhtml, texinfo-format-ifplaintext): New function. --- diff --git a/utils/ptexinfmt.el b/utils/ptexinfmt.el index 57fc205..c7c586b 100644 --- a/utils/ptexinfmt.el +++ b/utils/ptexinfmt.el @@ -125,9 +125,10 @@ This is NO-NOTICE argument in `broken-facility'.") (put 'setchapterstyle 'texinfo-format 'texinfo-discard-line-with-args) ;;; Hardcopy and HTML (discard) -;; I18N +;; html (put 'documentlanguage 'texinfo-format 'texinfo-discard-line-with-args) (put 'documentencoding 'texinfo-format 'texinfo-discard-line-with-args) +(put 'documentdescription 'texinfo-format 'texinfo-discard-line-with-args) ;; size (put 'smallbook 'texinfo-format 'texinfo-discard-line) @@ -187,7 +188,7 @@ This is NO-NOTICE argument in `broken-facility'.") (texinfo-pop-stack 'direntry)) -;;; Block Enclosing and Conditional +;;; Block Enclosing ;; @detailmenu ... @end detailmenu (put 'detailmenu 'texinfo-format 'texinfo-discard-line) (put 'detailmenu 'texinfo-end 'texinfo-discard-command) @@ -200,33 +201,52 @@ This is NO-NOTICE argument in `broken-facility'.") (put 'smallformat 'texinfo-format 'texinfo-format-flushleft) (put 'smallformat 'texinfo-end 'texinfo-end-flushleft) -;; @ifnottex ... @end ifnottex +;; @cartouche ... @end cartouche +(put 'cartouche 'texinfo-format 'texinfo-discard-line) +(put 'cartouche 'texinfo-end 'texinfo-discard-command) + + +;;; Conditional +;; @ifnottex ... @end ifnottex (makeinfo 3.11 or later) (put 'ifnottex 'texinfo-format 'texinfo-discard-line) (put 'ifnottex 'texinfo-end 'texinfo-discard-command) -;; @ifnothtml ... @end ifnothtml +;; @ifnothtml ... @end ifnothtml (makeinfo 3.11 or later) (put 'ifnothtml 'texinfo-format 'texinfo-discard-line) (put 'ifnothtml 'texinfo-end 'texinfo-discard-command) -;; @ifnotinfo ... @end ifnotinfo +;; @ifnotplaintext ... @end ifnotplaintext (makeinfo 4.2 or later) +(put 'ifnotplaintext 'texinfo-format 'texinfo-discard-line) +(put 'ifnotplaintext 'texinfo-end 'texinfo-discard-command) + + +;; @ifnotinfo ... @end ifnotinfo (makeinfo 3.11 or later) (put 'ifnotinfo 'texinfo-format 'texinfo-format-ifnotinfo) -(put 'endifnotinfo 'texinfo-format 'texinfo-discard-line) (defun-maybe texinfo-format-ifnotinfo () (delete-region texinfo-command-start (progn (re-search-forward "@end ifnotinfo[ \t]*\n") (point)))) -;; @html ... @end html +;; @html ... @end html (makeinfo 3.11 or later) (put 'html 'texinfo-format 'texinfo-format-html) -(put 'endhtml 'texinfo-format 'texinfo-discard-line) (defun-maybe texinfo-format-html () (delete-region texinfo-command-start (progn (re-search-forward "@end html[ \t]*\n") (point)))) -;; @cartouche ... @end cartouche -(put 'cartouche 'texinfo-format 'texinfo-discard-line) -(put 'cartouche 'texinfo-end 'texinfo-discard-command) +;; @ifhtml ... @end ifhtml (makeinfo 3.8 or later) +(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)))) + +;; @ifplaintext ... @end ifplaintext (makeinfo 4.2 or later) +(put 'ifplaintext 'texinfo-format 'texinfo-format-ifplaintext) +(defun-maybe texinfo-format-ifplaintext () + (delete-region texinfo-command-start + (progn (re-search-forward "@end ifplaintext[ \t]*\n") + (point))))