From: Carsten Dominik <carsten.dominik@gmail.com>
To: Taru Karttunen <taruti@taruti.net>, Dan Davison <davison@stats.ox.ac.uk>
Cc: emacs-orgmode Org-Mode <emacs-orgmode@gnu.org>
Subject: Re: cannot edit two source code examples simultaneously
Date: Mon, 18 May 2009 17:23:48 +0200 [thread overview]
Message-ID: <1B7DED06-CFA7-481D-982A-B077A642205D@gmail.com> (raw)
In-Reply-To: <1242627915-sup-1869@oz.taruti.net>
On May 18, 2009, at 8:27 AM, Taru Karttunen wrote:
> Excerpts from Dan Davison's message of Mon May 18 09:07:11 +0300 2009:
>> 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?
>
> How about this - set the source code with a special overlay/property
> when editing it. The property could turn the code into a link to the
> buffer and set it read-only.
OK, the source code in the Org buffer is now highlighted while
being edited, and you can click on it to go back to the
editing buffer. I hope that does solve you problems, Dan?
It is not yet read-only, but this feels like an Emacs bug, because I
do set read-only in the overlay.
>
> - Taru Karttunen
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2009-05-18 16:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-15 5:38 cannot edit two source code examples simultaneously Hsiu-Khuern Tang
2009-05-16 17:39 ` Carsten Dominik
2009-05-17 17:28 ` Dan Davison
2009-05-18 5:38 ` Taru Karttunen
2009-05-18 6:07 ` Dan Davison
2009-05-18 6:27 ` Taru Karttunen
2009-05-18 10:12 ` Carsten Dominik
2009-05-18 15:23 ` Carsten Dominik [this message]
2009-05-18 17:40 ` Dan Davison
2009-05-18 10:48 ` Carsten Dominik
2009-05-19 0:32 ` Hsiu-Khuern Tang
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1B7DED06-CFA7-481D-982A-B077A642205D@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=davison@stats.ox.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=taruti@taruti.net \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.