[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
End of file during parsing?
From: |
Rui Tiago Matos |
Subject: |
End of file during parsing? |
Date: |
Sun, 10 Apr 2005 21:12:58 +0100 |
I hacked up a bash function [1] to open some files in different
frames. It works great after emacs is running. Otherwise it doesn't:
it opens up emacs but I get:
command-line-1: End of file during parsing
Now, this is very strange because if I use --eval=... from the command
line directly it works as expected. Anyone has an idea about why this
doesn't work?
[1]
emacs ()
{
if [ -z "$DISPLAY" ]; then
emacs21 $@;
else
if [ ! "`/bin/ps -U $UID | grep emacs`" ]; then
local CMDLINE="--eval=";
local FILE;
for FILE in $*;
do
if ( grep ^/ <<< $FILE ) || ( grep ^~ <<< $FILE ); then
CMDLINE="$CMDLINE(find-file-other-frame \"$FILE\")";
else
CMDLINE="$CMDLINE(find-file-other-frame \"$PWD/$FILE\")";
fi;
done;
if [ "$CMDLINE" != "--eval=" ]; then
emacs21 $CMDLINE &
else
emacs21 &
fi;
else
local CMDLINE="-q";
local FILE;
for FILE in $*;
do
if ( grep ^/ <<< $FILE ) || ( grep ^~ <<< $FILE ); then
CMDLINE="$CMDLINE (find-file-other-frame \"$FILE\")";
else
CMDLINE="$CMDLINE (find-file-other-frame \"$PWD/$FILE\")";
fi;
done;
if [ "$CMDLINE" != "-q" ]; then
gnudoit $CMDLINE;
fi;
fi;
fi
}
- End of file during parsing?,
Rui Tiago Matos <=