From: Alexander Baier <lexi.baier@gmail.com>
To: Johann Spies <johann.spies@gmail.com>
Cc: Rainer Stengele <rainer.stengele@online.de>, emacs-orgmode@gnu.org
Subject: Re: org-indent-mode corrupted most of a big org file
Date: Sat, 07 Dec 2013 11:48:40 +0100 [thread overview]
Message-ID: <87haalq6lz.fsf@gmail.com> (raw)
In-Reply-To: <CAGZ55DTQoUGuL-Nevp1in5O3gihCA3c0KWFzwFxfgs5AwP7vWw@mail.gmail.com> (Johann Spies's message of "Fri, 6 Dec 2013 16:41:28 +0200")
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 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 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?
>>
>
> I have killed and restarted emacs. How do I evaluate (reload) .emacs when
> emacs is running?
>
>
>> - Are the files you are editing somewhere under /home/js/?
>> - Did you really edit and save a file since adding the code to your init
>> file?
>> - In case you are editing files under version control: Did you turn on
>> vc-make-backup-files?
>>
>> HTH,
>> --
>> Alexander Baier
>>
>> On 13-12-03 09:33 Johann Spies wrote:
>> > 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 ; don't use symlinks
>> > delete-old-versions t ; don't ask me about deleting backups
>> > kept-new-versions 20
>> > kept-old-versions 5
>> > version-control t) ; use versioned backups
>> > #+end_src
>> >
>> >
>> >
>> > Regards
>> > Johann
>> >
>> >
>> > On 2 December 2013 17:37, Alexander Baier <lexi.baier@gmail.com> wrote:
>> >
>> >> 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 structures.
>> >> > Most "*" items had been placed at the beginning of the line and
>> >> therefore now became headlines.
>> >> > I do not know how this happened. I am not sure if I myself was the
>> >> reason somehow.
>> >> > Anyway I had to spend a fair amount of work to get the old file format
>> >> from
>> >> > subversion and insert the changes since the corruption.
>> >> >
>> >> > This is just a warning to have backups at hand before changing to
>> >> org-indent mode.
>> >> > Then immediately and check often the contents of the file until you
>> are
>> >> sure all is running well.
>> >> >
>> >> > Maybe someone has an idea.
>> >> >
>> >> > I will try to convert again later but then be much more careful.
>> >> >
>> >> > Rainer
>> >> >
>> >> >
>> >>
>> >> FWIW, I have the following snippet in my init file, that uses emacs'
>> >> build-in backup machanism to save me from such things. As emacs stuffs
>> >> them all in one central location, I do not have to worry about polluting
>> >> my filesystem.
>> >>
>> >> #+begin_src emacs-lisp
>> >> (setq make-backup-files t)
>> >> (setq backup-directory-alist '(("/home/delexi/*" .
>> >> "/home/delexi/.emacs.d/backup")))
>> >> (setq backup-by-copying t ; don't use symlinks
>> >> delete-old-versions t ; don't ask me about deleting backups
>> >> kept-new-versions 20
>> >> kept-old-versions 5
>> >> version-control t) ; use versioned backups
>> >> #+end_src
>> >>
>> >> If you want to make backups from files under version control, you also
>> >> have to set the following:
>> >>
>> >> #+begin_src emacs-lisp
>> >> (setq vc-make-backup-files t)
>> >> #+end_src
>> >>
>> >> This already saved me a couple of times.
>> >>
>> >> Regards,
>> >> --
>> >> Alexander Baier
>> >>
>> >>
>>
>>
Regards,
--
Alexander Baier
next prev parent reply other threads:[~2013-12-07 10:49 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-02 11:21 org-indent-mode corrupted most of a big org file Rainer Stengele
2013-12-02 11:31 ` Sebastien Vauban
2013-12-02 12:06 ` Carsten Dominik
2013-12-02 15:37 ` Alexander Baier
2013-12-02 19:11 ` Nicolas Richard
2013-12-03 8:33 ` Johann Spies
2013-12-03 12:58 ` Alexander Baier
2013-12-03 17:23 ` Johann Spies
2013-12-03 17:37 ` Alexander Baier
2013-12-03 17:43 ` Nick Dokos
2013-12-03 17:53 ` Alexander Baier
2013-12-03 18:30 ` Nick Dokos
2013-12-03 19:29 ` Sebastien Vauban
2013-12-04 9:43 ` Alexander Baier
2013-12-03 18:15 ` org-indent-mode corrupted most of a big org file (solved backups) Johann Spies
2013-12-06 14:41 ` org-indent-mode corrupted most of a big org file Johann Spies
2013-12-07 10:48 ` Alexander Baier [this message]
2013-12-04 8:25 ` Nicolas Goaziou
2013-12-04 11:26 ` Rainer Stengele
2013-12-04 13:16 ` Nicolas Goaziou
2013-12-12 14:48 ` Rainer Stengele
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=87haalq6lz.fsf@gmail.com \
--to=lexi.baier@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=johann.spies@gmail.com \
--cc=rainer.stengele@online.de \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public 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).