1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-23 10:34:07 +00:00

(Info-insert-dir): Fix temp buffer leak bug.

This commit is contained in:
Thien-Thi Nguyen 2004-09-08 10:28:17 +00:00
parent 2fdc1ceebf
commit dc9bec220d

View File

@ -1062,8 +1062,8 @@ a case-insensitive match is tried."
;; into the menu in the like-named node in the main buffer.
(apply 'insert-buffer-substring (cdr node))))
(Info-dir-remove-duplicates)
;; Kill all the buffers we just made.
(mapc 'kill-buffer buffers)
;; Kill all the buffers we just made, including the special one excised.
(mapc 'kill-buffer (cons buffer buffers))
(goto-char (point-min))
(if problems
(message "Composing main Info directory...problems encountered, see `*Messages*'")