From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id WDBAFMaTpmbpwAAAqHPOHw:P1 (envelope-from ) for ; Sun, 28 Jul 2024 18:53:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id WDBAFMaTpmbpwAAAqHPOHw (envelope-from ) for ; Sun, 28 Jul 2024 20:53:58 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nnm0QBj0; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1722192838; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=oopdHIz8RJBDaL6xYispMLOgoUyWPqSnRs8svbp70NU=; b=gDrv3xkOfQYJevcLvzxxvvhk93rRErrLYvNbTMI0seMVHkGbHpP02FzWwhHQV5DOtcgQnk YMDUdmFNHttj/dqw+e0iX3MyX62lcIC2aLLANujcv5yVNp6YI9yYxPaZOzl1QbyinmrNeX cLIx0IFBzBRfVBVvCqX2FbwEyMi4dxpoqT+27yvIoQJMsShWeQvxNitQM/BrI47Nl4aWq7 6/H3+KT1YZL9okycJNIOtoPj+8X1dUnShL2/kNRAePPxAw/7XUHdXV+C9GjyLxc0tEPcIh Al2m5icpkFSJePAK3IEtTm3fxAA6BJa/jSCnXSyxURd1Y0famAgrrTa3dzP/dA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nnm0QBj0; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1722192838; a=rsa-sha256; cv=none; b=i4OEu77vXueeGVzah8pQk68sPkuWeOD4nRjl3LKM4TWvj2vcLDmggoKN0WBqD/LVcbCH3M 8rmiy3Tx6dQydJ8GKdLkYT/TeiiZSN0eL1puczOfnlwSdSc1Nbggk38spGo0r1GJzZ8FUT EhQ7a6K2P6XFwbrjL0e3Sb3u+3WmO5RArwCeyHhzZYZphHRzndbUCcEcdBUwDUh/S+RDC+ spg/TonqyvsPpjU5j0NgBReADRJxMAolze1K2CdiccsVul/bGED85cVYnkVTQuqqhOGQ0l UktsMvuEsL1z4B+c7L+d7mP8J2KuCYUHbfQOX9amWD1fb49dOWqyCqw2IDdhuA== 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 BAD7639988 for ; Sun, 28 Jul 2024 20:53:57 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sY918-0004EJ-7m; Sun, 28 Jul 2024 14:53:14 -0400 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 1sY915-0004E6-AD for emacs-orgmode@gnu.org; Sun, 28 Jul 2024 14:53:11 -0400 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 1sY912-0000QH-Up for emacs-orgmode@gnu.org; Sun, 28 Jul 2024 14:53:11 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 1BFE7240101 for ; Sun, 28 Jul 2024 20:53:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1722192787; bh=CWfpb7OUPkQZ1L3IKzHFqccG81BNP5bhl6VRQuryj4g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=nnm0QBj0BbZuBdDr+0qe5fPalkuPRDrwU+JdZgg4UJByvxqtvfPeurAGs/em/P//Y B8sF4cRZzW8+OMvQg9zDUlbXpAJ9WKzM2b+Ey9CyRQ/fEyqesSthTFUIxi89KiR1Lm yhUff4wlqINgumIrC4R95qQ86DD9rl5s3icGU636fDBGKpdhMGdQLVtqTl6/JbHlPC JtuoePAs1ghfkiVUjf50L2DjS7SFK0IyT3+Epj/58yDC+Mc+uK+BQjPLjrH6fI+u8B cSbp5uJnQPu+nV6ccvLufFbW7cTPB72cTnLBf1Xztku+e9Sotk5m6bv1xqPch8m8Ni CWC9V9rqb8f0A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WX9c20DBkz6v08; Sun, 28 Jul 2024 20:53:06 +0200 (CEST) From: Ihor Radchenko To: =?utf-8?Q?S=C5=82awomir?= Grochowski Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] `org-agenda-write' (error "No buffer named *Org Agenda*") In-Reply-To: <87ed7dwygq.fsf@gmail.com> References: <87ed7dwygq.fsf@gmail.com> Date: Sun, 28 Jul 2024 18:54:29 +0000 Message-ID: <875xspmjoa.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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, 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: BAD7639988 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -9.64 X-Spam-Score: -9.64 X-TUID: /0ZOsxz7vzKa S=C5=82awomir Grochowski writes: > I am encountering an error when running the `org-agenda-write' command on > any 'Agenda Views'. The error message is: > (error "No buffer named *Org Agenda*").=20 > > Despite this error, the file is created successfully. The part of the > code from `org-agenda-write' that triggers this error is: > > (set-buffer (or agenda-bufname > ;; FIXME: I'm pretty sure called-interactively-p > ;; doesn't do what we want here! > (and (called-interactively-p 'any) (buffer-name)) > org-agenda-buffer-name)) > > I commented out this code, and everything seems to work fine. However, I > am unsure of the purpose of this code and whether commenting it out is > the right solution. I agree that the code you commented is redundant and also harmful when used with sticky agendas (despite multiple previous attempted fixes). Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3D433fbdbc63 --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at