From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: bugs in org-remember-backup-directory Date: Sat, 25 Apr 2009 15:08:01 -0700 Message-ID: <20524da70904251508w523010efj6a07e25f1cbb03fa@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 1Lxq2s-0001wY-Us for emacs-orgmode@gnu.org; Sat, 25 Apr 2009 18:08:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lxq2o-0001tC-U4 for emacs-orgmode@gnu.org; Sat, 25 Apr 2009 18:08:26 -0400 Received: from [199.232.76.173] (port=52004 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lxq2o-0001t8-Pn for emacs-orgmode@gnu.org; Sat, 25 Apr 2009 18:08:22 -0400 Received: from wa-out-1112.google.com ([209.85.146.179]:29329) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lxq2o-0007TD-8f for emacs-orgmode@gnu.org; Sat, 25 Apr 2009 18:08:22 -0400 Received: by wa-out-1112.google.com with SMTP id m33so572471wag.26 for ; Sat, 25 Apr 2009 15:08:21 -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 I noticed the following regarding org-remember-backup-directory: 1) auto-saving does not save contents - solution: put (auto-save-mode 1) before or after (not sure which) the call to org-set-local in the following lines in org-remember: # (expand-file-name # (format-time-string "remember-%Y-%m-%d-%H-%M-%S") # org-remember-backup-directory)) # (save-buffer) # (org-set-local 'auto-save-visited-file-name t)) # (when (save-excursion 2) save-buffer is called before there are any contents - this causes files without useful content to stick around in the dir if the buffer is killed or something. - solution: don't save the buffer; let auto-saving do that work. will this work? 3) if you have auto-save-file-name-transforms set, auto-saving is done according to that variable instead of saving in place. - solution: is this an emacs bug? i am not sure. the auto-saving should be done in place, saving in org-remember-backup-directory and not saving in the place where the transforms variable tells it to save. perhaps each user can kludge transforms or perhaps emacs needs fixing? i have reached debugging ability limit. Thanks. -- Myalgic encephalomyelitis denialism is causing death and severe suffering worse than MS. Greed is corrupting science into foul nonsense. Anybody can get the disease at any time permanently. Do science and justice matter to you? http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm