Edmar Wienskoski Jr. wrote:
> I'd rather come up with a solution which works correctly in other
> cases. For example, your problem is not different from the problem
> encountered for LyX-Code environment. This environment as it stands is
> a painful hack and we will have to do some clean up there anyway. So
> why not come up with a generic solution?

And what that would be ?

I submited some patches against what is available today.
I don't know what your plans for the future are.
It there is something (objective) that I can do, let me know, I am willing
to re-code the patches (actually, they are small, not a big deal).

 
 Ok, that decides what to do with the Scrap layout. It is still an open
question *how* to do it.
I had another idea:

1 - We define Scrap as a paragraph.
Which implies that will be no need to patch anything.

2 - The code segments must be typed with c-return
at each code line.
Which implies that no empty lines will be outputed.

3 - Since we are using c-return, it is expliciity that
the lines will not be separated.
Which implies that  no undocumented feature is being used!!! (right ?)

My work stops here. The problem is solved in a clean
way.

In the feature...
If the programmers complain they  don't like to type c-ret,
he can change his bindings to swap the ret and c-ret keys.
We can also help by making this binding dynamic.
(Emacs has this, when you change mode, some key bindings also change)
That would be a new feature to describe what the key bindings
are within each layout.  The Scrap layout usage would then be improved
by using this new feature to swap the bindings for ret and c-ret.

Good enough ?

-- 
/*----------------------------------------------------------------------*/
/*      Edmar Wienskoski Jr.    - [EMAIL PROTECTED]           */
/*                              - http://www.cs.rice.edu/~wiensk        */
/*----------------------------------------------------------------------*/
     ____
    | [] |                                                 ______()_||_
 ---+----+---  ------------  ------------  ------------     | []       |
 | |      | |  |          |  |          |  |          |  ___|          |
 |_|______|_|  |__________|  |__________|  |__________|  |______________\
"o-o      o-o""o-o      o-o""o-o      o-o""o-o      o-o""o-o  O-O-O  o-o "
 

Reply via email to