Re: [O] Moving and resetting attachments

2017-06-28 Thread Florian Lindner
Am 24.06.2017 um 10:53 schrieb Nicolas Goaziou:> Hello, > > Florian Lindner writes: > >> Ok, so it's basically a conversion to bool. > > Correct. > >> That I'm not so sure of. I try to get myself aquainted to ert, but my elisp >> knowledge, you surely know, is very limited.

Re: [O] Moving and resetting attachments

2017-06-24 Thread Nicolas Goaziou
Hello, Florian Lindner writes: > Ok, so it's basically a conversion to bool. Correct. > That I'm not so sure of. I try to get myself aquainted to ert, but my elisp > knowledge, you surely know, is very limited. I think you're doing well so far. > Do I understand

Re: [O] Moving and resetting attachments

2017-06-20 Thread Florian Lindner
Am 13.06.2017 um 23:41 schrieb Nicolas Goaziou: > Hello, > > Florian Lindner writes: > >> What is the use of (and org-attach-allow-inheritance t)? Doesn't it always >> returns org-attach-allow-inheritance? > > It return nil if `org-attach-allow-inheritance' is nil, t

Re: [O] Moving and resetting attachments

2017-06-13 Thread Nicolas Goaziou
Hello, Florian Lindner writes: > What is the use of (and org-attach-allow-inheritance t)? Doesn't it always > returns org-attach-allow-inheritance? It return nil if `org-attach-allow-inheritance' is nil, t otherwise. In particular, if `org-attach-allow-inheritance' is set

Re: [O] Moving and resetting attachments

2017-06-13 Thread Florian Lindner
Am 10.06.2017 um 09:36 schrieb Nicolas Goaziou: > Hello, > > Florian Lindner writes: > >> Ok, my new version is here. It should be able to replace >> org-attach-set-directory > > Thank you. Comments follow. > >> Some questions about the code >> >> * Is that the correct

Re: [O] Moving and resetting attachments

2017-06-13 Thread Florian Lindner
Am 10.06.2017 um 09:36 schrieb Nicolas Goaziou: > Hello, > > Florian Lindner writes: > >> Ok, my new version is here. It should be able to replace >> org-attach-set-directory > > Thank you. Comments follow. > >> Some questions about the code >> >> * Is that the correct

Re: [O] Moving and resetting attachments

2017-06-10 Thread Nicolas Goaziou
Hello, Florian Lindner writes: > Ok, my new version is here. It should be able to replace > org-attach-set-directory Thank you. Comments follow. > Some questions about the code > > * Is that the correct way to deal with a boolean prefix arg? I'm not > interested in the

Re: [O] Moving and resetting attachments

2017-06-07 Thread Florian Lindner
Am 02.06.2017 um 11:19 schrieb Eric Abrahamsen:> Florian Lindner writes: > >> Am 01.06.2017 um 06:39 schrieb Eric Abrahamsen: >>> Florian Lindner writes: >>> Hello, two questions about moving attachments to org files: C-c C-a a

Re: [O] Moving and resetting attachments

2017-06-06 Thread Florian Lindner
Am 05.06.2017 um 01:25 schrieb Eric Abrahamsen: > Nicolas Goaziou writes: > >> Hello, >> >> Eric Abrahamsen writes: >> >>> What I meant was, first ask the user for a directory, then cycle through >>> the files and ask whether to move each file to

Re: [O] Moving and resetting attachments

2017-06-04 Thread Eric Abrahamsen
Nicolas Goaziou writes: > Hello, > > Eric Abrahamsen writes: > >> What I meant was, first ask the user for a directory, then cycle through >> the files and ask whether to move each file to that directory. The user >> wouldn't specify the

Re: [O] Moving and resetting attachments

2017-06-04 Thread Nicolas Goaziou
Hello, Eric Abrahamsen writes: > What I meant was, first ask the user for a directory, then cycle through > the files and ask whether to move each file to that directory. The user > wouldn't specify the directory itself for each file. And with > `map-y-or-n-p', the user

Re: [O] Moving and resetting attachments

2017-06-02 Thread Eric Abrahamsen
Nicolas Goaziou writes: > Eric Abrahamsen writes: > >> Mostly I was thinking of two things: 1) giving the user the chance to >> say yea or nay on a file-by-file basis, > > I cannot see why this could be a good thing. IIRC, attachment directory >

Re: [O] Moving and resetting attachments

2017-06-02 Thread Nicolas Goaziou
Eric Abrahamsen writes: > Mostly I was thinking of two things: 1) giving the user the chance to > say yea or nay on a file-by-file basis, I cannot see why this could be a good thing. IIRC, attachment directory naming scheme can be somewhat opaque, when using ID, and by

Re: [O] Moving and resetting attachments

2017-06-02 Thread Eric Abrahamsen
Nicolas Goaziou writes: > Hello, > > Eric Abrahamsen writes: > >> Looks like a good start! My first comment is, this should definitely be >> written as a patch to `org-attach-set-directory'. It's useful >> functionality, and fits well into the

Re: [O] Moving and resetting attachments

2017-06-02 Thread Nicolas Goaziou
Hello, Eric Abrahamsen writes: > Looks like a good start! My first comment is, this should definitely be > written as a patch to `org-attach-set-directory'. It's useful > functionality, and fits well into the whole system -- so long as you > give users a chance to say

Re: [O] Moving and resetting attachments

2017-06-02 Thread Eric Abrahamsen
Florian Lindner writes: > Am 01.06.2017 um 06:39 schrieb Eric Abrahamsen: >> Florian Lindner writes: >> >>> Hello, >>> >>> two questions about moving attachments to org files: >>> >>> C-c C-a a attaches a file and stores it under ./data/ID/... >>> >>>

Re: [O] Moving and resetting attachments

2017-06-01 Thread Florian Lindner
Am 01.06.2017 um 06:39 schrieb Eric Abrahamsen: > Florian Lindner writes: > >> Hello, >> >> two questions about moving attachments to org files: >> >> C-c C-a a attaches a file and stores it under ./data/ID/... >> >> Using C-c C-a s I can set another directory a attachment

Re: [O] Moving and resetting attachments

2017-05-31 Thread Eric Abrahamsen
Florian Lindner writes: > Hello, > > two questions about moving attachments to org files: > > C-c C-a a attaches a file and stores it under ./data/ID/... > > Using C-c C-a s I can set another directory a attachment directory. > Can I make org-mode move the content of the

[O] Moving and resetting attachments

2017-05-31 Thread Florian Lindner
Hello, two questions about moving attachments to org files: C-c C-a a attaches a file and stores it under ./data/ID/... Using C-c C-a s I can set another directory a attachment directory. Can I make org-mode move the content of the previous directory to the new directory? Can I "reset" the