From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.help Subject: Re: Mac: Don't quit Emacs when window is closed Date: Mon, 18 Jan 2016 18:03:39 +0000 Message-ID: References: <87lh7n96er.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1453140246 2899 80.91.229.3 (18 Jan 2016 18:04:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Jan 2016 18:04:06 +0000 (UTC) To: Barry Margolin , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 18 19:04:06 2016 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 1aLE9s-0002xe-LU for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Jan 2016 19:04:04 +0100 Original-Received: from localhost ([::1]:33061 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLE9r-00022X-Oi for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Jan 2016 13:04:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLE9g-00022J-5F for help-gnu-emacs@gnu.org; Mon, 18 Jan 2016 13:03:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLE9f-0002Xp-3o for help-gnu-emacs@gnu.org; Mon, 18 Jan 2016 13:03:52 -0500 Original-Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:34718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLE9e-0002XT-SG for help-gnu-emacs@gnu.org; Mon, 18 Jan 2016 13:03:51 -0500 Original-Received: by mail-wm0-x22d.google.com with SMTP id u188so114053378wmu.1 for ; Mon, 18 Jan 2016 10:03:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=fnolkzRh0Nhe5CVCt9SqxM1xgGngCsuoXoDJDzwBdH4=; b=IlGDHsvx9FyWRURGBvgL5C2fge9l0wYxEIfzJdWB0blPX78FH+Vs6uzfl5B6ift4ie YMPyxiIAnTwp6SRioZ6fYh0mwt5B1Ay2aZHLZmgwIZftWqugJkNN2sXCsZ3AwGyNLAE3 8B/YgZrQuZF3dclabcIXiRq915Oa85puLyXr6nc9wlj+zDlCtcbcxggKD0loI5Zd0XgT Laq2Yhno0Q0zirsoIGxWoFIh8VdyQ8hUyUjnQz/bRu9j0Y3YJy+Ig4OYECETgt4tmRDc 6rKPZQFwD5N3DZjfseLjyfNorfXYBoWWlvwZjx7olFwkihEIpXkEOl5BEpEogu9E9nOk aVJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; bh=fnolkzRh0Nhe5CVCt9SqxM1xgGngCsuoXoDJDzwBdH4=; b=CCfJZes4bG4g4Ulx1WcO/YI+ii93XS7GYaGDGOJPQ+Dbzo4QuvHiGu+McQKjLSoIc0 5VRUO6nXgzvBsyjr08WQGJ9uJhB2hi+q9HYgkbw4LXIghaF7PEWQvm7ZCFBlo67xMrF4 L7zT7Dxavqpeg8pTBJnyng28Qp8BdhCFfcMYOr4ZRskoKlDAiZfa7osJXPcOWxgGbeBl S3Y4KmzK+wiYNjDoQxfOu37B94VuxZiON6bOwBTMC/NUnuPCJkjmxgMCXG7MbTNMjezG /dZMdjwOw9C6t28J+P/7RhG7fEuzSDkZGjX3PmW/HONCGCzLv42grY9I9t3EC6lLn8BZ 0rZA== X-Gm-Message-State: ALoCoQmX/bIkXy8oZ2oP5TaQo9z4PrRf9MSXb7xjPREKq6NsRdbxkKotT3KrChWr6Rp3G01fjgwhEfDujKsTB/z0FYHBXTRoYw== X-Received: by 10.194.116.170 with SMTP id jx10mr24938889wjb.166.1453140228814; Mon, 18 Jan 2016 10:03:48 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22d X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:108769 Archived-At: Barry Margolin schrieb am Mo., 18. Jan. 2016 um 18:10 Uhr: > In article , > Random832 wrote: > > > Marcin Borkowski writes: > > > Would this help a bit? > > > > > > (setq confirm-kill-emacs #'yes-or-no-p) > > > > The wider issue is that people expect to be able to close all windows > > and keep an app open (the menu remains open). > > It's perfectly normal and expected for Mac applications, which is one of > the reasons why the Mac menu bar is attached to the screen, not > individual windows. Some single-window applications automatically quit > when you close that window, but this would be unusual for multi-window > applications. > > Basically, Emacs should run the equivalent of (delete-frame nil :force) when closing its window on OS X, not kill-emacs. When clicking the dock icon without a frame present, a new one should be created with e.g. make-frame.