Run::Emacs - module that handles shelling out to emacs for different purposes
use Run::Emacs ':all'; my $major_version = emacs_version; if ($major_version > 22) { print "You have a recent version of emacs\n"; }
Run::Emacs is a module that deals with shelling out to emacs for various purposes.
The immediate need is to determine the major version of the emacs installed, to find out if --no-splash should be used.
(( Eventually this will have a number of run string generators that spit out fancy strings to do unusual stuff with emacs.
It will probably also have some wrappers that use these generated runstrings, and scrape out the results. Note: with --batch message sends to STDERR, might combine with 2>1 bourne/bash-trick, and run it with backticks. Question: should this thing be ooped up? ))
(( Consider renaming? Maybe Test::Emacs or something. Nah. ))
None by default.
Returns the version of the emacs program stored on your system. By default it checks the simple command "emacs", and returns only the major version.
TODO Mention other useful documentation:
o related modules: L<Module::Name> o operating system documentation (such as man pages in UNIX) o any relevant external documentation such as RFCs or standards o discussion forum set up for your module (if you have it) o web site set up for your module (if you have it)
Joseph Brenner, <doom@kzsu.stanford.edu>
Copyright (C) 2007 by Joseph Brenner
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.2 or, at your option, any later version of Perl 5 you may have available.
None reported... yet.
Hey! The above document had some coding errors, which are explained below:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'