From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Understanding the behaviour of Emacs and Emacs Client Date: Wed, 23 Feb 2022 14:26:50 +0200 Message-ID: <837d9lu5th.fsf@gnu.org> References: <87ley2b70o.fsf@codeisgreat.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16344"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 23 13:27:55 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nMqkK-00046o-Sd for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 23 Feb 2022 13:27:53 +0100 Original-Received: from localhost ([::1]:42572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nMqkJ-0005xN-7y for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 23 Feb 2022 07:27:51 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43418) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMqjJ-0005wu-VL for help-gnu-emacs@gnu.org; Wed, 23 Feb 2022 07:26:51 -0500 Original-Received: from [2001:470:142:3::e] (port=49894 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMqjE-0004XG-3J for help-gnu-emacs@gnu.org; Wed, 23 Feb 2022 07:26:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=b6Zmln8nD0eeUbBLsN0SrHKzNp15c6b5KKDHCyPBQeM=; b=T6rFxSb9PZ5Y vWhunAtU7lKgSU5JORR0Q9vGjh577/RHZHLKuNAyNL/WdWAtnQ5tUHi5pVrigWMOzgcsNX7FX00Py PwRyOOQNkWhg+9CpTED+a5whv8m+Qh3xkcE0fYHr2Iz7mjNZEwVRPSTW/2E/Z58XYB3eniOSitKXF r+BDIBpT8usCUPuof2v8Zv5HOWj6OZCxl9/8jMzVls4NL/VT2eIXCqO712eLES78/I3tWC2NSSRsC 3le0FIQFjaMj14Jw5gtoc4y+CRnARS3NDo7zw55+2l/Ba8eXlID7Tmdok9WbE/PUIT6LXai3yHF9l 8WRLmQpWDPE6d+qT+K0Jrg==; Original-Received: from [87.69.77.57] (port=2289 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMqjA-0001i8-Cz for help-gnu-emacs@gnu.org; Wed, 23 Feb 2022 07:26:42 -0500 In-Reply-To: <87ley2b70o.fsf@codeisgreat.org> (message from Pankaj Jangid on Wed, 23 Feb 2022 08:53:35 +0530) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:136168 Archived-At: > From: Pankaj Jangid > Date: Wed, 23 Feb 2022 08:53:35 +0530 > > 1. When I launch Emacs by clicking "Emacs" icon from apps. Emacs > launches as usual and shows "Emacs (Client)" near the Activities menu > in Gnome shell. And when I exit Emacs, C-x C-c, it is perfectly > shutdown. > > 2. When I launch Emacs by clicking "Emacs (Client)" icon from > apps. Emacs launches as expected. And shows "Emacs (Client)" near the > Activities menu. But when I want to exit this instance of Emacs, I > press C-x C-c and the frame is gone. But there is still an Emacs > process running. > > I want to know if this is the desired behaviour of Emacs. Yes. > And if Yes then what is the official way to terminate the residual > Emacs process in case (2) above? The official way is to type "M-x kill-emacs RET". (But in general, if you use the "client" icon, the assumption is that you don't want to do that. rather, leave the Emacs process running and use the client icon to open a new frame next time you want to do something in Emacs -- this way, you keep all the history and the buffers inside the session, and the startup will be faster.)