From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Wahl Subject: [PATCH] org-agenda: Switch to current API for two calendar calls Date: Tue, 04 Nov 2014 10:55:39 +0100 Message-ID: <847fzbcmsk.fsf@tm6592.fritz.box> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlaqT-00083c-CE for emacs-orgmode@gnu.org; Tue, 04 Nov 2014 04:56:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlaqN-0007M7-0I for emacs-orgmode@gnu.org; Tue, 04 Nov 2014 04:56:13 -0500 Received: from plane.gmane.org ([80.91.229.3]:49340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlaqM-0007Lf-P9 for emacs-orgmode@gnu.org; Tue, 04 Nov 2014 04:56:06 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XlaqE-0002Sx-Ka for emacs-orgmode@gnu.org; Tue, 04 Nov 2014 10:55:58 +0100 Received: from stgt-4d02cefe.pool.mediaways.net ([77.2.206.254]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Nov 2014 10:55:58 +0100 Received: from marcowahlsoft by stgt-4d02cefe.pool.mediaways.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Nov 2014 10:55:58 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hi Orgers, I updated two occurances of calls to calendar functions. One replacement fixes the functionality of the 'h' key in the agenda for emacs 25. Best regards, Marco --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-org-agenda-Switch-to-current-API-for-two-calendar-ca.patch Content-Description: org-agenda: Switch to current API for two calendar calls >From 43b3944e1d5fea709bb713ed818d725e9dc2a0af Mon Sep 17 00:00:00 2001 From: Marco Wahl Date: Tue, 4 Nov 2014 10:37:22 +0100 Subject: [PATCH] org-agenda: Switch to current API for two calendar calls * lisp/org-agenda.el (org-agenda-phases-of-moon, org-agenda-holidays): Update to use the current API This commit fixes the display of holidays in the agenda for emacs 25. Further for getting the lunar phases the usage of an obsolete alias has been replaced by the current name. --- lisp/org-agenda.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index fd99bc9..97970a6 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -9583,12 +9583,12 @@ entries in that Org-mode file." (defun org-agenda-phases-of-moon () "Display the phases of the moon for the 3 months around the cursor date." (interactive) - (org-agenda-execute-calendar-command 'calendar-phases-of-moon)) + (org-agenda-execute-calendar-command 'calendar-lunar-phases)) (defun org-agenda-holidays () "Display the holidays for the 3 months around the cursor date." (interactive) - (org-agenda-execute-calendar-command 'list-calendar-holidays)) + (org-agenda-execute-calendar-command 'calendar-list-holidays)) (defvar calendar-longitude) ; defined in calendar.el (defvar calendar-latitude) ; defined in calendar.el -- 2.1.3 --=-=-= Content-Type: text/plain -- http://www.wahlzone.de GPG: 0x0A3AE6F2 --=-=-=--