From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Bj=C3=B6rn?= Bidar Newsgroups: gmane.emacs.help Subject: Opening next operation in new frame/window Date: Mon, 24 Jun 2024 14:57:57 +0300 Message-ID: <12698.0820366711$1719230335@news.gmane.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="37802"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 24 13:58:47 2024 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 1sLiLO-0009gQ-8R for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 24 Jun 2024 13:58:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLiKj-0001dz-QS; Mon, 24 Jun 2024 07:58:05 -0400 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 1sLiKh-0001dS-Oc for help-gnu-emacs@gnu.org; Mon, 24 Jun 2024 07:58:03 -0400 Original-Received: from thaodan.de ([2a03:4000:4f:f15::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sLiKf-0005A3-6l for help-gnu-emacs@gnu.org; Mon, 24 Jun 2024 07:58:03 -0400 Original-Received: from odin (dsl-trebng12-50dc75-154.dhcp.inet.fi [80.220.117.154]) by thaodan.de (Postfix) with ESMTPSA id A4B15D00016 for ; Mon, 24 Jun 2024 14:57:58 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1719230278; bh=cRB211XNTLWxr7INQWbm/Lr8XUmDfaEVASeW581sMK8=; h=From:To:Subject:Date; b=jNXLEDeDBVrinow7A9HzO+ul6Oi68vpMRA18GcKP1kNm3FYH66i9Wu+qZFb2+kLuj /m30MoCqgIvNDmuFbvU9KB0er+izfI6hFDPt1kEH1pWMMW62t3GPX479bBGoMybUyw TzLC96ih7jzQCJ3BonaYwFFDukhFOUYUx7M6Pnnarz3GMUURh7vE8Xxz59NLXgJ256 bm0Enoe7hPbAEwXJ3Dl+Zo2mQAY6q7ECOnQWgMdTWnvBea9+sRpKbApBCEmfzw34X0 zT+NAJFi19SyAF2YhhkVVnI6pJT1l8h4RBOjvMns5zfvaX5zk55n/AOXFaOeOOClDd igrPv87EI2BSdPhngTmSC1393Kit01dV3Bi/GWNXNANbUvj5ULQ85mAwZ/HLFX/WpW Fz8DP52fFLJzZvY9RyRJQ+bDTKCyfHbMJgp7Jlr9u+KqgRqTjdRp/HKpthQ3jp04No 4o3H2XBWM/V2BK3lYu77H0oX74T3ZX63kFlug1mfPMpy6K/EDohLWgGTLXheA0saNj NaMx+WxG58sakOuOVGVgzmDFQ3rgchNttnLWK62JGaCvqG0h4IHG/RtU3mpXGomU0h fAYCJuJkwKwZfWai9oOfKM5ti1zXSBsXeczCx1uexlA40CYT3WIGlZe8BgzN0E/4s5 26M7uz2y1Ih3mipaC170l/Nw= Autocrypt: addr=bjorn.bidar@thaodan.de; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlH Received-SPF: pass client-ip=2a03:4000:4f:f15::1; envelope-from=bjorn.bidar@thaodan.de; helo=thaodan.de X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, INVALID_MSGID=0.568, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146976 Archived-At: Hey, I'm using Emacs with a frame focused layout, meaning pop-up-frames and frames-only-mode. I want to open certain modes in a new frame that then contains a new window dedicated to that mode so that when I call quit-window, like for example in man or elfeed, the window will close and the new frame thous too. I looked into how quit-window works and noticed that it only destroys the frame when the window inside it is dedicated. I like to launch modes such as the before mentioned elfeed or vterm from my desktop launcher like any other desktop app such that when I close the buffer of those which only contains one window closes. Some modes have helper functions to open in a new dedicated window such as Gnus (gnus-other-window) or Info (info-other-window) where this is easy e.g. as in emacsclient --create-frame --eval '(gnus-other-windwo)'. Now I wonder is it the right approach to use (set-window-dedicated-p) on the newly created window for elfeed to make sure quit-window also kills the frame? E.g. as in: (defun elfeed-other-window () (set-window-dedicated-p (frame-selected-window) t) (elfeed)) Similarly I want to do the same in the I use to launch emacs packages: ;; Start different emacs packages (like elfeed or mu4e) (defhydra hydra-emacs-launcher (:color blue :hint nil) "Launch emacs package" ("i" circe "Circe - IRC" :column "Apps") ("e" elfeed-summary "Elfeed - RSS/Atom Newsreader") ("t" transmission "Transmission - Torrent") ("g" gnus-other-frame "Gnus - Mail") ("m" mastodon "Mastodon.el - Mastodon") ("p" proced "proced") ("c" quick-calc "calc - Quick calc" :column "Utils") ("d" docker "docker") ("C" calendar "calendar") ("T" world-clock "time - Display world time") ("s" hydra-systemctl/body "Systemctl") ("j" journalctl "Journalctl") ("t" multi-vterm "Vterm" :column "Misc") ("b" brain-fm-play "brain.fm - Stream music") ("E" elisp-index-search "elisp-index-search") ("S" scrot "Screenshot with scrot") ("w" woman "woman - Man page viewer")) Any other approaches welcome. I just want that quit-window just deletes the frame if it doesn't contain other-windows. Br, Bj=C3=B6rn