auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] Re: [AUCTeX-diffs] Changes to reftex/lisp/reftex-base


From: Ralf Angeli
Subject: Re: [AUCTeX-devel] Re: [AUCTeX-diffs] Changes to reftex/lisp/reftex-base.el, v
Date: Sun, 22 Jul 2007 12:19:08 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

* David Kastrup (2007-07-22) writes:

> Ralf Angeli <address@hidden> writes:
>
>> -              (find-file file)
>> +          (set-buffer (get-buffer-create file))
>>                (erase-buffer)
>
> NO!!!!!!  You can't just take a buffer that happens to have the same
> _buffer_ name as the file and kill it.  What were you thinking?  Ok,
> it is Sunday morning.
>
> If you start and end with a clean slate, probably the easiest thing to
> do is to wrap everything in
>
> (with-temp-file file
>    ...
> )

`generate-new-buffer' instead of `get-buffer-create' should work as
well, I guess.

-- 
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]