From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Carlos Pita Newsgroups: gmane.emacs.bugs Subject: bug#37826: Very annoying autoraise client/server behavior with -t option Date: Sat, 19 Oct 2019 17:46:26 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="217366"; mail-complaints-to="usenet@blaine.gmane.org" To: 37826@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 19 22:47:29 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iLvdF-000uNz-JT for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Oct 2019 22:47:25 +0200 Original-Received: from localhost ([::1]:37638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLvdE-0000U3-8f for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Oct 2019 16:47:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52449) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLvcx-0000Ru-G2 for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2019 16:47:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLvcw-0007l3-04 for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2019 16:47:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44781) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iLvcs-0007js-Rm for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2019 16:47:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iLvcs-0002sZ-Mc for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2019 16:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Carlos Pita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Oct 2019 20:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37826 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.157151800711042 (code B ref -1); Sat, 19 Oct 2019 20:47:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Oct 2019 20:46:47 +0000 Original-Received: from localhost ([127.0.0.1]:53602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLvcc-0002s1-5H for submit@debbugs.gnu.org; Sat, 19 Oct 2019 16:46:47 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:55419) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLvcZ-0002rs-NE for submit@debbugs.gnu.org; Sat, 19 Oct 2019 16:46:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52357) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLvcY-0000DX-EM for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2019 16:46:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLvcW-0007VP-9z for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2019 16:46:41 -0400 Original-Received: from mail-yb1-xb42.google.com ([2607:f8b0:4864:20::b42]:39330) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iLvcV-0007UY-Ul for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2019 16:46:40 -0400 Original-Received: by mail-yb1-xb42.google.com with SMTP id z2so2906456ybn.6 for ; Sat, 19 Oct 2019 13:46:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=tNPtplSwkQJpPGa9Q3IK66G4iEO1+FYfH8/62FJZ+w0=; b=JHsQCb1f/V4oaG9Iz7D/P5WvMBSNLWsPyKS5t7VWJY2Z5EWdAda0kZ1fEv+HBETiCl G6njLq35WwulYZi9ANTtVM4OFYedVsc4hSKgtBI5/n7isWXA8Rtbx02JI7MJU38zO/NT V5hgjkmbgV0ZXfII7tGt0R5HkrwMoJUiwBlFQM+NiBeklSfM4L7zBy/2TFgVL+b6CRtW m8NON7cCT1k6SOfxbpUu/4FBtHRub74egC20rDgEV7GUgekLgnQ+i5hhGAl9+fZp3eNB 06yFni1UYzLK8scBsTjsPCEaemnmg67i5Do0zsCosa2Hltt2Xis+Lh/VYuByJmqeoNzZ STxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=tNPtplSwkQJpPGa9Q3IK66G4iEO1+FYfH8/62FJZ+w0=; b=ufr4kdHefGnWvzadKlwHyqwbBCCa8Lv7MNKpkgoERiwFUKnRXlhg42fW7FA7BvjgCO 8mNHiNvvIoFohDj/Hn33WUFLJqjfYI1XJMssq8Bwd1IfXREjfs37TpYAqPfECm8YXV5W nVPQEfQt7orQ1v2ixfytjqPAaj6y+1T0CYqPojZe1y5dKSn2BJIiDlcVNDrh6xXPuzKA huqwhPDB99HV3KcCVjrHy//RZxeYis9Fyio7f/CL/yaQtqePZlxwWIzJWMePyHdtFBaH Bi6JI1eM+XT4DiRoi7YJuz90K8CPyjKSMygfHrNG2J9L/337DM2nXYyiV00KXTXx0o5z Ahxg== X-Gm-Message-State: APjAAAVbX7JU7PiV87WY5OyAzaOF53CTRY//SnLPDshMLil7AO0DuFYR 7PEgq15inTxti14TiqwXngEV5CKjTsRSFQL7Fx4fVlGcnt8= X-Google-Smtp-Source: APXvYqzW9L08f2Og5SddMr/XhWTbAo/4PkPXNTLXnwLuRAfhhhIZzA88HhaYs5VtbwPp54HzJq1E1ygTHdkMsoAIpo4= X-Received: by 2002:a25:e7cf:: with SMTP id e198mr9764600ybh.334.1571517997530; Sat, 19 Oct 2019 13:46:37 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:169756 Archived-At: In client/server mode, if I have a focused client open in a X frame and then focus a terminal and open a file in that tty in a second emacs client, the X client is automatically raised and focused (more precisely, I just get an "emacs is ready" notification because of gnome/mutter focus stealing prevention). I can go back and forth between the two clients producing the same effect as many times as desired. I understand why this is happening. In server-visit-files: (let* ((minibuffer-auto-raise (or server-raise-frame minibuffer-auto-raise)) ... (set-buffer (find-file-noselect filen)) ... The problem is that if, for example, I open a bash shell in the tty buffer, I get a message like "Indentation setup for shell type bash" in the X minibuffer, so the X frame is autoraised. There are a couple of issues mixed here, I believe: 1. Maybe the scope of minibuffer-auto-raise = t should be restricted to the revert/write operations so that focus is not stolen because of any "accidental" little message. 2. The "Indentation setup for shell type bash" message clearly belongs to the tty frame but somehow is showing in the other frame. This seems harder to fix but I'm going to investigate it. Best regards -- Carlos