[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] bug#12905: 24.2.50; org: edit source block causes data loss

From: Bernt Hansen
Subject: Re: [O] bug#12905: 24.2.50; org: edit source block causes data loss
Date: Wed, 12 Dec 2012 22:37:40 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Bernt Hansen <address@hidden> writes:

> Bastien <address@hidden> writes:
>> Hi Bernt,
>> Bernt Hansen <address@hidden> writes:
>>> I'm not sure if this is related or not - I don't have time to track down
>>> the offending commit right now.
>> There is nothing new regarding editing source code in master, 
>> except Eric's last few patches.
>>> org-edit-special (C-c ') is currently broken in master.
>>> I get the following backtrace
>> Mhh.. I can't reproduce this.
>>> Org-mode version 7.9.2 (release_7.9.2-664-gb1f369 @
>>> /home/bernt/git/org-mode/lisp/)
>> I'm on release_7.9.2-692-g627d57
>>                      ^^^
>> Are you sure you are using master HEAD?
> I think so.  I just updated and have the same behaviour
> Org-mode version 7.9.2 (release_7.9.2-693-g8c04fb @
> /home/bernt/git/org-mode/lisp/)
> I'll try and locate the problem commit.

git bisect identifies the following commit:

--8<---------------cut here---------------start------------->8---
206257aa7eb83a0a62f297e7cf0e3a7c32ff6f05 is the first bad commit
commit 206257aa7eb83a0a62f297e7cf0e3a7c32ff6f05
Author: Le Wang <address@hidden>
Date:   Sun Nov 18 13:39:51 2012 +0800

    org-src: Fix org-edit-src-code for empty blocks and block with just an 
empty line
    * lisp/org-src.el (org-edit-src-code): Use marker with insertion type
    t to track end and remove hack requiring delete from beg to (1- end).

:040000 040000 91825ba365592800804e652e3ad66db0f8302772 
25f089bf9456b306afd2a0e538bcbfefc4a124f0 M      lisp
--8<---------------cut here---------------end--------------->8---

I'm just trying to edit a lisp source block

--8<---------------cut here---------------start------------->8---
* test
[2012-12-09 Sun 20:53]

#+begin_src lisp
(defun bh/show-org-agenda ()
  (switch-to-buffer "*Org Agenda*")

; Use the current window for C-c ' source editing
(setq org-src-window-setup 'current-window)

--8<---------------cut here---------------end--------------->8---

using C-c ' inside the block.

Reverting this commit fixes it for me.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]