From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Roche Newsgroups: gmane.emacs.help Subject: how to tell graphical Emacs to shutdown cleanly from tty1? Date: Mon, 16 Nov 2015 20:23:53 -0700 Message-ID: <87si45wbp2.fsf@pobox.com> Reply-To: help-gnu-emacs@gnu.org, Tom Roche NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1447730667 21182 80.91.229.3 (17 Nov 2015 03:24:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Nov 2015 03:24:27 +0000 (UTC) To: help-gnu-emacs@gnu.org, Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 17 04:24:19 2015 Return-path: Envelope-to: geh-help-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 1ZyWsS-0004I1-Ti for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Nov 2015 04:24:17 +0100 Original-Received: from localhost ([::1]:55411 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyWsS-0003tV-7o for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Nov 2015 22:24:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyWsI-0003t3-B2 for help-gnu-emacs@gnu.org; Mon, 16 Nov 2015 22:24:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZyWsF-0003Mt-7r for help-gnu-emacs@gnu.org; Mon, 16 Nov 2015 22:24:06 -0500 Original-Received: from pb-smtp0.int.icgroup.com ([208.72.237.35]:57450 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyWsE-0003Mk-Sq for help-gnu-emacs@gnu.org; Mon, 16 Nov 2015 22:24:03 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-smtp0.pobox.com (Postfix) with ESMTP id 82F022D4CA; Mon, 16 Nov 2015 22:24:00 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:reply-to:date:message-id:mime-version:content-type; s= sasl; bh=9KcAZWr0KgI1gYxHnJsaNSDkTXA=; b=YGGAcgr62xYfBRhNNDhSiFZ LqbzQ4/wNQJNSEf868exsG04jdaIZs87YmmyH8tQZPujkp4lGirVCpA/U7vzAsjf tv1xdNHLAfaeC0yziU+JpO2msVAIOt8QEZdx+BYaVf+F4A7NwudTKaDEwnPkNJct Aqz9yafXrEd7UaOVFUQk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:subject :reply-to:date:message-id:mime-version:content-type; q=dns; s= sasl; b=ciAHzyvshGxaSph3IfRvu7xA2kQCREDz5S+dSlw6ZhserOOQwH0rHuym DtVUHdGB7FhacGs1MKMH7TitEGCz1pO/O0kZDxbkqfkx7hFtKv7fuUxi3wHCFqK+ eBVF6nPd55yg7lr6c7tee7f5sEA1SoM4IIQm8nAFgMEMtYThAbw= Original-Received: from pb-smtp0.int.icgroup.com (unknown [127.0.0.1]) by pb-smtp0.pobox.com (Postfix) with ESMTP id 6FC122D4C9; Mon, 16 Nov 2015 22:24:00 -0500 (EST) Original-Received: from tlrW510.pobox.com (unknown [173.25.5.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp0.pobox.com (Postfix) with ESMTPSA id AEC022D4C8; Mon, 16 Nov 2015 22:23:59 -0500 (EST) User-Agent: GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5) X-Pobox-Relay-ID: A4B7E862-8CDA-11E5-A535-6BD26AB36C07-07218935!pb-smtp0.pobox.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.72.237.35 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108105 Archived-At: Lately I run GNU Emacs mostly as GUI on X/tty7 (which I'll call "the desktop" as opposed to emacs-desktop) on one of my Debian laptops. Occasionally the desktop hangs, in which case I usually can goto tty1 and `sudo shutdown -whatever now`. Unfortunately this does not seem to cause Emacs to shut down as cleanly as I'd like: I'd like Emacs to (e.g.) save any unsaved buffers and save its emacs-desktop, but that doesn't seem to get done. (Am I missing something?) So I'm thinking that, in this usecase, I should utter something from tty1 (before `shutdown`) to tell Emacs to shutdown cleanly ... but I don't know what to say. How to do this? TIA, Tom Roche