Commit 49bbf1b9 authored by Reiner Steib's avatar Reiner Steib

(reftex-access-parse-file): Do not risk destroying an existing buffer.

parent af849acd
2007-07-22 Ralf Angeli <angeli@caeruleus.net>
* textmodes/reftex.el (reftex-access-parse-file): Do not risk
destroying an existing buffer.
2007-07-22 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* startup.el (command-line-x-option-alist): Use x-handle-no-bitmap-icon.
......@@ -1331,10 +1331,8 @@ Valid actions are: readable, restore, read, kill, write."
(put docstruct-symbol 'modified nil)
(save-excursion
(if (file-writable-p file)
(progn
(with-temp-file file
(message "Writing parse file %s" (abbreviate-file-name file))
(set-buffer (get-buffer-create file))
(erase-buffer)
(insert (format ";; RefTeX parse info file\n"))
(insert (format ";; File: %s\n" master))
(insert (format ";; User: %s (%s)\n\n"
......@@ -1357,9 +1355,7 @@ Valid actions are: readable, restore, read, kill, write."
)
(t (print x))))
list))
(insert "))\n\n")
(write-region (point-min) (point-max) file nil 'silent)
(kill-buffer (current-buffer)))
(insert "))\n\n"))
(error "Cannot write to file %s" file)))
t))))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment