[Top][All Lists]

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

Re: [Orgmode] bugs in org-remember-backup-directory

From: Carsten Dominik
Subject: Re: [Orgmode] bugs in org-remember-backup-directory
Date: Thu, 30 Apr 2009 15:30:12 +0200

On Apr 26, 2009, at 12:08 AM, Samuel Wales wrote:

I noticed the following regarding

 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
    - 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


-- 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.

reply via email to

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