From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#61546: [PATCH] Fix some org functionality breaking upon changing `calendar-buffer' Date: Tue, 02 May 2023 11:38:40 +0000 Message-ID: <87pm7jdku7.fsf@localhost> References: <87r0uq2los.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10428"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61546@debbugs.gnu.org, Stefan Kangas To: Thuna Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 02 13:36:26 2023 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 1ptoIz-0002TW-QP for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 May 2023 13:36:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptoIf-0004lx-7F; Tue, 02 May 2023 07:36: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 1ptoIc-0004lb-TT for bug-gnu-emacs@gnu.org; Tue, 02 May 2023 07:36:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ptoIc-000303-Kl for bug-gnu-emacs@gnu.org; Tue, 02 May 2023 07:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ptoIc-0000CV-0M for bug-gnu-emacs@gnu.org; Tue, 02 May 2023 07:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 May 2023 11:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61546 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 61546-submit@debbugs.gnu.org id=B61546.1683027347750 (code B ref 61546); Tue, 02 May 2023 11:36:01 +0000 Original-Received: (at 61546) by debbugs.gnu.org; 2 May 2023 11:35:47 +0000 Original-Received: from localhost ([127.0.0.1]:41837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptoIK-0000Bz-3D for submit@debbugs.gnu.org; Tue, 02 May 2023 07:35:47 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:55275) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptoIH-0000Bg-8C for 61546@debbugs.gnu.org; Tue, 02 May 2023 07:35:43 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 2F2CB240322 for <61546@debbugs.gnu.org>; Tue, 2 May 2023 13:35:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1683027335; bh=cpH+a/Bx4SD5GkCqV/yTf44KLlOvIvhHLTJhxhGTMvo=; h=From:To:Cc:Subject:Date:From; b=OhVikk27BL72j8OMoZkUmbqcZriKvReXfe41wQWO3644sVS7h7L3WqGtmS3FrGZxu 73fHKZZJpi3VbqEn3eeyMTcNvXEviTGr0Wc8OXPB1v2M0kPglLtJOSshgPpBvqsJIW N28pGvPwnVjLk99327gRMTVdxqGN0JP+pGYhKNK14fby/kjc6GmmOBafCVJUJSsocm V5Go2Yi3X3piD6GRNl4X3s5gTEmvYx2RngLmYXQqpKMruyRKn6KoK3hUyoMgrmkV+o NJEq9Q+U8YlZt5vu6d+gWf+iR/jU9aQlHrYulyuMAcp1bPi2PxfM9O9e6H+KZl2Eh7 MH/mvpN6X39PA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Q9dLG4lcBz6txj; Tue, 2 May 2023 13:35:34 +0200 (CEST) In-Reply-To: <87r0uq2los.fsf@gmail.com> 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:260911 Archived-At: Thuna writes: > Some code in org seems to break when calendar-buffer is modified, as > they rely on it being its default value, "*Calendar*". The attached > patch fixes that. I haven't tested it, however, it should work fine. > The `require's all seem correct as well. I now applied an equivalent patch onto main in Org. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=9ea50ca21 Stefan, please note that part of the patch is for Emacs: test/lisp/calendar/cal-julian-tests.el > diff --git a/test/lisp/calendar/cal-julian-tests.el b/test/lisp/calendar/cal-julian-tests.el > index e0d74e8a6cd..4207d1ee285 100644 > --- a/test/lisp/calendar/cal-julian-tests.el > +++ b/test/lisp/calendar/cal-julian-tests.el > @@ -47,7 +47,7 @@ with-cal-julian-test > (progn > (calendar) > ,@body) > - (kill-buffer "*Calendar*")))) > + (kill-buffer calendar-buffer)))) > > (ert-deftest cal-julian-test-goto-date () > (with-cal-julian-test > -- > 2.38.2 > -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at