diff options
| author | Carsten Dominik | 2010-06-26 11:53:06 +0200 |
|---|---|---|
| committer | Romain Francoise | 2010-06-26 11:53:06 +0200 |
| commit | 3820f4296e2e9d397b9d1387db4b5199ba298d24 (patch) | |
| tree | 3ab823fcbd84ed4adff57709e263a17fd69dd085 | |
| parent | fac580ebfad46d89bfa3e01f53136f8404762ffa (diff) | |
| download | emacs-3820f4296e2e9d397b9d1387db4b5199ba298d24.tar.gz emacs-3820f4296e2e9d397b9d1387db4b5199ba298d24.zip | |
Cherry-pick commit 8bd9308 from the org-mode Git repository.
2010-06-26 Carsten Dominik <carsten.dominik@gmail.com>
* org-agenda.el (org-agenda-goto-calendar): Do not bind obsolete
variables.
* org.el (calendar): Require calendar now on top level in org.el
and define aliases to new variables when needed.
(org-read-date, org-goto-calendar): Do not bind obsolete
variables.
| -rw-r--r-- | lisp/org/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/org/org-agenda.el | 5 | ||||
| -rw-r--r-- | lisp/org/org.el | 21 |
3 files changed, 25 insertions, 11 deletions
diff --git a/lisp/org/ChangeLog b/lisp/org/ChangeLog index 6857a42862a..9c3c879046c 100644 --- a/lisp/org/ChangeLog +++ b/lisp/org/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2010-06-26 Carsten Dominik <carsten.dominik@gmail.com> | ||
| 2 | |||
| 3 | * org-agenda.el (org-agenda-goto-calendar): Do not bind obsolete | ||
| 4 | variables. | ||
| 5 | |||
| 6 | * org.el (calendar): Require calendar now on top level in org.el | ||
| 7 | and define aliases to new variables when needed. | ||
| 8 | (org-read-date, org-goto-calendar): Do not bind obsolete | ||
| 9 | variables. | ||
| 10 | |||
| 1 | 2010-06-22 Glenn Morris <rgm@gnu.org> | 11 | 2010-06-22 Glenn Morris <rgm@gnu.org> |
| 2 | 12 | ||
| 3 | * org-entities.el: Add explicit utf-8 coding cookie to file with | 13 | * org-entities.el: Add explicit utf-8 coding cookie to file with |
diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el index 50e78528256..07bb0b4681c 100644 --- a/lisp/org/org-agenda.el +++ b/lisp/org/org-agenda.el | |||
| @@ -3981,7 +3981,6 @@ MATCH is being ignored." | |||
| 3981 | "Get the (Emacs Calendar) diary entries for DATE." | 3981 | "Get the (Emacs Calendar) diary entries for DATE." |
| 3982 | (require 'diary-lib) | 3982 | (require 'diary-lib) |
| 3983 | (let* ((diary-fancy-buffer "*temporary-fancy-diary-buffer*") | 3983 | (let* ((diary-fancy-buffer "*temporary-fancy-diary-buffer*") |
| 3984 | (fancy-diary-buffer diary-fancy-buffer) | ||
| 3985 | (diary-display-hook '(fancy-diary-display)) | 3984 | (diary-display-hook '(fancy-diary-display)) |
| 3986 | (diary-display-function 'fancy-diary-display) | 3985 | (diary-display-function 'fancy-diary-display) |
| 3987 | (pop-up-frames nil) | 3986 | (pop-up-frames nil) |
| @@ -7312,9 +7311,7 @@ argument, latitude and longitude will be prompted for." | |||
| 7312 | (date (calendar-gregorian-from-absolute day)) | 7311 | (date (calendar-gregorian-from-absolute day)) |
| 7313 | (calendar-move-hook nil) | 7312 | (calendar-move-hook nil) |
| 7314 | (calendar-view-holidays-initially-flag nil) | 7313 | (calendar-view-holidays-initially-flag nil) |
| 7315 | (calendar-view-diary-initially-flag nil) | 7314 | (calendar-view-diary-initially-flag nil)) |
| 7316 | (view-calendar-holidays-initially nil) | ||
| 7317 | (view-diary-entries-initially nil)) | ||
| 7318 | (calendar) | 7315 | (calendar) |
| 7319 | (calendar-goto-date date))) | 7316 | (calendar-goto-date date))) |
| 7320 | 7317 | ||
diff --git a/lisp/org/org.el b/lisp/org/org.el index 7aa385fee9d..cc74f7ff4f6 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el | |||
| @@ -72,8 +72,19 @@ | |||
| 72 | 72 | ||
| 73 | (eval-when-compile | 73 | (eval-when-compile |
| 74 | (require 'cl) | 74 | (require 'cl) |
| 75 | (require 'gnus-sum) | 75 | (require 'gnus-sum)) |
| 76 | (require 'calendar)) | 76 | |
| 77 | (require 'calendar) | ||
| 78 | ;; Emacs 22 calendar compatibility: Make sure the new variables are available | ||
| 79 | (unless (boundp 'calendar-view-holidays-initially-flag) | ||
| 80 | (defvaralias 'calendar-view-holidays-initially-flag | ||
| 81 | 'view-calendar-holidays-initially)) | ||
| 82 | (unless (boundp 'calendar-view-diary-initially-flag) | ||
| 83 | (defvaralias 'calendar-view-diary-initially-flag | ||
| 84 | 'view-diary-entries-initially)) | ||
| 85 | (unless (boundp 'diary-fancy-buffer) | ||
| 86 | (defvaralias 'diary-fancy-buffer 'fancy-diary-buffer)) | ||
| 87 | |||
| 77 | ;; For XEmacs, noutline is not yet provided by outline.el, so arrange for | 88 | ;; For XEmacs, noutline is not yet provided by outline.el, so arrange for |
| 78 | ;; the file noutline.el being loaded. | 89 | ;; the file noutline.el being loaded. |
| 79 | (if (featurep 'xemacs) (condition-case nil (require 'noutline))) | 90 | (if (featurep 'xemacs) (condition-case nil (require 'noutline))) |
| @@ -13516,9 +13527,7 @@ user." | |||
| 13516 | (calendar-frame-setup nil) | 13527 | (calendar-frame-setup nil) |
| 13517 | (calendar-move-hook nil) | 13528 | (calendar-move-hook nil) |
| 13518 | (calendar-view-diary-initially-flag nil) | 13529 | (calendar-view-diary-initially-flag nil) |
| 13519 | (view-diary-entries-initially nil) | ||
| 13520 | (calendar-view-holidays-initially-flag nil) | 13530 | (calendar-view-holidays-initially-flag nil) |
| 13521 | (view-calendar-holidays-initially nil) | ||
| 13522 | (timestr (format-time-string | 13531 | (timestr (format-time-string |
| 13523 | (if with-time "%Y-%m-%d %H:%M" "%Y-%m-%d") def)) | 13532 | (if with-time "%Y-%m-%d %H:%M" "%Y-%m-%d") def)) |
| 13524 | (prompt (concat (if prompt (concat prompt " ") "") | 13533 | (prompt (concat (if prompt (concat prompt " ") "") |
| @@ -14578,9 +14587,7 @@ A prefix ARG can be used to force the current date." | |||
| 14578 | (let ((tsr org-ts-regexp) diff | 14587 | (let ((tsr org-ts-regexp) diff |
| 14579 | (calendar-move-hook nil) | 14588 | (calendar-move-hook nil) |
| 14580 | (calendar-view-holidays-initially-flag nil) | 14589 | (calendar-view-holidays-initially-flag nil) |
| 14581 | (view-calendar-holidays-initially nil) | 14590 | (calendar-view-diary-initially-flag nil)) |
| 14582 | (calendar-view-diary-initially-flag nil) | ||
| 14583 | (view-diary-entries-initially nil)) | ||
| 14584 | (if (or (org-at-timestamp-p) | 14591 | (if (or (org-at-timestamp-p) |
| 14585 | (save-excursion | 14592 | (save-excursion |
| 14586 | (beginning-of-line 1) | 14593 | (beginning-of-line 1) |