changeset 18908:a5e6856e865e

(dircategory): Delete obsolete mistaken `put'. (texinfo-end-direntry): Output extra newline. (texinfo-format-dircategory): Parse the arg and reinsert it by hand.
author Richard M. Stallman <rms@gnu.org>
date Tue, 22 Jul 1997 20:06:24 +0000
parents 2ee8fcd35fac
children e8c770e7f81d
files lisp/textmodes/texinfmt.el
diffstat 1 files changed, 7 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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