changeset 568:dd77081b7588

Prevent from interpreting file names as emacsclient options.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Sun, 12 Jan 2014 22:27:02 +0200
parents b8b028459622
children b49dfaf54da8
files emacs/e emacs/ew
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/emacs/e	Sun Jan 12 22:26:15 2014 +0200
+++ b/emacs/e	Sun Jan 12 22:27:02 2014 +0200
@@ -21,7 +21,7 @@
 
 if [ -n "$COMSPEC" ]; then
   # We probably under Windows like OS. I like native Emacs over Cygwin.
-  exec emacsclientw -a emacs -n "$@"
+  exec emacsclientw -a emacs -n -- "$@"
 else
-  exec emacsclient -a emacs -n "$@"
+  exec emacsclient -a emacs -n -- "$@"
 fi
--- a/emacs/ew	Sun Jan 12 22:26:15 2014 +0200
+++ b/emacs/ew	Sun Jan 12 22:27:02 2014 +0200
@@ -22,7 +22,7 @@
 
 if [ -n "$COMSPEC" ]; then
   # We probably under Windows like OS.
-  exec emacsclientw -a emacs "$@"
+  exec emacsclientw -a emacs -- "$@"
 else
-  exec emacsclient -a emacs "$@"
+  exec emacsclient -a emacs -- "$@"
 fi