F11 not presenting code of Macaulay 2 to the Emacs buffer in OSX I am setting up Emac Version 24.4 (9.0) for Macaulay 2. This results to the following error: pressing F11 should present the input of the buffer above, instead it prints "-- end of buffer *M2-demo-buffer*". I don't know:

How can I get the emacs to present the code in the above buffer as in the picture?

Related the last question, in other words with different buffer, how can I get the code highlighted with mouse to be presented to Macaulay 2 buffer in Emacs with F11?



The F keys are not mapped in dashboard or expose.



This point is missing in instructions to set up M2 for emacs in OSX.
I solved the problem this way, thanks to Marc for demonstrating M2 and Emacs.

The file you are modifying in the above buffer needs to have ending *.m2

where notice the heading at the top and the highlighted code for showing that the code is getting read correctly.

by this way, Emacs determines which compiler it uses for the selected code. So

Save as File.m2

F12 opens up the M2 promth

F11 interepts a single line at a time


Wuoala, M2 works out of the box with Emacs, awesome.
Enjoy.