Macro Variable Syntax Problem
Dumin, Nels
nels.dumin at ti.com
Sat Aug 28 04:22:58 CEST 2004
Hi,
I just started having a problem loading a macro file at start-up.
I have the following lines in my .neditmacro file:
$HOME = shell_command ("echo -n $HOME", "")
$NEDIT_MACRO_DIR = $HOME "/share/nedit/macros/"
$EXPANDER_MACRO_DIR = $HOME "/share/nedit/expander/macros/"
load_macro_file ($EXPANDER_MACRO_DIR "system.nm")
This used to work just fine (for three years, across many versions
including 5.3, 5.4, and 5.5RC1), but today it started giving me the
following error:
Error reading macro file Variable syntax
/home/ndumin/share/nedit/expander/macros/system.nm: No such file or
directory
The file "/home/ndumin/share/nedit/expander/macros/system.nm" does
indeed exist, and I can load it from the menu by using File -> Load
Macro File.
Through experimentation, I found that hard-coding the full path of the
file in the load_macro_file statement works:
load_macro_file ("/home/ndumin/share/nedit/expander/macros/system.nm")
I can live with this, but I'm interested in knowing why the old commands
suddenly stopped working.
I also tried converting from the old style of start-up files
($HOME/.nedit, $HOME/.neditmacro, $HOME/.neditdb) to the new style
($NEDIT_HOME/nedit.rc, $NEDIT_HOME/autoload.nm,
$NEDIT_HOME/nedit.history), but the problem persisted.
Anybody know what's up?
Regards,
Nels Dumin
-.-- -.-- --..
More information about the Discuss
mailing list