diff --git a/lisp/textmodes/texinfmt.el b/lisp/textmodes/texinfmt.el index 60d6232a90e..d9cfffb3fd6 100644 --- a/lisp/textmodes/texinfmt.el +++ b/lisp/textmodes/texinfmt.el @@ -924,9 +924,8 @@ lower types.") (error "Duplicate node name: %s" name) (setq texinfo-node-names (cons (list tem) texinfo-node-names)))) (setq texinfo-footnote-number 0) - (or (bolp) - (insert ?\n)) - (insert "\^_\nFile: " texinfo-format-filename + ;; insert "\n\^_" unconditionally since this is what info is looking for + (insert "\n\^_\nFile: " texinfo-format-filename ", Node: " name) (if next (insert ", Next: " next))