From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eliza Velasquez via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#25547: 25.1.91; emacsclient -c creates frames on the wrong display Date: Tue, 3 Nov 2020 10:36:47 -0800 Message-ID: References: Reply-To: Eliza Velasquez Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4626"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 25547@debbugs.gnu.org, Alex Hutcheson To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 03 19:38:46 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ka1Cf-00016J-Ew for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Nov 2020 19:38:45 +0100 Original-Received: from localhost ([::1]:50252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ka1Ce-0003EH-Ge for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Nov 2020 13:38:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ka1By-0002jR-2m for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 13:38:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34847) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ka1Bx-0007uO-NR for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 13:38:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ka1Bx-0008Se-LH for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 13:38:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eliza Velasquez Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Nov 2020 18:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25547 X-GNU-PR-Package: emacs Original-Received: via spool by 25547-submit@debbugs.gnu.org id=B25547.160442862632452 (code B ref 25547); Tue, 03 Nov 2020 18:38:01 +0000 Original-Received: (at 25547) by debbugs.gnu.org; 3 Nov 2020 18:37:06 +0000 Original-Received: from localhost ([127.0.0.1]:46393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ka1B3-0008RK-Rg for submit@debbugs.gnu.org; Tue, 03 Nov 2020 13:37:06 -0500 Original-Received: from mail-il1-f175.google.com ([209.85.166.175]:39947) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ka1B1-0008Qr-U2 for 25547@debbugs.gnu.org; Tue, 03 Nov 2020 13:37:04 -0500 Original-Received: by mail-il1-f175.google.com with SMTP id n5so17029124ile.7 for <25547@debbugs.gnu.org>; Tue, 03 Nov 2020 10:37:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ac6p/IFSJTBWQ52WbpngRNr0WxYqBTRqXBLTuyQrZ9o=; b=Dot4Ixzo0sPtmNbFiXb0JD7CkUN6ZJtUycES8On6tM+0/V8ifxt8XZARt0y5dBPM/j esAfCfzJiYQdiktLy5P/NEhHdRnucBHm5nREDUCRSsFHcynK+rbsldh3MrwNcpVrvmre KtGo8Srehzk2RN4knnpd2u5caob/rri6igCb1+cJuxMtQhVj/AOwVdzE6hQINbq5//Hg Mm5+4yOBXz3txJm2EYL0l+19DKtLxAcS12MX+73tu7fTTNbYIb6gHrV4PfPx7ECj/lTy 5zDrZwFPaucrbPi8WsezisF/gzqNvKSUQajk4Cs85+AcBwuRmj5HAwxNEh6WT6Hci1l8 YZkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ac6p/IFSJTBWQ52WbpngRNr0WxYqBTRqXBLTuyQrZ9o=; b=d77+GxZCaLDBKB5CCz724WcTgcXrlLod9PqhwKjq71Qccn6/QTnj+hq32+Gl0//JIB mtVM7oemUSO2xlA8Sl8i+fHjzJWM7VDID5f5RKg2xgOBCzi4jyEEdEcLhHkDgOnCT618 /C5FwvJKiRCFyr+6ze+HlVIDrRlkR7ON6pJdsrJgtudLLMoW0iOkUiNnBxOBYy3HBXPQ LJs3OFHO/2OOLrEGQruucAG29kQ4kaso/qVTpo4MNV2AQKZdBoLhguKkkfA+SRB6F8XL 67nKNRkHypyMVUrqzR1o9Yosg9AFauRIWu4O6kykw4hMEB8Z5US33vJh2XdozEC0mn/7 0EDQ== X-Gm-Message-State: AOAM531cIcODF2ccAfzs0C0GiPQnY1f9YSBXwQxWP//uCOpHp8zt1i7T EiWnGrH6qC3bD7Y1w0PVoFe+VnxMNMNroJMQXllFRA== X-Google-Smtp-Source: ABdhPJxO76/XzS2p1CYOlB9AuouPqLjZJP21spVckXuKNmGUBTsP0jIkY+7GH2BA4Gi5dqOHjZxD9js5lvxRce9gNZ8= X-Received: by 2002:a05:6e02:531:: with SMTP id h17mr15623936ils.210.1604428618073; Tue, 03 Nov 2020 10:36:58 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:192633 Archived-At: Okay, I'll try to work on this today and see if I can get anywhere with it. On Mon, Nov 2, 2020 at 4:56 PM Stefan Monnier wrote: > > > This seems like it might be tricky to solve properly. My guess from > > looking at the emacsclient source is that a new option would be > > required in order to maintain backwards compatibility, maybe something > > like `--smart-create-frame` or `-C`, which would behave as in the > > expected behavior of the bug report. > > Maybe we don't need a special option: we should be able to detect this > situation when `-c` is passed from an emacsclient running in a "dumb > tty". > > IOW it might be a simple matter of tweaking server.el for the case where > `tty-type` is `dumb` and the `selected-frame` is a non-GUI frame, in > which case we'll just want to create a new tty frame in the same > terminal as that of the `selected-frame`. > > > Stefan >