Mercurial > emacs
changeset 82030:4618c4e4232a
*** empty log message ***
author | David Kastrup <dak@gnu.org> |
---|---|
date | Sun, 22 Jul 2007 19:54:08 +0000 |
parents | 57917570b513 |
children | 73ba7647c960 |
files | lisp/ChangeLog lisp/textmodes/reftex.el |
diffstat | 2 files changed, 9 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Sun Jul 22 19:46:04 2007 +0000 +++ b/lisp/ChangeLog Sun Jul 22 19:54:08 2007 +0000 @@ -1,3 +1,10 @@ +2007-07-22 Ralf Angeli <angeli@caeruleus.net> + + * textmodes/reftex.el (reftex-access-parse-file): Create parse + file in a way that does not interfere with recentf mode. + (reftex-access-parse-file): Do not risk destroying an existing + buffer. + 2007-07-22 Alexandre Julliard <julliard@winehq.org> * vc-git.el: New file.
--- a/lisp/textmodes/reftex.el Sun Jul 22 19:46:04 2007 +0000 +++ b/lisp/textmodes/reftex.el Sun Jul 22 19:54:08 2007 +0000 @@ -1331,10 +1331,8 @@ (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)) - (find-file 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 @@ ) (t (print x)))) list)) - (insert "))\n\n") - (save-buffer 0) - (kill-buffer (current-buffer))) + (insert "))\n\n")) (error "Cannot write to file %s" file))) t))))