]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert "emacsclient: ignore --eval parameters when starting alternate editor"
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 15 Sep 2019 12:11:14 +0000 (14:11 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 15 Sep 2019 12:11:14 +0000 (14:11 +0200)
This reverts commit 6fe661342a24edcaea255c3ba9a37613031554da.

The alternate editor may be Emacs, which is useful when you want to eval something in an existing Emacs (if it exists), or in a new Emacs if there's no server running.

lib-src/emacsclient.c

index e9469f77c5eebfb3c05278f92ff1fb40787c5fb5..65effc6910fc6cd6765f37f6cc818e39007776fd 100644 (file)
@@ -700,11 +700,7 @@ fail (void)
 {
   if (alternate_editor)
     {
-      /* If the user has said --eval, then those aren't file name
-        parameters, so don't put them on the alternate_editor command
-        line. */
-      size_t extra_args_size =
-       (eval? 0: (main_argc - optind + 1) * sizeof (char *));
+      size_t extra_args_size = (main_argc - optind + 1) * sizeof (char *);
       size_t new_argv_size = extra_args_size;
       char **new_argv = xmalloc (new_argv_size);
       char *s = xstrdup (alternate_editor);