On 10/28/2008 01:13 PM, Martin Rubey wrote:
> Ralf Hemmecke <[EMAIL PROTECTED]> writes:
>
>>> I was actually thinking about Emacs Lisp variable -- it is probably
>>> more convenient for emacs users to have such variable at Lisp level.
>> Well, I guess we can get the @exec_path@ inside fricas.el by renaming it
>> fricas.el.in and then generating the actual fricas.el.
> I think it's better to keep fricas.el fairly independent of the installation /
> build process, as far as I know, this is general emacs policy.
I don't understand you here. The only think is that we want to hardcode
a full path to fricas in that file and fall back to "fricas" (without
path) if that executable is not available.
So I would define a customizable variable like
(defcustom fricas-executable
"@exec_prefix@/fricas"
"The command to run FriCAS."
:type 'file
:group 'fricas)
(well the @...@ will not exactly work like that, but more to that tonight)
and then another function
(defun fricas-run-command ()
(if (executable? fricas-executable) fricas-executable "fricas")
)
which checks whether fricas-executable is actually executable (and
returns this string) and falls back to "fricas" (and returns this
string) if it is not the case.
(I hope you could send me the actual name of my dummy function
"exectuable?".)
> Note that
> usually, emacs modes are installed into /usr/share/emacs/site-lisp, and I'd
> prefer to keep this a possibility.
With the above that should work fine.
Ralf
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/fricas-devel?hl=en
-~----------~----~----~----~------~----~------~--~---