unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: phillip.lord@newcastle.ac.uk (Phillip Lord)
To: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Comment conventions, adding an explicit Header.
Date: Fri, 31 Oct 2014 16:42:49 +0000	[thread overview]
Message-ID: <878ujwmbqu.fsf@newcastle.ac.uk> (raw)
In-Reply-To: <20141031115017.GA19841@boo.workgroup> (Gregor Zattler's message of "Fri, 31 Oct 2014 12:50:17 +0100")

Gregor Zattler <telegraph@gmx.net> writes:

> Hi Phillip,
> * Phillip Lord <phillip.lord@newcastle.ac.uk> [30. Oct. 2014]:
>> I have written a mode which transforms an Emacs-Lisp file into an
>> org-mode file. So you can view (and edit) your comments in org-mode,
>> while maintaining a normal elisp file (i.e. it doesn't require tangling
>> as an org-mode babel file would).
>
> How does this relate to outorg by Thorsten Jolitz?
>
> https://github.com/tj64/outorg


From a user perspective, outorg allows you to edit your code and then
switch to a chunk of documentation and then back out again. This is much
the same paradigm as org-babel, except in reverse (where the
documentation is key, and you edit code a chunk at a time).

With my code (linked-buffer), you see both the code and the
documentation at the same time. So, for example, org-mode folding makes
sense in my case, because you see the whole buffer. You can navigate to
the bit of code you are interested in the folded documentation, and then
jump back to the code. You can publish your code using the org-mode
publication facilities. Instead of special commands to switch modes and
stop when you have finished, you just change buffer.

Set against this, outorg is mature and linked-buffer is not.
Linked-buffer is computationally intensive - which I am trying to
improve, but it may or may not be possible. And linked-buffer's do
strange things to undo.

It's an experiment. I didn't write it for emacs-lisp and org-mode, but
it should be adaptable to that purpose, so it seemed worth a try.

Phil




      reply	other threads:[~2014-10-31 16:42 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-30 10:22 Comment conventions, adding an explicit Header Phillip Lord
2014-10-30 11:59 ` Eric S. Raymond
2014-10-30 12:24   ` Phillip Lord
2014-10-30 12:33 ` Thorsten Jolitz
2014-10-30 13:43 ` Stefan Monnier
2014-10-30 13:58   ` Phillip Lord
2014-10-30 15:36     ` Stefan Monnier
2014-10-30 16:38       ` Phillip Lord
2014-10-30 17:13         ` Stefan Monnier
2014-10-31 10:02           ` Phillip Lord
2014-10-31 14:07             ` Stefan Monnier
2014-10-31 16:10               ` Phillip Lord
2014-11-01  1:01     ` Stephen J. Turnbull
2014-11-03 10:04       ` Phillip Lord
2014-11-03 11:00         ` Stephen J. Turnbull
2014-11-03 15:22           ` Phillip Lord
2014-10-31 11:50 ` Gregor Zattler
2014-10-31 16:42   ` Phillip Lord [this message]

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.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878ujwmbqu.fsf@newcastle.ac.uk \
    --to=phillip.lord@newcastle.ac.uk \
    --cc=emacs-devel@gnu.org \
    /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.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).