# HG changeset patch # User Richard M. Stallman # Date 869601984 0 # Node ID a5e6856e865e2ed1b64183a5dd15f34c5c74d883 # Parent 2ee8fcd35fac5ec0e5f4616b52330e64d208245e (dircategory): Delete obsolete mistaken `put'. (texinfo-end-direntry): Output extra newline. (texinfo-format-dircategory): Parse the arg and reinsert it by hand. diff -r 2ee8fcd35fac -r a5e6856e865e lisp/textmodes/texinfmt.el --- a/lisp/textmodes/texinfmt.el Tue Jul 22 16:35:49 1997 +0000 +++ b/lisp/textmodes/texinfmt.el Tue Jul 22 20:06:24 1997 +0000 @@ -2382,17 +2382,17 @@ (put 'direntry 'texinfo-end 'texinfo-end-direntry) (defun texinfo-end-direntry () (texinfo-discard-command) - (insert "END-INFO-DIR-ENTRY\n") + (insert "END-INFO-DIR-ENTRY\n\n") (texinfo-pop-stack 'direntry)) (put 'dircategory 'texinfo-format 'texinfo-format-dircategory) (defun texinfo-format-dircategory () - (texinfo-discard-command) - (delete-region (point) - (progn - (skip-chars-forward " ") - (point))) - (insert "INFO-DIR-SECTION ")) + (let ((str (texinfo-parse-arg-discard))) + (delete-region (point) + (progn + (skip-chars-forward " ") + (point))) + (insert "INFO-DIR-SECTION " str "\n"))) ;;; @cartouche @@ -3964,7 +3964,6 @@ (put 'shorttitlepage 'texinfo-format 'texinfo-discard-line-with-args) (put 'summarycontents 'texinfo-format 'texinfo-discard-line-with-args) (put 'input 'texinfo-format 'texinfo-discard-line-with-args) -(put 'dircategory 'texinfo-format 'texinfo-discard-line-with-args) ;;; Some commands cannot be handled