From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: print a warning when starting Gtk+ emacs in daemon mode Date: Tue, 31 May 2011 12:05:37 -0300 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1306854366 29926 80.91.229.12 (31 May 2011 15:06:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 May 2011 15:06:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 31 17:05:57 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QRQVz-0004hO-6i for ged-emacs-devel@m.gmane.org; Tue, 31 May 2011 17:05:51 +0200 Original-Received: from localhost ([::1]:34902 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRQVy-0006ua-Mh for ged-emacs-devel@m.gmane.org; Tue, 31 May 2011 11:05:50 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRQVw-0006tw-BG for emacs-devel@gnu.org; Tue, 31 May 2011 11:05:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRQVo-0002cG-Sg for emacs-devel@gnu.org; Tue, 31 May 2011 11:05:48 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:43371) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRQVo-0002cC-R7 for emacs-devel@gnu.org; Tue, 31 May 2011 11:05:40 -0400 Original-Received: from 213-159-126-200.fibertel.com.ar ([200.126.159.213]:44380 helo=ceviche.home) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QRQVo-0001Bh-D3; Tue, 31 May 2011 11:05:40 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id C9544660DD; Tue, 31 May 2011 12:05:37 -0300 (ART) In-Reply-To: (Dan Nicolaescu's message of "Tue, 31 May 2011 10:00:15 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:139979 Archived-At: >>> We get many duplicate bug reports of Gtk+ emacs crashing when run in >>> daemon mode and the X11 connection dies. >>> How about printing a warning when starting Gtk+ emacs in daemon mode so >>> that the users are aware of the potential risks (and blame Gtk+ not >>> Emacs ...) >> We already print a blurb when the connection dies. Presumably it gets >> printed to the same place as your patch would, so if they don't see the >> one we already have, they probably won't see the one you suggest. > A very likely scenario: > 1. user starts emacs --daemon > 2. some time later starts an ssh connection to the machine and opens an > X11 frame, the terminal that started emacs --daemon is long unavailable > 3. if the ssh connection has a problem, then trying to print a message > there won't work OK. > What is the downside of printing a message at startup, where it is most > likely to be seen? I don't know if there could be a significant downside, tho I do expect that most daemon users only use Emacs with a single X11 display. So I'm OK with such a message (presuming it won't introduce any real problem), but please try to make the message less scary and making it clear that it only applies to the case of multiple displays. Stefan