From: Strozzi, D. J. <str...@ll...> - 2012-07-24 18:43:16
|
Thanks a lot for your reply! Yes it was a while ago. I will probably not have time to look at this for a little while, but will keep it handy. Dave On 6/15/12 10:02 AM, "Eric Ludlam" <Eri...@ma...> wrote: >Hi David, > >Cell mode support in matlab.el can be summed up like this: > >% in your major mode > (make-local-variable 'page-delimiter) > (setq page-delimiter "^\\(\f\\|%% \\)") > >then use forward-page to find the boundary of the cell, and run that >region. > >There is very little magic involved, and this is a common tactic for >other modes as far as I know. > >If you intend to copy stuff from matlab-mode, understand that many of the >original authors are not around to provide releases that would allow your >code to become a part of Emacs or the lisp archive later. > >Enjoy >Eric > >-----Original Message----- >From: Strozzi, David J. [mailto:str...@ll...] >Sent: Friday, June 15, 2012 12:53 PM >To: mat...@li... >Subject: [Matlab-emacs-discuss] matlab cell-like mode for Yorick > >I am not trying to incite a holy war but will try to be ecumenical and >syncretist: > >Yorick is a free, open-source interpreter for numerics (and with a >parallel mode) written primarily by Dave Munro at Livermore. I've always >felt if people were choosing tools based on their merits and not inertia, >marketing, etc it would be much more widely used. But that's not my >point! > >Dave M.'s written a nice emacs package for yorick, and the prime way >people are supposed to run yorick is within emacs. As for OSes, "Linux >is nice but I prefer emacs". It would be very handy to have something >like Matlab's cell mode when working with Yorick source - both to >navigate source and to execute chunks. > >I'm emailing this list since I have almost no familiarity with elisp. I >wonder if it's simple to adapt some of the matlab-mode coding to add a >cell capability to editing Yorick source. If someone is willing to hold >my hand or point me to the relevant .el matlab source, we'd be forever >grateful. > >As things stand, the yorick emacs package lets you send the selected >region to the yorick interpreter session for execution. It just wastes >time to constantly select a chunk, execute it, edit it a bit, re-select, >etc. > >Thanks! >Dave > > >-------------------------------------------------------------------------- >---- >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and threat >landscape has changed and how IT managers can respond. Discussions will >include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Matlab-emacs-discuss mailing list >Mat...@li... >https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss |