diff --git a/plugins/emacs/emacsclient.sh b/plugins/emacs/emacsclient.sh
index 25efe0d686a3b3946aca0bd17bc4b16625b1180e..96893c932751bd5c7646ecf3a624d5f8411498d5 100755
--- a/plugins/emacs/emacsclient.sh
+++ b/plugins/emacs/emacsclient.sh
@@ -11,7 +11,7 @@ emacsfun() {
   esac
 
   # Check if there are suitable frames
-  frames="$(emacsclient -a '' -n -e "$cmd" 2>/dev/null)"
+  frames="$(emacsclient -a '' -n -e "$cmd" 2>/dev/null |sed 's/.*\x07//g' )"
 
   # Only create another X frame if there isn't one present
   if [ -z "$frames" -o "$frames" = nil ]; then