changeset 565:aafbed1f7543

Pass all arguments to emacsclient.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Sun, 12 Jan 2014 22:16:10 +0200
parents 349104873292
children 20647f24cb3f
files emacs/e emacs/ew
diffstat 2 files changed, 4 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/emacs/e	Sun Jan 12 01:04:55 2014 +0200
+++ b/emacs/e	Sun Jan 12 22:16:10 2014 +0200
@@ -16,12 +16,7 @@
 
 if [ -n "$COMSPEC" ]; then
   # We probably under Windows like OS. I like native Emacs over Cygwin.
-  for arg; do
-    emacsclientw -a emacs -n "$arg"
-  done
+  emacsclientw -a emacs -n "$@"
 else
-  # We under UNIX like OS.
-  for arg; do
-    emacsclient -a emacs -n "$arg"
-  done
+  emacsclient -a emacs -n "$@"
 fi
--- a/emacs/ew	Sun Jan 12 01:04:55 2014 +0200
+++ b/emacs/ew	Sun Jan 12 22:16:10 2014 +0200
@@ -18,8 +18,8 @@
 
 if [ -n "$COMSPEC" ]; then
   # We probably under Windows like OS.
-  emacsclientw -a emacs "$1"
+  emacsclientw -a emacs "$@"
 else
   # We under UNIX like OS.
-  emacsclient -a emacs "$1"
+  emacsclient -a emacs "$@"
 fi