From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: bug: using remember can cause data corruption in other buffers Date: Thu, 26 Mar 2009 04:40:18 +0100 Message-ID: <9F6B930E-B6C7-4C51-AEFA-B3BAA6E318FF@gmail.com> References: <20524da70903252013k59363813xc0e15d66efd0267b@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LmgSB-000753-3s for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 23:40:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LmgS6-00070U-Fb for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 23:40:26 -0400 Received: from [199.232.76.173] (port=53197 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LmgS6-00070F-9T for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 23:40:22 -0400 Received: from mail-ew0-f160.google.com ([209.85.219.160]:43639) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LmgS5-0004Fv-SM for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 23:40:22 -0400 Received: by ewy4 with SMTP id 4so390028ewy.42 for ; Wed, 25 Mar 2009 20:40:20 -0700 (PDT) In-Reply-To: <20524da70903252013k59363813xc0e15d66efd0267b@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Samuel Wales Cc: emacs-orgmode@gnu.org On Mar 26, 2009, at 4:13 AM, Samuel Wales wrote: > Hi Carsten, > > The following form in org-remember.el appears to set the global value. > > (setq auto-save-visited-file-name t) > > This is the right thing for remember buffers, but it should be > buffer-local. It could lead to data corruption in other buffers if > you make changes that you don't intend to be permanent. > > I think that > > (set (make-variable-buffer-local ...) t) > > would fix it. Applied, thanks. > > This might or might not also fix a bug where emacs thinks that another > process is locking the file that is currently being edited. I don't > know why. > > Once this is fixed, I recommend that everybody who used git within the > last day or so, and I think set the remember directory Yes, this wil only have caused a problem for people who actually set the backup directory. Thank you. - Carsten