]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix incompatible -t and -r options in emacsclient
authorGregory Heytings <gregory@heytings.org>
Sun, 27 Nov 2022 23:15:00 +0000 (23:15 +0000)
committerGregory Heytings <gregory@heytings.org>
Sun, 27 Nov 2022 23:16:00 +0000 (00:16 +0100)
* lib-src/emacsclient.c (decode_options): Do not allow -t and -r
together.

lib-src/emacsclient.c

index bc23f3fa3638688d2f78b2040decac9e4a8e08bb..af488128ba7319b7ff41ff9b2087c6039ea261f8 100644 (file)
@@ -568,6 +568,7 @@ decode_options (int argc, char **argv)
         case 't':
          tty = true;
          create_frame = true;
+         reuse_frame = false;
           break;
 
         case 'c':
@@ -576,7 +577,8 @@ decode_options (int argc, char **argv)
 
        case 'r':
          create_frame = true;
-         reuse_frame = true;
+         if (!tty)
+           reuse_frame = true;
          break;
 
        case 'p':