|
|
|
@ -4,8 +4,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
x=`emacsclient --alternate-editor '' --eval '(x-display-list)' 2>/dev/null` |
|
|
|
x=`emacsclient --alternate-editor '' --eval '(x-display-list)' 2>/dev/null` |
|
|
|
if [ -z "$x" ] ;then |
|
|
|
if [ -z "$x" ] ;then |
|
|
|
emacsclient --alternate-editor "" --create-frame $@ |
|
|
|
emacsclient --alternate-editor "" --create-frame "$@" |
|
|
|
else |
|
|
|
else |
|
|
|
# prevent creating another X frame if there is at least one present. |
|
|
|
# prevent creating another X frame if there is at least one present. |
|
|
|
emacsclient --alternate-editor "" $@ |
|
|
|
emacsclient --alternate-editor "" "$@" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|