From mboxrd@z Thu Jan 1 00:00:00 1970 From: Noorul Islam K M Subject: Re: Minor bug: org-agenda-holidays Date: Wed, 22 Dec 2010 14:40:46 +0530 Message-ID: <877hf2dvft.fsf@noorul.maa.corp.collab.net> References: <87fwtqe0y1.fsf@noorul.maa.corp.collab.net> <4D11AE5C.6060504@xnet.co.nz> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from [140.186.70.92] (port=33112 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVKkj-0007md-O1 for emacs-orgmode@gnu.org; Wed, 22 Dec 2010 04:12:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PVKki-0006l5-CQ for emacs-orgmode@gnu.org; Wed, 22 Dec 2010 04:12:57 -0500 Received: from mail-iw0-f169.google.com ([209.85.214.169]:36219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PVKki-0006kz-9S for emacs-orgmode@gnu.org; Wed, 22 Dec 2010 04:12:56 -0500 Received: by iwn40 with SMTP id 40so5604134iwn.0 for ; Wed, 22 Dec 2010 01:12:55 -0800 (PST) In-Reply-To: <4D11AE5C.6060504@xnet.co.nz> (Paul Sexton's message of "Wed, 22 Dec 2010 20:53:00 +1300") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Paul Sexton Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Paul Sexton writes: > Yes. > "Wrong type argument: commandp, list-calendar-holidays" > > I think the following patch will fix the issue for you. Log [[[ Make org-agenda-holidays compatible with older versions of emacs. * lisp/org-agenda.el (org-agenda-holidays): Make this function compatible with older versions of emacs. ]]] Thanks and Regards Noorul --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=add-backward-compatibility-for-list-calendar-holidays.txt diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 19535b4..217c701 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -7685,7 +7685,9 @@ the cursor position." (defun org-agenda-holidays () "Display the holidays for the 3 months around the cursor date." (interactive) - (org-agenda-execute-calendar-command 'list-calendar-holidays)) + (if (fboundp 'list-calendar-holidays) + (org-agenda-execute-calendar-command 'list-calendar-holidays) + (org-agenda-execute-calendar-command 'calendar-list-holidays))) (defvar calendar-longitude) (defvar calendar-latitude) --=-=-= Content-Type: text/plain > On 22/12/2010 8:11 p.m., Noorul Islam K M wrote: >> Paul Sexton writes: >> >>> In org-agenda.el, the function org-agenda-holidays is coded as: >>> >>> (defun org-agenda-holidays () >>> "Display the holidays for the 3 months around the cursor date." >>> (interactive) >>> (org-agenda-execute-calendar-command 'list-calendar-holidays)) >>> >>> 'list-calendar-holidays' does not exist. It should be >>> 'calendar-list-holidays'. >>> >> Did you get any error when you executed this function? >> >> Thanks and Regards >> Noorul --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--