summaryrefslogtreecommitdiff
path: root/plugins/emacs/emacsclient.sh
diff options
context:
space:
mode:
authorTristan Carel <tristan.carel@gmail.com>2011-04-14 07:17:10 +0200
committerTristan Carel <tristan.carel@gmail.com>2011-04-14 07:17:10 +0200
commita183bcbc6d8d61bd9c1077b45d1c5b3239e96a71 (patch)
tree07648e33056630569ce6a3761097bcbd6d1527ad /plugins/emacs/emacsclient.sh
parent5d90f58b37fd67184c4aed3d81a1d3703f8fe832 (diff)
downloadzsh-a183bcbc6d8d61bd9c1077b45d1c5b3239e96a71.tar.gz
zsh-a183bcbc6d8d61bd9c1077b45d1c5b3239e96a71.tar.bz2
zsh-a183bcbc6d8d61bd9c1077b45d1c5b3239e96a71.zip
More comments
Diffstat (limited to 'plugins/emacs/emacsclient.sh')
-rwxr-xr-xplugins/emacs/emacsclient.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/emacs/emacsclient.sh b/plugins/emacs/emacsclient.sh
index 3475926a6..b098fd24a 100755
--- a/plugins/emacs/emacsclient.sh
+++ b/plugins/emacs/emacsclient.sh
@@ -6,5 +6,6 @@ x=`emacsclient --alternate-editor '' --eval '(x-display-list)' 2>/dev/null`
if [ -z "$x" ] ;then
emacsclient --alternate-editor "" --create-frame $@
else
+ # prevent creating another X frame if there is at least one present.
emacsclient --alternate-editor "" $@
fi