From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: print a warning when starting Gtk+ emacs in daemon mode Date: Tue, 31 May 2011 10:00:15 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1306850432 3275 80.91.229.12 (31 May 2011 14:00:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 May 2011 14:00:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 31 16:00:29 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 1QRPUi-0001TH-Pb for ged-emacs-devel@m.gmane.org; Tue, 31 May 2011 16:00:28 +0200 Original-Received: from localhost ([::1]:37231 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRPUi-0000lg-EA for ged-emacs-devel@m.gmane.org; Tue, 31 May 2011 10:00:28 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRPUa-0000lK-Jk for emacs-devel@gnu.org; Tue, 31 May 2011 10:00:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRPUV-00065W-Hd for emacs-devel@gnu.org; Tue, 31 May 2011 10:00:20 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:58226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRPUV-00065Q-G6 for emacs-devel@gnu.org; Tue, 31 May 2011 10:00:15 -0400 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1QRPUV-0006hP-BD; Tue, 31 May 2011 10:00:15 -0400 In-Reply-To: (Stefan Monnier's message of "Tue, 31 May 2011 10:05:35 -0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (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:139969 Archived-At: Stefan Monnier writes: >> 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 What is the downside of printing a message at startup, where it is most likely to be seen?