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: Sun, 27 Oct 2019 08:02:34 +0200 Message-ID: <83zhhmsp39.fsf@gnu.org> References: <83tv84540m.fsf@gnu.org> <83v9si2y9u.fsf@gnu.org> <83a79u2oih.fsf@gnu.org> <83y2xe12ut.fsf@gnu.org> <83r23610oc.fsf@gnu.org> <83ftjfvkov.fsf@gnu.org> <83imobtjnc.fsf@gnu.org> <834kzuu5ir.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="265746"; 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 Sun Oct 27 07:03:13 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 1iObdv-0016wc-0Y for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Oct 2019 07:03:11 +0100 Original-Received: from localhost ([::1]:44172 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iObdt-0004VS-EL for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Oct 2019 02:03:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60623) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iObdn-0004OJ-8M for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2019 02:03:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iObdm-0007qk-9R for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2019 02:03:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:32798) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iObdm-0007qe-5x for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2019 02:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iObdl-000781-Lo for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2019 02:03: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: Sun, 27 Oct 2019 06:03: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.157215617127384 (code B ref 37826); Sun, 27 Oct 2019 06:03:01 +0000 Original-Received: (at 37826) by debbugs.gnu.org; 27 Oct 2019 06:02:51 +0000 Original-Received: from localhost ([127.0.0.1]:41619 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iObda-00077c-NY for submit@debbugs.gnu.org; Sun, 27 Oct 2019 02:02:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51551) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iObdZ-00077P-4f for 37826@debbugs.gnu.org; Sun, 27 Oct 2019 02:02:49 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iObdT-0007me-Vz; Sun, 27 Oct 2019 02:02:44 -0400 Original-Received: from [176.228.60.248] (port=1747 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iObdS-0007Ok-Vx; Sun, 27 Oct 2019 02:02:43 -0400 In-reply-to: (message from Carlos Pita on Sun, 27 Oct 2019 02:45:31 -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:170232 Archived-At: > From: Carlos Pita > Date: Sun, 27 Oct 2019 02:45:31 -0300 > Cc: Juanma Barranquero , 37826@debbugs.gnu.org > > Hi Eli, the frame is not raised for a -t shell script nor for any > other scenario you listed (considering a very limited set of examples, > at least). This change is similar to my first patch except that mine > also covered the handful of hooks surrounding that part. Most importantly, it affected the question we ask there if the file is gone. > But even if yours is more selective it still could be letting an > error pass silently You mean, errors inside find-file-noselect? Maybe I'm missing something, but I'd expect such an error to be displayed as usual. Can you simulate an error there and see what happens? Also, an important use case is when the file visited by the client with -t has an auto-save file. Emacs should display a message in that case; can you see if it gets displayed, so the user could see it? (It's possible that the message is overwritten by "When done with a buffer, type ..." which the server always displays, but it's important that the user could see the message about auto-save file for a second or so.)