1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-11 16:08:13 +00:00

(Info-insert-dir): Insert newlines before rather than

after nodes copied from other files, for consistency.
This commit is contained in:
Richard M. Stallman 1994-09-19 05:11:40 +00:00
parent f3ca341e3c
commit 25869acf6e

View File

@ -475,14 +475,14 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself."
nil t)
(progn
(search-forward "\n\^_" nil 'move)
(beginning-of-line))
(beginning-of-line)
(insert "\n"))
;; If none exists, add one.
(goto-char (point-max))
(insert "\^_\nFile: dir\tNode: " nodename "\n\n* Menu:\n\n"))
;; Merge the text from the other buffer's menu
;; into the menu in the like-named node in the main buffer.
(apply 'insert-buffer-substring (cdr (car nodes)))
(insert "\n"))
(apply 'insert-buffer-substring (cdr (car nodes))))
(setq nodes (cdr nodes)))
;; Kill all the buffers we just made.
(while buffers