From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: how to tell graphical Emacs to shutdown cleanly from tty1? Date: Tue, 17 Nov 2015 10:34:43 +0600 Message-ID: References: <87si45wbp2.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1447734934 14533 80.91.229.3 (17 Nov 2015 04:35:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Nov 2015 04:35:34 +0000 (UTC) To: "help-gnu-emacs@gnu.org" , Tom Roche Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 17 05:35:29 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 1ZyXzL-0006RJ-MZ for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Nov 2015 05:35:27 +0100 Original-Received: from localhost ([::1]:55641 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyXzL-0002NV-0d for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Nov 2015 23:35:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58681) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyXz4-0002Kg-Vh for help-gnu-emacs@gnu.org; Mon, 16 Nov 2015 23:35:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZyXyy-00051u-LH for help-gnu-emacs@gnu.org; Mon, 16 Nov 2015 23:35:10 -0500 Original-Received: from mail-lb0-x22d.google.com ([2a00:1450:4010:c04::22d]:34961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyXyy-00051h-A8 for help-gnu-emacs@gnu.org; Mon, 16 Nov 2015 23:35:04 -0500 Original-Received: by lbbsy6 with SMTP id sy6so72111888lbb.2 for ; Mon, 16 Nov 2015 20:35:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type:content-transfer-encoding; bh=1zfCMLfvlbxNNIXeMWyXZ0YXR3Qgeq49BhBhAkP/UNo=; b=adlzjAJOb/8IS5JRGg+cqgEHa7aJ0Jd/62BYDAwVkRwJSs18AjzrcRGjNs0m5AytTb 80rHwYcuebR3n28pCXf+cqQw1lePpWDuMysckJqfUBactsA5uf5u1s1nFmz29rkANa9i XadOdk4MalvnoErTbmnXDydETskY4bNncZfGVlx/L86Bu3VBcfzwtP3oUCbWBA+4Sx7f GNsC3W703Aswf4KWEZ4fQzC7R9MwK7oE3lDlvzXz8X0pqvEC4EBPgAVTb8kE+rEx/AVO r9QIJ+3x6yV0IWuiOkFq48z2gL0JWt8M+8k7ir2wEUHI2hZJ4owhIb9klruTE4VVrd0B R5Kg== X-Received: by 10.112.149.97 with SMTP id tz1mr18854684lbb.57.1447734903543; Mon, 16 Nov 2015 20:35:03 -0800 (PST) Original-Received: by 10.112.212.43 with HTTP; Mon, 16 Nov 2015 20:34:43 -0800 (PST) In-Reply-To: <87si45wbp2.fsf@pobox.com> X-Google-Sender-Auth: GXVvU92g4Vj3bTFOgb5RI-WMrwo X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22d 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:108109 Archived-At: On Tue, Nov 17, 2015 at 9:23 AM, Tom Roche wrote: > Lately I run GNU Emacs mostly as GUI on X/tty7 (which I'll call "the desk= top" 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 shutdow= n -whatever now`. Unfortunately this does not seem to cause Emacs to shut d= own as cleanly as I'd like: I'd like Emacs to (e.g.) save any unsaved buffe= rs and save its emacs-desktop, but that doesn't seem to get done. (Am I mis= sing 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? Assuming that your Emacs is running a server, you can connect to it with emacs-client and then execute (kill-emacs).