comparison lisp/info.el @ 56991:53c840d7ea68

(Info-insert-dir): Fix temp buffer leak bug.
author Thien-Thi Nguyen <ttn@gnuvola.org>
date Wed, 08 Sep 2004 10:28:17 +0000
parents dca3dbca04cc
children 52649ba67540 cce1c0ee76ee
comparison
equal deleted inserted replaced
56990:8785d3b0ec48 56991:53c840d7ea68
1060 (insert "\^_\nFile: dir\tNode: " nodename "\n\n* Menu:\n\n")) 1060 (insert "\^_\nFile: dir\tNode: " nodename "\n\n* Menu:\n\n"))
1061 ;; Merge the text from the other buffer's menu 1061 ;; Merge the text from the other buffer's menu
1062 ;; into the menu in the like-named node in the main buffer. 1062 ;; into the menu in the like-named node in the main buffer.
1063 (apply 'insert-buffer-substring (cdr node)))) 1063 (apply 'insert-buffer-substring (cdr node))))
1064 (Info-dir-remove-duplicates) 1064 (Info-dir-remove-duplicates)
1065 ;; Kill all the buffers we just made. 1065 ;; Kill all the buffers we just made, including the special one excised.
1066 (mapc 'kill-buffer buffers) 1066 (mapc 'kill-buffer (cons buffer buffers))
1067 (goto-char (point-min)) 1067 (goto-char (point-min))
1068 (if problems 1068 (if problems
1069 (message "Composing main Info directory...problems encountered, see `*Messages*'") 1069 (message "Composing main Info directory...problems encountered, see `*Messages*'")
1070 (message "Composing main Info directory...done")) 1070 (message "Composing main Info directory...done"))
1071 (set (make-local-variable 'Info-dir-contents) (buffer-string)) 1071 (set (make-local-variable 'Info-dir-contents) (buffer-string))