Re: [O] org-indent-mode corrupted most of a big org file

2013-12-12 Thread Rainer Stengele
Am 02.12.2013 12:21, schrieb Rainer Stengele: All, last week I played around with org-indent-mode in my biggest (37.000 lines) org file. 3 days later I detected that most of the file was corrupted. WHy so late? Using the agenda I only saw the todos and did not recognise the corrupted

Re: [O] org-indent-mode corrupted most of a big org file

2013-12-07 Thread Alexander Baier
Hello Johann, I can't quite follow you. I was under the impression that your issue has been resolved. If that is not the case, you might want to share the relevant code in your init file here. On 2013-12-06 15:41 Johann Spies wrote: Hello Alexander, Thanks for your attention. The message I

Re: [O] org-indent-mode corrupted most of a big org file

2013-12-06 Thread Johann Spies
Hello Alexander, Thanks for your attention. The message I sent earlier was of my experience on my work computer. I have now tried the same on my home computer. The files on both edited was in /home/js/Dropbox/orgmode. I have also edited ~/.emacs and saved it. that is strange. I cannot

Re: [O] org-indent-mode corrupted most of a big org file

2013-12-04 Thread Nicolas Goaziou
Hello, Rainer Stengele rainer.steng...@online.de writes: last week I played around with org-indent-mode in my biggest (37.000 lines) org file. 3 days later I detected that most of the file was corrupted. WHy so late? Using the agenda I only saw the todos and did not recognise the

Re: [O] org-indent-mode corrupted most of a big org file

2013-12-04 Thread Alexander Baier
On 13-12-03 19:30 Nick Dokos wrote: Alexander Baier lexi.ba...@gmail.com writes: I used to set up backup-directory-alist the same way you have, but changed it, when I noticed emacs putting backups of files I edited as root into that directory. That was something I did not want to do. OK

Re: [O] org-indent-mode corrupted most of a big org file

2013-12-04 Thread Rainer Stengele
Am 04.12.2013 09:25, schrieb Nicolas Goaziou: Hello, Rainer Stengele rainer.steng...@online.de writes: last week I played around with org-indent-mode in my biggest (37.000 lines) org file. 3 days later I detected that most of the file was corrupted. WHy so late? Using the agenda I only

Re: [O] org-indent-mode corrupted most of a big org file

2013-12-04 Thread Nicolas Goaziou
Hello, Rainer Stengele rainer.steng...@online.de writes: I am afraid there is no easy way to convert a non org-indent-mode to a nice formatted org-indent-file. Don't be afraid. There is `org-unindent-buffer'. Admittedly, it doesn't handle starred items, but that shouldn't be hard to fix.

Re: [O] org-indent-mode corrupted most of a big org file

2013-12-03 Thread Johann Spies
Thanks for sharing this. However, after adding this to my ~/.emacs I do not see anything appearing in my .emacs.d/backup directory. #+begin_src emacs-lisp (setq make-backup-files t) (setq backup-directory-alist '((/home/js/* . /home/js/.emacs.d/backup))) (setq backup-by-copying t ;

Re: [O] org-indent-mode corrupted most of a big org file

2013-12-03 Thread Alexander Baier
Hello Johann, that is strange. I cannot remember doing something else besides putting the mentioned code into my init file. I can only think of these trivial reason why this does not work for you: - Did you evaluate the code or restarted your emacs? - Are the files you are editing somewhere

Re: [O] org-indent-mode corrupted most of a big org file

2013-12-03 Thread Johann Spies
Hello Alexander, Thanks for your attention. that is strange. I cannot remember doing something else besides putting the mentioned code into my init file. I can only think of these trivial reason why this does not work for you: - Did you evaluate the code or restarted your emacs? Yes, I

Re: [O] org-indent-mode corrupted most of a big org file

2013-12-03 Thread Alexander Baier
Hello Johann, On 13-12-03 18:23 Johann Spies wrote: Hello Alexander, Thanks for your attention. that is strange. I cannot remember doing something else besides putting the mentioned code into my init file. I can only think of these trivial reason why this does not work for you: - Did

Re: [O] org-indent-mode corrupted most of a big org file

2013-12-03 Thread Nick Dokos
Johann Spies johann.sp...@gmail.com writes: Hello Alexander, Thanks for your attention. that is strange. I cannot remember doing something else besides putting the mentioned code into my init file. I can only think of these trivial reason why this does not work for you: - Did you

Re: [O] org-indent-mode corrupted most of a big org file

2013-12-03 Thread Alexander Baier
Hello Nick, On 13-12-03 18:43 Nick Dokos wrote: [...] The docstring for backup-directory-alist says , | For the common case of all backups going into one directory, the alist | should contain a single element pairing . with the appropriate | directory name. ` FWIW, I tried

Re: [O] org-indent-mode corrupted most of a big org file (solved backups)

2013-12-03 Thread Johann Spies
After reading a little bit about emacs backup functions I experimented with customising emacs using the 'options' menu and succeeded in getting the type of backups you were talking about. It looks similar to yours (I even tried a version from the emacs backup-wiki without success) and I don't

Re: [O] org-indent-mode corrupted most of a big org file

2013-12-03 Thread Nick Dokos
Alexander Baier lexi.ba...@gmail.com writes: I used to set up backup-directory-alist the same way you have, but changed it, when I noticed emacs putting backups of files I edited as root into that directory. That was something I did not want to do. OK - I haven't lived with this setup long

Re: [O] org-indent-mode corrupted most of a big org file

2013-12-03 Thread Sebastien Vauban
Nick Dokos, Nick Dokos wrote: Alexander Baier lexi.ba...@gmail.com writes: I used to set up backup-directory-alist the same way you have, but changed it, when I noticed emacs putting backups of files I edited as root into that directory. That was something I did not want to do. OK - I

Re: [O] org-indent-mode corrupted most of a big org file

2013-12-02 Thread Sebastien Vauban
Rainer Stengele wrote: last week I played around with org-indent-mode in my biggest (37.000 lines) org file. 3 days later I detected that most of the file was corrupted. WHy so late? Using the agenda I only saw the todos and did not recognise the corrupted structures. Most * items had been

Re: [O] org-indent-mode corrupted most of a big org file

2013-12-02 Thread Carsten Dominik
On Dec 2, 2013, at 12:31 PM, Sebastien Vauban sva-n...@mygooglest.com wrote: Rainer Stengele wrote: last week I played around with org-indent-mode in my biggest (37.000 lines) org file. 3 days later I detected that most of the file was corrupted. WHy so late? Using the agenda I only saw

Re: [O] org-indent-mode corrupted most of a big org file

2013-12-02 Thread Alexander Baier
On 13-12-02 12:21 Rainer Stengele wrote: All, last week I played around with org-indent-mode in my biggest (37.000 lines) org file. 3 days later I detected that most of the file was corrupted. WHy so late? Using the agenda I only saw the todos and did not recognise the corrupted

Re: [O] org-indent-mode corrupted most of a big org file

2013-12-02 Thread Nicolas Richard
Alexander Baier lexi.ba...@gmail.com writes: (setq backup-by-copying t ; don't use symlinks Thanks for sharing your setup, I think I'll use a similar one. Just a comment though on the above line : that comment is misleading because emacs is not going to make a backup by making a symlink