The attached patch allows  'M-x math-greek a'  to produce an \alpha if
typed (or bound to a key) outside mathed.

I personally don't like it. IMO somebody who wants math should say so by
typing M-m first, but there are obviously people with a strong feeling that
this is wrong...

And there is a problem with the cursor position (ends up in front of the
created math inset instead after it), but this should be fixable from withi
mathed...

Andre'

-- 
André Pönitz ............................................. [EMAIL PROTECTED]
Index: BufferView_pimpl.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/BufferView_pimpl.C,v
retrieving revision 1.160
diff -u -p -r1.160 BufferView_pimpl.C
--- BufferView_pimpl.C  2001/08/23 09:04:41     1.160
+++ BufferView_pimpl.C  2001/08/30 09:40:16
@@ -2913,6 +2913,12 @@ bool BufferView::Pimpl::Dispatch(kb_acti
        case LFUN_MATH_MODE:             // Open or create an inlined math inset 
                mathDispatchMathMode(bv_, argument);
                break;
+
+       // on special request of Richard Hawkins this should stay accessible
+       // directly from the "outside world"
+       case LFUN_GREEK: 
+               mathDispatchGreek(bv_, argument);
+               break;
                
        case LFUN_CITATION_INSERT:
        {

Reply via email to