--- Begin Message ---
Subject: |
24.2.50; org: edit source block causes data loss |
Date: |
Fri, 16 Nov 2012 11:49:57 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 |
This is a serious bug causing loss of data.
Recent messages on the org-mode mailing list suggest that this
issue may have been fixed upstream. If so, such changes have not
yet been merged back into emacs-24.
Starting from emacs -Q:
1) open an org-mode buffer "foo.org" and add:
#+begin_src c
#+end_src
2) With point on at the start of the '#+begin_src' line, type C-'
(org-edit-special) to edit the content of the source block.
this will open a window for another buffer "*Org Src foo.org[ c ]*".
3) Add some text to the "*Org Src foo.org[ c ]*" buffer and type C-'
(org-edit-src-exit) to commit the changes back to the org file.
The entire contents of the data block are lost.
4) Edit an existing non-empty source block in the same way, and all of
the pre-existing content is lost.
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#12905: 24.2.50; org: edit source block causes data loss |
Date: |
Wed, 12 Dec 2012 17:55:38 +0100 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) |
Hi Chong,
Chong Yidong <address@hidden> writes:
> Could you please take a look at Bug#12905? If it causes data loss, I
> think it should be fixed in the emacs-24 branch. Thanks.
This is fixed, thanks for the heads up.
I just merged the Org bugfix branch into emacs-24.
I made one mistake: I backported Paul's fixes about whitespaces in
our bugfix branch*, so those fixes are now in emacs-24 too, not in
the trunk only. I hope this won't create merge conflicts.
* http://orgmode.org/cgit.cgi/org-mode.git/commit/?h=maint&id=e5ea08
--
Bastien
--- End Message ---