bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#59879: 30.0.50; [PATCH] Silencing the compiler about obsolete `org-s


From: Arash Esbati
Subject: bug#59879: 30.0.50; [PATCH] Silencing the compiler about obsolete `org-show-entry'
Date: Wed, 07 Dec 2022 11:29:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50

Hi all,

compiling from master (82849f9a20) shows the following warning:

  In gnus-icalendar--show-org-event:
  gnus/gnus-icalendar.el:606:8: Warning: `org-show-entry' is an obsolete
  function (as of 9.6); use `org-fold-show-entry' instead.

The following change fixes the issue:

--8<---------------cut here---------------start------------->8---
diff --git a/lisp/gnus/gnus-icalendar.el b/lisp/gnus/gnus-icalendar.el
index 1bffdf3513..f3665c3f1a 100644
--- a/lisp/gnus/gnus-icalendar.el
+++ b/lisp/gnus/gnus-icalendar.el
@@ -603,7 +603,7 @@ gnus-icalendar--show-org-event
     (when file
       (switch-to-buffer (find-file file))
       (goto-char (org-find-entry-with-id (gnus-icalendar-event:uid event)))
-      (org-show-entry))))
+      (org-fold-show-entry))))


 (defun gnus-icalendar--update-org-event (event reply-status &optional org-file)
--8<---------------cut here---------------end--------------->8---

The change applies also to emacs-29 branch in case it should be fixed
there.

Best, Arash





reply via email to

[Prev in Thread] Current Thread [Next in Thread]