changeset 44970:5cc9ed7bc5b5

Cause `texinfo-insert-@node' to insert a carriage return after the comment line. This change does not affect normal use. On the one hand, it causes the command to insert a blank line when invoked on the line preceeding the @section line. This is a fault. On the other hand, it causes the command to format the output properly when you invoke the command on the same line as the @chapter or similar line. This is beneficial.
author Robert J. Chassell <bob@rattlesnake.com>
date Mon, 29 Apr 2002 12:59:26 +0000
parents aa05e5b0cabe
children 8e5e048eda6a
files lisp/textmodes/texinfo.el
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/texinfo.el	Mon Apr 29 12:45:41 2002 +0000
+++ b/lisp/textmodes/texinfo.el	Mon Apr 29 12:59:26 2002 +0000
@@ -808,11 +808,12 @@
 
 (defun texinfo-insert-@node ()
   "Insert the string `@node' in a Texinfo buffer.
-This also inserts on the following line a comment indicating
-the order of arguments to @node."
+Insert a comment on the following line indicating the order of
+arguments to @node.  Insert a carriage return after the comment line.
+Leave point after `@node'."
   (interactive)
-  (insert "@node \n@comment  node-name,  next,  previous,  up")
-  (forward-line -1)
+  (insert "@node \n@comment  node-name,  next,  previous,  up\n")
+  (forward-line -2)
   (forward-char 6))
 
 (defun texinfo-insert-@noindent ()