From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: bugs in org-remember-backup-directory Date: Thu, 30 Apr 2009 15:30:12 +0200 Message-ID: References: <20524da70904251508w523010efj6a07e25f1cbb03fa@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 1M0eKQ-00048D-T4 for emacs-orgmode@gnu.org; Sun, 03 May 2009 12:14:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M0eKM-00045x-4A for emacs-orgmode@gnu.org; Sun, 03 May 2009 12:14:10 -0400 Received: from [199.232.76.173] (port=45923 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M0eKM-00045t-1G for emacs-orgmode@gnu.org; Sun, 03 May 2009 12:14:06 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]:50067) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M0eKL-0002RR-OQ for emacs-orgmode@gnu.org; Sun, 03 May 2009 12:14:05 -0400 Received: by mail-ew0-f162.google.com with SMTP id 6so3488352ewy.42 for ; Sun, 03 May 2009 09:14:05 -0700 (PDT) In-Reply-To: <20524da70904251508w523010efj6a07e25f1cbb03fa@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 Apr 26, 2009, at 12:08 AM, Samuel Wales wrote: > 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 Done. > > 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? Usually, the template expansion will have filled in stuff like links and initial contents, so I would prefer to keep the save-buffer here and let the user deal with the extra files. > 3) if you have auto-save-file-name-transforms set, > auto-saving is done according to that variable instead > of saving in place. I am now turning that variable off, locally in the remember buffer. Does that fix the problem? - Carsten > - 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 > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode