From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: me--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#65719: [PATCH] Pass restart argument to 'kill-emacs-query-functions' Date: Thu, 02 Jan 2025 14:07:33 +0000 Message-ID: <60592464472415a836939db15e38a8cf@elken.dev> References: <329566cab29d3bdd4cd7f2257ec9f92a@elken.dev> <0817cde8dd8dab055dafe2e8aa3d30d5@elken.dev> <2aae66e7-f7e3-4da4-aee8-0ff9a8db1f0a@elken.dev> <0d97a409-b9c4-4204-b5d0-1bb386056c56@elken.dev> <86v86tr5dj.fsf@gnu.org> <86sf1xr3ep.fsf@gnu.org> Reply-To: me@elken.dev Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21360"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65719@debbugs.gnu.org, stefankangas@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 02 15:08:11 2025 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 1tTLru-0005OB-M8 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jan 2025 15:08:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTLro-0004SH-HI; Thu, 02 Jan 2025 09:08:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTLrm-0004S7-F3 for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 09:08:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tTLrm-0004NR-5y for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 09:08:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:MIME-Version:To:Subject; bh=9lJiZFgxBR5fbTYXSE87kBTikkcbt97z0JUnDxdHz/c=; b=B3HIesis+9i1c1Y0e9GNXgEcQ2mOs9qjmAYgN6lMnsXCHEOBHEhq4hxdCm/XCo5rhjpCLXodehuzc+f2HDbzDvDmPcLqLWgsdJxoB6mn/gaCM8a668wkYfYpayw91LdvenRXQ6mPRIt6bmjF4VgVKopJ728CmJsQrZaQuGbjkYCKYnNqOt3blSGoI+pCTcsE+f40UZc2Zb5/esx2mns/hmDd+dKSb5pnVlya8pnrkAEXN77iSoN/HtOiUQZqIKRyxyBjEcvgs9E5xjIemJNyEF6T9yzEdK7vLyZEi3yZ1CCaJGP4WVFAoBxl7/RKYblj9UJkFHThQejfiPBlwkKaEQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTLrl-00022W-V9 for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 09:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: me@elken.dev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jan 2025 14:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65719 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 65719-submit@debbugs.gnu.org id=B65719.17358268627795 (code B ref 65719); Thu, 02 Jan 2025 14:08:01 +0000 Original-Received: (at 65719) by debbugs.gnu.org; 2 Jan 2025 14:07:42 +0000 Original-Received: from localhost ([127.0.0.1]:43262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTLrR-00021f-HC for submit@debbugs.gnu.org; Thu, 02 Jan 2025 09:07:41 -0500 Original-Received: from mail.elken.dev ([165.22.120.78]:50223) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tTLrP-00021O-NH for 65719@debbugs.gnu.org; Thu, 02 Jan 2025 09:07:40 -0500 Original-Received: from authenticated-user (mail.elken.dev [165.22.120.78]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by mail.elken.dev (Postfix) with ESMTPSA id 7C9DB46331; Thu, 2 Jan 2025 15:07:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elken.dev; s=mail; t=1735826853; bh=Txh29vSxzFc1Y1s5V5EPrCJABaQFGnXgUMR93Xgu/Jk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=AeQfJXMZ89qU8sOd2cborGflAKCWMVQH93vv2Z2GHXkDq5ewWtc/Gwgi0W+5fWs9I t+Pe8j1vKzuVtzbFIO0vkvQBfepJBZaMIvhtjiY16k+WGO0mYu0f5Yj8EbEehuJodY Q/4527W9EHCyf43vw3La+at1GYVVdIbtfgH7Cdzp2ZW5Aqi4Qg7WaMoPA8nvaMQYUm +HD7oqfRI4fUqDobeyQEmaMQ/MVcsYfZ5tFbISEPwVDvhSNA972wFcLBjy7FuTj1BE JCYWt26Kue1pFg3JMKai/4uQgajomNhw1SD2rbGIElwsgI8QGgYph8xbjpNkAm+nOS KyZ4O47IMZnfw== In-Reply-To: <86sf1xr3ep.fsf@gnu.org> X-Sender: me@elken.dev 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298169 Archived-At: On 2024-02-12 17:35, Eli Zaretskii wrote: > [Please use Reply All to reply, to keep everybody CC'ed.] > >> Date: Mon, 12 Feb 2024 17:21:04 +0000 >> From: Elken >> >> The use case that raised it for me was loading perspective workspaces >> when I restart in place (due to a >> configuration change or other reason) but I don't want to load the >> workspaces every time I start Emacs. > > And why cannot you use kill-emacs-query-functions for this purpose? Bumping this patch again as it would be nice to have in. To answer the question more clearly (I thought I did before, my apologies) using kill-emacs-query-functions would technically work but also add another prompt every time I quit or restart. It makes sense to have a clear separation of quitting for good and restarting in place. I also noticed this morning that `kill-emacs` and `restart-emacs` don't handle the prefix argument for the hooks. Would you accept either another patch for that or an amendment to this patch? The current patch I imagine will need to be rebased anyway, so whichever is easier for you. Again apologies for letting this one slip so long. Thanks all, Ellis