>>>>> "Asger" == Asger K Alstrup Nielsen <[EMAIL PROTECTED]> writes:

Kayvan> On the other hand, I think that the whole thing would be even
Kayvan> clearer (and more complete and up to date) if you wrote the
Kayvan> code and documentation together in a literate style. Each
Kayvan> documentation chunk could be followed by the implementation of
Kayvan> the class that is being described.

Asger> That is a good suggestion, and I can see a lot of good reasons
Asger> for this.  However, I have the mayor problem that I don't like
Asger> LyX as my coding editor.  I much prefer GNU Emacs *and*
Asger> Microsoft Visual Studio 6.  Notice that I use both, on and off,
Asger> and I can't accept to settle on literate programming in Emacs
Asger> alone.

At this point, I use LyX a lot for my coding because of its nice
support for Literate Programming. When I'm not at an X-capable
terminal (either because I'm at a client site running Windows NT or
the network is too slow to run LyX to my local workstation), I use
Emacs and noweb-mode to edit the LyX-generated noweb file and then
import it back into LyX later.

Asger> We have a LyX document with documentation and code. This is the
Asger> most current and up-to-date document, but it's hard to edit the
Asger> code.  From this, we generate residual source files. These are
Asger> not meant to be directly editing.  However, I'd like to edit
Asger> the residual source files directly, because the best tools for
Asger> source code editing is not LyX.

Yes. I see the problem.

Asger> So, there are two solutions:

Asger> 1) I need a way to reintegrate the changes in the source file into the 
Asger>    documentation.

If you could be happy with just using Emacs to edit the noweb file,
then it would almost work easily enough. Since you're not happy with
that solution, though...

I'd say that the tools are just not there yet.

Asger> 2) LyX is improved to be competetive with Emacs and VS
Asger> regarding source code editing.

I don't know if that's ever really going to happen, though. It doesn't
make much sense to add this kind of capability to LyX. The focus of
LyX should always be on being a great document preparation system, not
a coding editor.

Asger> Either solution is hard to achieve, but I hope that number 2
Asger> will be easier with a new kernel extended with a suitable
Asger> scripting language.

Yes, it may become easier, but I don't think it should be a main focus
of LyX development.

Kayvan> You can shoot me now, if you want. :-)

Asger> No, you just found a hard-to-find bug for me!  I was about to
Asger> shoot myself, and probably had if not I had Delta Force ;-)

Asger> Greets,

Best regards,

                        ---Kayvan
-- 
Kayvan Aghaiepour Sylvan   | Proud husband of       | Father to
Sylvan Associates, Inc.    | Laura Isabella Sylvan  | Katherine Yelena (8/8/89)
http://www.isp.net/~kayvan |                        | Robin Gregory (2/28/92)

Reply via email to