From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#2176: Observations on the splash screen - and signal-process Date: Sat, 01 Dec 2012 10:12:38 +0800 Message-ID: <87ehjaed0p.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1354327977 22385 80.91.229.3 (1 Dec 2012 02:12:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Dec 2012 02:12:57 +0000 (UTC) Cc: 2176@debbugs.gnu.org To: storm@cua.dk (Kim F. Storm) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 01 03:13:09 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TecZo-0002Gq-HT for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Dec 2012 03:13:08 +0100 Original-Received: from localhost ([::1]:58675 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TecZd-0003Bs-0F for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Nov 2012 21:12:57 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TecZa-0003BS-JS for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2012 21:12:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TecZZ-00034h-GY for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2012 21:12:54 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TecZZ-00034U-Ct for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2012 21:12:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Tecbd-0007Wd-Hb for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2012 21:15:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Dec 2012 02:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2176 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 2176-submit@debbugs.gnu.org id=B2176.135432809728906 (code B ref 2176); Sat, 01 Dec 2012 02:15:01 +0000 Original-Received: (at 2176) by debbugs.gnu.org; 1 Dec 2012 02:14:57 +0000 Original-Received: from localhost ([127.0.0.1]:47707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TecbY-0007WA-Vm for submit@debbugs.gnu.org; Fri, 30 Nov 2012 21:14:57 -0500 Original-Received: from mail-da0-f44.google.com ([209.85.210.44]:39451) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TecbV-0007W1-Rp for 2176@debbugs.gnu.org; Fri, 30 Nov 2012 21:14:55 -0500 Original-Received: by mail-da0-f44.google.com with SMTP id z20so428281dae.3 for <2176@debbugs.gnu.org>; Fri, 30 Nov 2012 18:12:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=d3Sa41eikMzyvrGrnL4pElIP4jKvWCPnswi4hzpOhTs=; b=Rh4eZKm6usw7n2G1bTDkaUy8Ao5wl+wOa3hcqqnyw2ylbDvLXKAcgBXlEV84yLZgxM fELJwTpT1nQ+BMzcMZVg2IBz2NJ6wuYHNKvcQkXgaB+jxddaxPSmWpld3CI3wu+vrX+T xMZoO7UbMSl2R7JKcavN49sGC328M/SI5+qg/hQJes/uPccid+nx4y0r4Gp/GHo2DW4L nN8V6Es8U1iAEnu34oSfTHfQqEh31K2XfCdGOeHcHRwWz02sDsqZeJGKrJeuKlbJMOgD o4Cu+Eu7W9VtvXlZYyU54hpfSBSuMyh9bdjScOBH2mqeh26NOijian+bzdDLvNSOuNyC tjVg== Original-Received: by 10.68.197.68 with SMTP id is4mr10708663pbc.30.1354327963565; Fri, 30 Nov 2012 18:12:43 -0800 (PST) Original-Received: from ulysses (cm198.gamma83.maxonline.com.sg. [202.156.83.198]) by mx.google.com with ESMTPS id a4sm3824289paw.21.2012.11.30.18.12.40 (version=SSLv3 cipher=OTHER); Fri, 30 Nov 2012 18:12:42 -0800 (PST) In-Reply-To: (Kim F. Storm's message of "Sat, 24 Jan 2009 19:08:34 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.90 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:67710 Archived-At: storm@cua.dk (Kim F. Storm) writes: > 1) Shouldn't "Meta-x" be "M-x" here ? > 2) Couldn't we make this a "clickable" "Recover Session" button > like the Open file... instead of the text? > 3) Maybe rephrase it to something like: Done in trunk, thanks. > Maybe emacs should check the saved sessions and filter out the > currently running sessions ... > A simple (signal-process PID 0) would suffice -- unfortunately, the > doc string for signal-process does not describe the return value > in this case (currently it is 0 if the process exists and -1 otherwise > - but better return values would probably be t or nil). I don't think this would be strictly correct, since pids are reusable. Anyway, it seems like over-engineering. > Finally, wouldn't it make sense if (signal-process PID nil) checked > for the existense of process PID - using signal 0 is probably > non-portable. I don't think it makes sense to overload `signal-process' for this purpose; there is already `process-attributes'.