diff options
| author | Robert J. Chassell | 2002-04-29 12:59:26 +0000 |
|---|---|---|
| committer | Robert J. Chassell | 2002-04-29 12:59:26 +0000 |
| commit | 481b0db7f7890ba7c18d68992121b2f7e28323e3 (patch) | |
| tree | 506177eaecf1da5612e25036262bcccd6360cb86 | |
| parent | e18e407fbf1ab6f616d73506fe3eb12ba2b6835b (diff) | |
| download | emacs-481b0db7f7890ba7c18d68992121b2f7e28323e3.tar.gz emacs-481b0db7f7890ba7c18d68992121b2f7e28323e3.zip | |
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.
| -rw-r--r-- | lisp/textmodes/texinfo.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/textmodes/texinfo.el b/lisp/textmodes/texinfo.el index 6d963afe5b1..d31bae4a0dd 100644 --- a/lisp/textmodes/texinfo.el +++ b/lisp/textmodes/texinfo.el | |||
| @@ -808,11 +808,12 @@ The default is not to surround any existing words with the braces." | |||
| 808 | 808 | ||
| 809 | (defun texinfo-insert-@node () | 809 | (defun texinfo-insert-@node () |
| 810 | "Insert the string `@node' in a Texinfo buffer. | 810 | "Insert the string `@node' in a Texinfo buffer. |
| 811 | This also inserts on the following line a comment indicating | 811 | Insert a comment on the following line indicating the order of |
| 812 | the order of arguments to @node." | 812 | arguments to @node. Insert a carriage return after the comment line. |
| 813 | Leave point after `@node'." | ||
| 813 | (interactive) | 814 | (interactive) |
| 814 | (insert "@node \n@comment node-name, next, previous, up") | 815 | (insert "@node \n@comment node-name, next, previous, up\n") |
| 815 | (forward-line -1) | 816 | (forward-line -2) |
| 816 | (forward-char 6)) | 817 | (forward-char 6)) |
| 817 | 818 | ||
| 818 | (defun texinfo-insert-@noindent () | 819 | (defun texinfo-insert-@noindent () |