From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: bug: using remember can cause data corruption in other buffers Date: Wed, 25 Mar 2009 20:13:28 -0700 Message-ID: <20524da70903252013k59363813xc0e15d66efd0267b@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lmg2Q-00021s-IF for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 23:13:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lmg2L-0001yg-2Z for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 23:13:49 -0400 Received: from [199.232.76.173] (port=49714 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lmg2K-0001yU-V7 for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 23:13:44 -0400 Received: from rv-out-0708.google.com ([209.85.198.243]:47937) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lmg2K-0002OK-H9 for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 23:13:44 -0400 Received: by rv-out-0708.google.com with SMTP id f25so438897rvb.6 for ; Wed, 25 Mar 2009 20:13:43 -0700 (PDT) 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: emacs-orgmode@gnu.org 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. 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, get the fixed version and check the value of that variable. Thanks. -- Myalgic encephalomyelitis denialism is causing death (decades early; Jason et al. 2006) and severe suffering (worse than nearly all other diseases studied; e.g. Schweitzer et al. 1995) and grossly corrupting science. http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm