[Top][All Lists]

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

Re: [Orgmode] cannot edit two source code examples simultaneously

From: Dan Davison
Subject: Re: [Orgmode] cannot edit two source code examples simultaneously
Date: Mon, 18 May 2009 02:07:11 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)

Taru Karttunen <address@hidden> writes:

> Excerpts from Dan Davison's message of Sun May 17 20:28:01 +0300 2009:
>> Following on from this, I'd like to suggest that, while it is being
>> edited, the source code is removed from the org buffer, to avoid
>> concurrency problems. I just had a go at that -- the patch below
>> replaces the source code with a work-in-progress message that contains
>> a link to the edit buffer.
> Please don't do this. It sounds like a recipe for accidentally losing
> the source code when careless.

I think it's more complicated than that: source code loss is also the
motivation for doing something like this. If you are editing the code in
the *Org Edit Src* buffer, and get distracted, you may return to the org
buffer and mistakenly decide that it contains the latest content. I've
done that two or three times in the last couple of days, resulting in
lost work. That mistake cannot be made so easily when there is only ever
one current copy of the code. If you close emacs without C-c ', or your
laptop power runs out, then I agree that is bad, but I thought perhaps
there might be a good solution along these lines. Maybe an alternative
would be to maintain a work-in-progress message along with the
out-of-date code?


> - Taru Karttunen
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

reply via email to

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