From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Andrew Hyatt" Subject: Fix for emacs 23 bug on inserting diary entries Date: Thu, 24 Jul 2008 21:54:07 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1497581588==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KMCVb-0005a5-Hr for emacs-orgmode@gnu.org; Thu, 24 Jul 2008 21:54:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KMCVZ-0005Zt-Is for emacs-orgmode@gnu.org; Thu, 24 Jul 2008 21:54:14 -0400 Received: from [199.232.76.173] (port=45739 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KMCVZ-0005Zq-FV for emacs-orgmode@gnu.org; Thu, 24 Jul 2008 21:54:13 -0400 Received: from ug-out-1314.google.com ([66.249.92.173]:1168) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KMCVY-0005hs-Cw for emacs-orgmode@gnu.org; Thu, 24 Jul 2008 21:54:13 -0400 Received: by ug-out-1314.google.com with SMTP id l31so709016ugc.48 for ; Thu, 24 Jul 2008 18:54:07 -0700 (PDT) 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: emacs-orgmode@gnu.org --===============1497581588== Content-Type: multipart/alternative; boundary="----=_Part_40620_16281739.1216950847483" ------=_Part_40620_16281739.1216950847483 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I remember seeing an emacs 23 git branch at some point, but I looked around and cannot locate it anymore. At any rate, this may be a dup, but in emacs 23 inserting diary entries in the agenda does not work. Here's the patch to fix it: diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 23cda50..56c7d62 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -5120,7 +5120,7 @@ All the standard commands work: block, weekly etc." (unwind-protect (progn (fset 'calendar-cursor-to-date - (lambda (&optional error) + (lambda (&optional error dummy) (calendar-gregorian-from-absolute (get-text-property point 'day)))) (call-interactively cmd)) @@ -5307,5 +5307,3 @@ belonging to the \"Work\" category." ;; arch-tag: 77f7565d-7c4b-44af-a2df-9f6f7070cff1 ;;; org-agenda.el ends here - - ------=_Part_40620_16281739.1216950847483 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
I remember seeing an emacs 23 git branch at some point, but I looked around and cannot locate it anymore.  At any rate, this may be a dup, but in emacs 23 inserting diary entries in the agenda does not work.  Here's the patch to fix it:

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 23cda50..56c7d62 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -5120,7 +5120,7 @@ All the standard commands work: block, weekly etc."
       (unwind-protect
          (progn
            (fset 'calendar-cursor-to-date
-                 (lambda (&optional error)
+                 (lambda (&optional error dummy)
                    (calendar-gregorian-from-absolute
                     (get-text-property point 'day))))
              (call-interactively cmd))
@@ -5307,5 +5307,3 @@ belonging to the \"Work\" category."
 ;; arch-tag: 77f7565d-7c4b-44af-a2df-9f6f7070cff1
 
 ;;; org-agenda.el ends here
-
-
------=_Part_40620_16281739.1216950847483-- --===============1497581588== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1497581588==--