diff options
| author | Gregory Heytings | 2022-11-27 23:15:00 +0000 |
|---|---|---|
| committer | Gregory Heytings | 2022-11-28 00:16:00 +0100 |
| commit | 5f97a085bee2d759a59898fd67ef5990b3ab54fa (patch) | |
| tree | 6ba34f20691f769377c045c55c954281c4badad8 /lib-src | |
| parent | 6d3cea2c8edde5ee8d6d8fe1364cd318e3270515 (diff) | |
| download | emacs-5f97a085bee2d759a59898fd67ef5990b3ab54fa.tar.gz emacs-5f97a085bee2d759a59898fd67ef5990b3ab54fa.zip | |
Fix incompatible -t and -r options in emacsclient
* lib-src/emacsclient.c (decode_options): Do not allow -t and -r
together.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/emacsclient.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index bc23f3fa363..af488128ba7 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -568,6 +568,7 @@ decode_options (int argc, char **argv) | |||
| 568 | case 't': | 568 | case 't': |
| 569 | tty = true; | 569 | tty = true; |
| 570 | create_frame = true; | 570 | create_frame = true; |
| 571 | reuse_frame = false; | ||
| 571 | break; | 572 | break; |
| 572 | 573 | ||
| 573 | case 'c': | 574 | case 'c': |
| @@ -576,7 +577,8 @@ decode_options (int argc, char **argv) | |||
| 576 | 577 | ||
| 577 | case 'r': | 578 | case 'r': |
| 578 | create_frame = true; | 579 | create_frame = true; |
| 579 | reuse_frame = true; | 580 | if (!tty) |
| 581 | reuse_frame = true; | ||
| 580 | break; | 582 | break; |
| 581 | 583 | ||
| 582 | case 'p': | 584 | case 'p': |