From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#37826: Very annoying autoraise client/server behavior with -t option Date: Sat, 26 Oct 2019 13:57:04 +0300 Message-ID: <83ftjfvkov.fsf@gnu.org> References: <83tv84540m.fsf@gnu.org> <83v9si2y9u.fsf@gnu.org> <83a79u2oih.fsf@gnu.org> <83y2xe12ut.fsf@gnu.org> <83r23610oc.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="75985"; mail-complaints-to="usenet@blaine.gmane.org" Cc: lekktu@gmail.com, 37826@debbugs.gnu.org To: Carlos Pita Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 26 12:59:16 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 1iOJmu-000JdF-8g for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Oct 2019 12:59:16 +0200 Original-Received: from localhost ([::1]:39680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iOJmt-0005R2-4w for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Oct 2019 06:59:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33029) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iOJlk-0002fU-9f for bug-gnu-emacs@gnu.org; Sat, 26 Oct 2019 06:58:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iOJli-00018W-5Q for bug-gnu-emacs@gnu.org; Sat, 26 Oct 2019 06:58:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59152) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iOJli-00018M-2h for bug-gnu-emacs@gnu.org; Sat, 26 Oct 2019 06:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iOJlh-0008Hy-Vs for bug-gnu-emacs@gnu.org; Sat, 26 Oct 2019 06:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Oct 2019 10:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37826 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 37826-submit@debbugs.gnu.org id=B37826.157208744431815 (code B ref 37826); Sat, 26 Oct 2019 10:58:01 +0000 Original-Received: (at 37826) by debbugs.gnu.org; 26 Oct 2019 10:57:24 +0000 Original-Received: from localhost ([127.0.0.1]:39740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iOJl5-0008H4-WA for submit@debbugs.gnu.org; Sat, 26 Oct 2019 06:57:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52136) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iOJl4-0008Gm-9m for 37826@debbugs.gnu.org; Sat, 26 Oct 2019 06:57:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iOJkz-0000rv-2w; Sat, 26 Oct 2019 06:57:17 -0400 Original-Received: from [176.228.60.248] (port=2208 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iOJky-0002r6-8v; Sat, 26 Oct 2019 06:57:16 -0400 In-reply-to: (message from Carlos Pita on Mon, 21 Oct 2019 17:14:32 -0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:170191 Archived-At: > From: Carlos Pita > Date: Mon, 21 Oct 2019 17:14:32 -0300 > Cc: Juanma Barranquero , 37826@debbugs.gnu.org > > I've addressed this point in the less sketchy patch I'm attaching, it > was simpler than I'd though, I believe I'm covering all input cases. Thanks. We generally prefer not to use advice-add etc. in our own code. What I had in mind was to modify the places where such messages originate, and make them use delay-message under the right circumstances. If there's some mechanism to do this without changing each place, I'm okay with that, but using advice is not one of them. > Btw, here is another noisy case: when visiting a new file you get a > "(New file)" message. FWIW, I cannot reproduce this on my system. In fact, I cannot even reproduce your original reported issue with visiting a shell-scrip-mode file: I get a new frame with the message, and no old frame is raised. Are you using something other than "emacsclient -c"? If not, I guess this is specific to your window-manager? Or what am I missing?