From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rehan Deen Newsgroups: gmane.emacs.bugs Subject: bug#54331: 27.2; Closing frames loaded from desktop-read Date: Fri, 11 Mar 2022 12:23:29 +0530 Message-ID: <87ee39j7yv.fsf@gmail.com> References: <87h785k5ro.fsf@gmail.com> <83r179d0xn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9405"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.5; emacs 27.2 Cc: 54331@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 11 07:54:33 2022 Return-path: Envelope-to: geb-bug-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 1nSZAX-0002J0-0b for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Mar 2022 07:54:33 +0100 Original-Received: from localhost ([::1]:54176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSZAV-0007zx-JN for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Mar 2022 01:54:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSZA5-0007z3-Tt for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2022 01:54:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42434) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nSZA1-0002ep-RT for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2022 01:54:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nSZA1-000869-PU for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2022 01:54:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Rehan Deen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Mar 2022 06:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54331 X-GNU-PR-Package: emacs Original-Received: via spool by 54331-submit@debbugs.gnu.org id=B54331.164698162131095 (code B ref 54331); Fri, 11 Mar 2022 06:54:01 +0000 Original-Received: (at 54331) by debbugs.gnu.org; 11 Mar 2022 06:53:41 +0000 Original-Received: from localhost ([127.0.0.1]:36331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSZ9g-00085T-Rg for submit@debbugs.gnu.org; Fri, 11 Mar 2022 01:53:41 -0500 Original-Received: from mail-pg1-f180.google.com ([209.85.215.180]:46712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSZ9f-00085F-7e for 54331@debbugs.gnu.org; Fri, 11 Mar 2022 01:53:39 -0500 Original-Received: by mail-pg1-f180.google.com with SMTP id o23so6699149pgk.13 for <54331@debbugs.gnu.org>; Thu, 10 Mar 2022 22:53:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:cc:subject:in-reply-to:message-id :date:mime-version:content-transfer-encoding; bh=dvPVyY5V05HfZhEVH64K9WCALqb5e7oojaCTL3DJCmg=; b=YHq10NoeP9IlctW0Nacb3QketqSrBwsWL0WccziDtWyYTU8xmYKCQTipR8DSgHVNXP kHDJVkbaUelZHycSVGRgCruXZVNIfRDB/PD1yuLKkDB2WE4oKblvfPfbbwlm2j/v628W //Big/XPWOcNs4U6l3rtc7sg8gJ5uDr7GkH8+RU5twE7NGgPTxfjF39gF9+UO/4Swd+/ 99Ao9TEucOTU7tSnng/lJ5pXRSuWuT29vfBrBkpNq0erDTNuzZ6OM77KGprVqQE/9kZb D0MXlmIusb2yH7liDJeQlAoyvOJ3OjZK+cSHwsIqpjDU1rYIsylPp8qmuX/Q8RXCIvp+ EN5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version:content-transfer-encoding; bh=dvPVyY5V05HfZhEVH64K9WCALqb5e7oojaCTL3DJCmg=; b=dvysHOQ7YgSv0u1USUQMVWi3h1gAqPAG4kLTxbl+UnlL+l4SdtklRWR/Yd1zocdGRz Qt7ndaRqHoN38a8LdpJz//Mk8THO5LBRMXfY19U8p/BnRXbo64wweEVdKL3qVUyv8rmj v461PJ29B3BB4vOSgmwn31Y+OZ8gCdiaXE8daGNYf183e02h44Gb9ZaJEDhTWDjCNImQ p/7pk7O+cbIRTZWIcorgol+7Tr3DBWEYrG+fKk0sRnt/6Uy703UPnqD+3iZfvtL8Nk+4 4UdUhDu+1lurhbPMZaN8YZHh5Ojenkri1GFJwMxK2u6v2l2J/lwaFbzvzwTK4DN66ydg vr6A== X-Gm-Message-State: AOAM5331GgwsL3LNdMOtlQMDSp51jxiHdIogcDe1sQvFda6Y3bemI45D 0Hfga3VMg66YAI1tC1TohSMoiQCF9Yg= X-Google-Smtp-Source: ABdhPJzO3VgUCaUBTHWL9B7HR85TyDDa3RhtqqX4o1kCWUO0d+DyedLN/Fov9tqhnQQfSbHWw9+bpg== X-Received: by 2002:a62:1a53:0:b0:4f7:69d:9731 with SMTP id a80-20020a621a53000000b004f7069d9731mr8541369pfa.31.1646981613048; Thu, 10 Mar 2022 22:53:33 -0800 (PST) Original-Received: from rd-t460 ([112.134.217.86]) by smtp.gmail.com with ESMTPSA id j67-20020a636e46000000b003740d689ca9sm7109175pgc.62.2022.03.10.22.53.31 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Mar 2022 22:53:32 -0800 (PST) In-reply-to: <83r179d0xn.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:228218 Archived-At: Huh, I have actually gotten used to `C-x C-c` simply closing the current frame that I am viewing while in client-server/daemon mode. I am prompted by the minibuffer on whether to save modified buffers -- including those not currently displayed in the frame I am closing -- but after hitting `y` the single frame closes. The help for `C-x C-c` says: > C-x C-c runs the command save-buffers-kill-terminal ... > > Offer to save each buffer, then kill the current connection. > If the current frame has no client, kill Emacs itself using > =E2=80=98save-buffers-kill-emacs=E2=80=99. > ... > If emacsclient was started with a list of filenames to edit, then > only these files will be asked to be saved. In "standalone" mode `C-x C-c` of course kills everything (after asking to save changes in modified buffers). Perhaps my daemon mode behavior is not standard. I am running this in i3wm on Manjaro Linux if that helps. How does one "usually" close a client frame? `C-x 5 0`, mapped to some shortcut? Eli Zaretskii writes: >> From: Rehan Deen >> Date: Fri, 11 Mar 2022 00:13:23 +0530 >>=20 >> A very annoying issue with `desktop-save` and `desktop-read` that I'm en= countering at the moment: >>=20 >> - I'm starting Emacs in `daemon-mode`, and then open a client frame via >> my WM shortcut for `emacsclient -c`. I do `desktop-read` and my saved = desktop opens with the 10 or so frames I had saved. >>=20 >> - When I go to one of the frames with a buffer I'm no longer interested = in, and do `C-x C-c`, I end up not just closing that particular frame, but = **all 10 or so of the frames that were open**. >>=20 >> - The Emacs daemon is still running, and opening another client frame sh= ows that the buffers haven't been killed, so nothing has been lost per se -= it's just that the arrangement of all the frames I had is just ruined. >>=20 >> Any idea how to stop this behaviour (i.e. being able to just kill one fr= ame from the saved configuration)?=20 > > Is this really related to desktop-read? AFAIK, "C-x C-c" deletes all > the frames displayed on the terminal, and I see the same behavior if I > start a daemon, invoke emacsclient to open a frame, and then make > several other frames from the same session. "C-x C-c" then closes all > the frames I made. > > I think this is the expected behavior. What am I missing?