emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ian Garmaise <ian.g@phorixsol.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: error when archiving two subtrees in a row
Date: Thu, 17 Dec 2020 13:37:07 -0500	[thread overview]
Message-ID: <CALWEx6XztXZH+=khNhNfxf_aQQqKNy7cQr8dBDfABWRL_i4-mQ@mail.gmail.com> (raw)
In-Reply-To: <877dphq9gt.fsf@kyleam.com>

[-- Attachment #1: Type: text/plain, Size: 1560 bytes --]

I actually hadn't used the archive command in quite a while, so not sure
when the behavior in my situation changed. It does make sense though that
it might have something to do with the file being stored in a dropbox
folder.

Anyway,

(setq org-archive-subtree-save-file-p nil)

in the init file fixes it.

Thanks Kyle!


On Thu, Dec 17, 2020 at 12:37 AM Kyle Meyer <kyle@kyleam.com> wrote:

> Ian Garmaise writes:
>
> > When I archive one subtree (C-c $), the first one succeeds.
> > The second archive operation fails with a permission denied error as
> shown
> > in the messages buffer:
> [...]
> > Noticed this yesterday.  Updated org and all packages, then tried it
> again
> > today, was able to reproduce it easily
>
> Hmm, was that an update from 9.3.* or earlier?  9.4 came with a new
> option org-archive-subtree-save-file-p.  With the default value, the
> file is saved when archiving from an Org buffer but not the agenda.
> Before 9.4 [*], the file was never saved, so you could set
> org-archive-subtree-save-file-p to nil to restore the pre-9.4 behavior.
>
> That should sidestep the issue, though I don't know why you're hitting.
> I'm guessing you only see it with dropbox files?
>
> [*] Going farther back, the behavior was to always save.  That changed
>     in 9.1.4 63f6e851b (Do not save target buffer after archiving
>     subtree, 2017-11-25).
>


-- 
=====
Ian Garmaise
Consultant
Phorix Solutions Group
ian.g@phorixsol.com
Toronto cell: 416.432.2251
NYC: 917.512.9535

https://www.linkedin.com/in/igarmaise/

http://www.PhorixSol.com

[-- Attachment #2: Type: text/html, Size: 3131 bytes --]

      reply	other threads:[~2020-12-17 18:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-08  1:34 Ian Garmaise
2020-12-17  5:37 ` Kyle Meyer
2020-12-17 18:37   ` Ian Garmaise [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CALWEx6XztXZH+=khNhNfxf_aQQqKNy7cQr8dBDfABWRL_i4-mQ@mail.gmail.com' \
    --to=ian.g@phorixsol.com \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: error when archiving two subtrees in a row' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).