From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id yMTUJZmbn2d3KwEAqHPOHw:P1 (envelope-from ) for ; Sun, 02 Feb 2025 16:21:45 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id yMTUJZmbn2d3KwEAqHPOHw (envelope-from ) for ; Sun, 02 Feb 2025 17:21:45 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=TYeBcXND; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1738513305; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=/vz0AfSGO7V6MWXHLFMxUQdh97rUBfaee80XvkGCpF0=; b=EgNmndnIapTDL4XRM6ZOlcjFGfyrvoquNWmlIb2QG5LoB0qVrR564mUTS0cTJ6/vvjHeWH C5ax9rJGZ1mTWFZcZ0ywJcoFje+wxE1MRmPWR8/5ruwT59bW8YeSt6EjTJ3cuodo0CKO0L 0+4nndyIbR5Ypbfjj5u2MsjS5BfLY2kWMV3T7ZkRirKkDRPBoGx6p5GLJaCKBUHcrbPOGh RyERLkl3yodc8XSQq94LnKxa1rGdHDJhRBclUfFdX29d30RMTKnSRW5ReT9J3ciySkxDoK f4EyVAbiLSo05rfGgMEWdjduMq8cnMf+1vkmelUeC1YAPovWlIs8Q2BCkN1zqg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=TYeBcXND; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1738513305; a=rsa-sha256; cv=none; b=CXnvMeXzZVaXJJnVQvi8wNCVxVbrJtLIg1QIAgyPJmetjuyzO4CXqK8Hb4lOQF/y74wtXf P3QaqeIJmhUS671CHoeZG0G/NFq4izv9ou4TkU8y06eUnf4RSnL8JHpz17/9GzAscyJnd9 Db6CSXLwEG3StLy4dESQYxWs4FSCjD4yuEDUP2DBJH+RygVh3vexXRRE72XV8S4jKjmSND xC3D5Jffe81V3AyHHxiamCUfp4pzn8rGoPkJ6bYGVYHrj+hggbxsLIjgCKBlL7Bu1rqeMy WkdXK9MEFlXt+mGy6J03IILzjSg0yptNMxGn8hTFYU29yD30H7FPGl9MSGrfsA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1C1EF87F2D for ; Sun, 02 Feb 2025 17:21:45 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tecic-0004oz-V9; Sun, 02 Feb 2025 11:21:10 -0500 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 1tecia-0004ok-EF for emacs-orgmode@gnu.org; Sun, 02 Feb 2025 11:21:08 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1teciW-0003ja-S7 for emacs-orgmode@gnu.org; Sun, 02 Feb 2025 11:21:08 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 2064A240101 for ; Sun, 2 Feb 2025 17:21:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1738513262; bh=wCC+6fdfdxL7XLcR/fUgpDnwL1OTlFkJmcDDSr/BVv4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=TYeBcXND7Y08U2I53sBPK4YfzJEuMfSgfqnPRGfJofFklfZCBYTNFoX2K1tqaNlXV qFphgcJDImYDQGK/C3SpvBXSfiK+kDpvRBA0bGgIheCV0dys30mXkuKVrrwUd/kOee +Ai372PdMHYZ1Xu6DfGlXWpRUPfAJHIyXbXyRtHduCMzOoxvAahOrhw+HEV+HLMHOm 51vLKU+jmfEKCEnJ1oLeaZw0mV72LJ//I2Z0AnZbXiDAeZHMoMdKYM7hoVih4PHFGD +UnuNAY6s8Kz7w3Q2eRc7+ul1fq0YhST0iMyevFbsW2w6+qgEllx45RyxRUBPS9H5C 1tC/eFQCVjzlg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YmFHK3LzWz9rxM; Sun, 2 Feb 2025 17:21:01 +0100 (CET) From: Ihor Radchenko To: =?utf-8?Q?Bj=C3=B6rn?= Bidar Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-gnus-follow-link tries to select dead frame [9.8-pre (release_9.7.15-163-g3ff21c.dirty @ /home/bidar/.local/etc/emacs/lib/org/lisp/)] In-Reply-To: <87o6zn4m40.fsf@> References: <87v7twb1bw.fsf@localhost> Date: Sun, 02 Feb 2025 16:23:14 +0000 Message-ID: <87lduo1fkd.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.00 X-Spam-Score: -8.00 X-Migadu-Queue-Id: 1C1EF87F2D X-Migadu-Scanner: mx11.migadu.com X-TUID: RxT172KvFNYh --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Bj=C3=B6rn Bidar writes: >>> * Preconditions >>> - gnus-other-frame-object is a dead frame >> >> May you please describe when `gnus-other-frame-object' could become a >> dead frame? > > I assume when the frame that is in the object was closed. > > E.g. for example to trigger this state again I closed the Gnus frame I > was writing this reply in. Afterwards the frame is dead. Then, why not simply the attached patch? --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-ol-gnus-Do-not-err-when-gnus-frame-is-dead.patch Content-Transfer-Encoding: quoted-printable >From 73bb83c67dbda24c7b4455073482020b5e4e357b Mon Sep 17 00:00:00 2001 Message-ID: <73bb83c67dbda24c7b4455073482020b5e4e357b.1738513362.git.yantar= 92@posteo.net> From: Ihor Radchenko Date: Sun, 2 Feb 2025 17:20:50 +0100 Subject: [PATCH] ol-gnus: Do not err when gnus frame is dead MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit * lisp/ol-gnus.el (org-gnus-follow-link): Do not try to switch to dead frame. Reported-by: Bj=C3=B6rn Bidar Link: https://list.orgmode.org/orgmode/87o6zn4m40.fsf@/ --- lisp/ol-gnus.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/ol-gnus.el b/lisp/ol-gnus.el index 5cddc3790a..ac2cadbc66 100644 --- a/lisp/ol-gnus.el +++ b/lisp/ol-gnus.el @@ -228,7 +228,9 @@ (defun org-gnus-follow-link (&optional group article) "Follow a Gnus link to GROUP and ARTICLE." (require 'gnus) (funcall (org-link-frame-setup-function 'gnus)) - (when gnus-other-frame-object (select-frame gnus-other-frame-object)) + (when (and gnus-other-frame-object + (frame-live-p gnus-other-frame-object)) + (select-frame gnus-other-frame-object)) (let ((group (org-no-properties group)) (article (org-no-properties article))) (cond --=20 2.47.1 --=-=-= Content-Type: text/plain -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at --=-=-=--