diff options
| author | Glenn Morris | 2008-04-07 02:02:15 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-04-07 02:02:15 +0000 |
| commit | eee6134c66c38d89ce268069ec07e102df79912c (patch) | |
| tree | 6930c371e6c76a08fdd2d962d63fcea983096dc6 | |
| parent | e803eab7779f54910464567216ed486d467b8537 (diff) | |
| download | emacs-eee6134c66c38d89ce268069ec07e102df79912c.tar.gz emacs-eee6134c66c38d89ce268069ec07e102df79912c.zip | |
(org-agenda-format-date-aligned, org-agenda-execute-calendar-command):
Access date elements directly rather than using calendar functions.
(org-read-date, org-goto-calendar, org-agenda-goto-calendar):
Also set calendar-view-diary-initially-flag,
calendar-view-holidays-initially-flag
(org-get-entries-from-diary): Also set diary-fancy-buffer.
(org-agenda-execute-calendar-command): No need to set displayed-day.
| -rw-r--r-- | etc/NEWS | 7 | ||||
| -rw-r--r-- | lisp/ChangeLog | 96 | ||||
| -rw-r--r-- | lisp/org/org.el | 28 |
3 files changed, 119 insertions, 12 deletions
| @@ -570,6 +570,13 @@ The variable `european-calendar-style' is obsolete - use `calendar-date-style'. | |||
| 570 | Similarly, the commands `american-calendar' and `european-calendar' | 570 | Similarly, the commands `american-calendar' and `european-calendar' |
| 571 | should be replaced by `calendar-set-date-style'. | 571 | should be replaced by `calendar-set-date-style'. |
| 572 | 572 | ||
| 573 | *** The calendar namespace has been rationalized. | ||
| 574 | All functions and variables now begin with a `calendar-', `diary-', or | ||
| 575 | `holiday-' prefix. The various calendar systems have secondary | ||
| 576 | prefixes, eg `calendar-french-'. The old names you are likely to use | ||
| 577 | directly still exist, for the time being, as aliases, but please start | ||
| 578 | using the new names. | ||
| 579 | |||
| 573 | ** Miscellaneous programming mode changes | 580 | ** Miscellaneous programming mode changes |
| 574 | 581 | ||
| 575 | *** The file etc/emacs.py now supports both Python 2 and 3, meaning | 582 | *** The file etc/emacs.py now supports both Python 2 and 3, meaning |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3a4ba1ff8e3..a08e807793a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,97 @@ | |||
| 1 | 2008-04-07 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * calendar.el (diary-view-entries-initially-flag): Rename | ||
| 4 | view-diary-entries-initially. Keep old name as alias, update users. | ||
| 5 | (calendar-mark-diary-entries-flag): Rename | ||
| 6 | mark-diary-entries-in-calendar. Keep old name as alias, update users. | ||
| 7 | (calendar-view-holidays-initially-flag): Rename | ||
| 8 | view-calendar-holidays-initially. Keep old name as alias, update users. | ||
| 9 | (calendar-mark-holidays-flag): Rename mark-holidays-in-calendar. | ||
| 10 | Keep old name as alias, update users. | ||
| 11 | (calendar-initial-window-hook): Rename initial-calendar-window-hook. | ||
| 12 | Keep old name as alias, update users. | ||
| 13 | (calendar-today-visible-hook): Rename today-visible-calendar-hook. | ||
| 14 | Keep old name as alias, update users. | ||
| 15 | (calendar-today-invisible-hook): Rename today-invisible-calendar-hook. | ||
| 16 | Keep old name as alias, update users. | ||
| 17 | (diary-iso-date-forms): Rename iso-date-diary-pattern. Update users. | ||
| 18 | (diary-american-date-forms): Rename american-date-diary-pattern. | ||
| 19 | Keep old name as alias, update users. | ||
| 20 | (diary-european-date-forms): Rename european-date-diary-pattern. | ||
| 21 | Keep old name as alias, update users. | ||
| 22 | (calendar-iso-date-display-form): Rename iso-calendar-display-form. | ||
| 23 | Keep old name as alias, update users. | ||
| 24 | (calendar-european-date-display-form): Rename | ||
| 25 | european-calendar-display-form. Keep old name as alias, update users. | ||
| 26 | (calendar-american-date-display-form): Rename | ||
| 27 | european-calendar-display-form. Keep old name as alias, update users. | ||
| 28 | (diary-show-holidays-flag): Rename holidays-in-diary-buffer. | ||
| 29 | Keep old name as alias, update users. | ||
| 30 | (holiday-general-holidays): Rename general-holidays. | ||
| 31 | Keep old name as alias, update users. | ||
| 32 | (holiday-oriental-holidays): Rename oriental-holidays. | ||
| 33 | Keep old name as alias, update users. | ||
| 34 | (holiday-local-holidays): Rename local-holidays. | ||
| 35 | Keep old name as alias, update users. | ||
| 36 | (holiday-other-holidays): Rename other-holidays. | ||
| 37 | Keep old name as alias, update users. | ||
| 38 | (holiday-hebrew-holidays): Rename hebrew-holidays. | ||
| 39 | Keep old name as alias, update users. | ||
| 40 | (holiday-christian-holidays): Rename christian-holidays. | ||
| 41 | Keep old name as alias, update users. | ||
| 42 | (holiday-islamic-holidays): Rename islamic-holidays. | ||
| 43 | Keep old name as alias, update users. | ||
| 44 | (holiday-bahai-holidays): Rename bahai-holidays. | ||
| 45 | Keep old name as alias, update users. | ||
| 46 | (holiday-solar-holidays): Rename solar-holidays. | ||
| 47 | Keep old name as alias, update users. | ||
| 48 | (diary-fancy-buffer): Rename fancy-diary-buffer. | ||
| 49 | Keep old name as alias, update users. | ||
| 50 | (calendar-other-calendars-buffer): Rename other-calendars-buffer. | ||
| 51 | Update users. | ||
| 52 | (calendar-hebrew-yahrzeit-buffer): Rename cal-hebrew-yahrzeit-buffer. | ||
| 53 | Update users. | ||
| 54 | (calendar-increment-month): Rename increment-calendar-month. | ||
| 55 | Keep old name as alias, update callers. | ||
| 56 | (calendar-increment-month-cons): Rename old calendar-increment-month. | ||
| 57 | Update callers. | ||
| 58 | (calendar-extract-month): Rename extract-calendar-month. | ||
| 59 | Keep old name as alias, update callers | ||
| 60 | (calendar-extract-day): Rename extract-calendar-day. | ||
| 61 | Keep old name as alias, update callers. | ||
| 62 | (calendar-extract-year): Rename extract-calendar-year. | ||
| 63 | Keep old name as alias, update callers. | ||
| 64 | (calendar-generate-window): Rename generate-calendar-window. | ||
| 65 | Update callers. | ||
| 66 | (calendar-generate): Rename generate-calendar. Update callers. | ||
| 67 | (calendar-generate-month): Rename generate-calendar-month. | ||
| 68 | Update callers. | ||
| 69 | (calendar-redraw): Rename redraw-calendar. Update callers. | ||
| 70 | (calendar-describe-mode): Rename describe-calendar-mode. Update uses. | ||
| 71 | (calendar-mouse-other-month): Rename mouse-calendar-other-month. | ||
| 72 | Update callers. | ||
| 73 | (calendar-update-mode-line): Rename update-calendar-mode-line. | ||
| 74 | Update callers. | ||
| 75 | (calendar-exit): Rename exit-calendar. Keep old name as alias, | ||
| 76 | update callers. | ||
| 77 | (calendar-mark-visible-date): Rename mark-visible-calendar-date. | ||
| 78 | Keep old name as alias, update callers. | ||
| 79 | * calendar/cal-bahai.el, calendar/cal-china.el, calendar/cal-coptic.el: | ||
| 80 | * calendar/cal-dst.el, calendar/cal-french.el, calendar/cal-hebrew.el: | ||
| 81 | * calendar/cal-html.el, calendar/cal-islam.el, calendar/cal-iso.el: | ||
| 82 | * calendar/cal-julian.el, calendar/cal-menu.el, calendar/cal-move.el: | ||
| 83 | * calendar/cal-persia.el, calendar/cal-tex.el, calendar/cal-x.el: | ||
| 84 | * calendar/diary-lib.el, calendar/holidays.el, calendar/lunar.el: | ||
| 85 | * calendar/solar.el: Update for calendar.el name changes. | ||
| 86 | * org/org.el (org-agenda-format-date-aligned) | ||
| 87 | (org-agenda-execute-calendar-command): Access date elements directly | ||
| 88 | rather than using calendar functions. | ||
| 89 | (org-read-date, org-goto-calendar, org-agenda-goto-calendar): | ||
| 90 | Also set calendar-view-diary-initially-flag, | ||
| 91 | calendar-view-holidays-initially-flag | ||
| 92 | (org-get-entries-from-diary): Also set diary-fancy-buffer. | ||
| 93 | (org-agenda-execute-calendar-command): No need to set displayed-day. | ||
| 94 | |||
| 1 | 2008-04-06 Alan Mackenzie <acm@muc.de> | 95 | 2008-04-06 Alan Mackenzie <acm@muc.de> |
| 2 | 96 | ||
| 3 | * progmodes/cc-langs.el (c-before-font-lock-function): Correct a | 97 | * progmodes/cc-langs.el (c-before-font-lock-function): Correct a |
| @@ -9,7 +103,7 @@ | |||
| 9 | font-lock-extend-after-change-region-function, thus superseding | 103 | font-lock-extend-after-change-region-function, thus superseding |
| 10 | advice on the Font Lock after change functions. | 104 | advice on the Font Lock after change functions. |
| 11 | (c-advise-fl-for-region): Remove this macro. | 105 | (c-advise-fl-for-region): Remove this macro. |
| 12 | 106 | ||
| 13 | 2008-04-06 Reiner Steib <Reiner.Steib@gmx.de> | 107 | 2008-04-06 Reiner Steib <Reiner.Steib@gmx.de> |
| 14 | 108 | ||
| 15 | * textmodes/flyspell.el (flyspell-duplicate-distance): Improve | 109 | * textmodes/flyspell.el (flyspell-duplicate-distance): Improve |
diff --git a/lisp/org/org.el b/lisp/org/org.el index 1da611aa790..9deb8f49ab4 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el | |||
| @@ -2851,9 +2851,9 @@ a calendar-style date list like (month day year)." | |||
| 2851 | This function makes sure that dates are aligned for easy reading." | 2851 | This function makes sure that dates are aligned for easy reading." |
| 2852 | (format "%-9s %2d %s %4d" | 2852 | (format "%-9s %2d %s %4d" |
| 2853 | (calendar-day-name date) | 2853 | (calendar-day-name date) |
| 2854 | (extract-calendar-day date) | 2854 | (cadr date) ; day |
| 2855 | (calendar-month-name (extract-calendar-month date)) | 2855 | (calendar-month-name (car date)) ; month |
| 2856 | (extract-calendar-year date))) | 2856 | (nth 2 date))) ; year |
| 2857 | 2857 | ||
| 2858 | (defcustom org-agenda-include-diary nil | 2858 | (defcustom org-agenda-include-diary nil |
| 2859 | "If non-nil, include in the agenda entries from the Emacs Calendar's diary." | 2859 | "If non-nil, include in the agenda entries from the Emacs Calendar's diary." |
| @@ -17912,7 +17912,9 @@ user." | |||
| 17912 | (setq def (apply 'encode-time defdecode) | 17912 | (setq def (apply 'encode-time defdecode) |
| 17913 | defdecode (decode-time def))))) | 17913 | defdecode (decode-time def))))) |
| 17914 | (calendar-move-hook nil) | 17914 | (calendar-move-hook nil) |
| 17915 | (calendar-view-diary-initially-flag nil) | ||
| 17915 | (view-diary-entries-initially nil) | 17916 | (view-diary-entries-initially nil) |
| 17917 | (calendar-view-holidays-initially-flag nil) | ||
| 17916 | (view-calendar-holidays-initially nil) | 17918 | (view-calendar-holidays-initially nil) |
| 17917 | (timestr (format-time-string | 17919 | (timestr (format-time-string |
| 17918 | (if with-time "%Y-%m-%d %H:%M" "%Y-%m-%d") def)) | 17920 | (if with-time "%Y-%m-%d %H:%M" "%Y-%m-%d") def)) |
| @@ -18831,7 +18833,9 @@ A prefix ARG can be used to force the current date." | |||
| 18831 | (interactive "P") | 18833 | (interactive "P") |
| 18832 | (let ((tsr org-ts-regexp) diff | 18834 | (let ((tsr org-ts-regexp) diff |
| 18833 | (calendar-move-hook nil) | 18835 | (calendar-move-hook nil) |
| 18836 | (calendar-view-holidays-initially-flag nil) | ||
| 18834 | (view-calendar-holidays-initially nil) | 18837 | (view-calendar-holidays-initially nil) |
| 18838 | (calendar-view-diary-initially-flag nil) | ||
| 18835 | (view-diary-entries-initially nil)) | 18839 | (view-diary-entries-initially nil)) |
| 18836 | (if (or (org-at-timestamp-p) | 18840 | (if (or (org-at-timestamp-p) |
| 18837 | (save-excursion | 18841 | (save-excursion |
| @@ -21593,7 +21597,8 @@ MATCH is being ignored." | |||
| 21593 | (defun org-get-entries-from-diary (date) | 21597 | (defun org-get-entries-from-diary (date) |
| 21594 | "Get the (Emacs Calendar) diary entries for DATE." | 21598 | "Get the (Emacs Calendar) diary entries for DATE." |
| 21595 | (require 'diary-lib) | 21599 | (require 'diary-lib) |
| 21596 | (let* ((fancy-diary-buffer "*temporary-fancy-diary-buffer*") | 21600 | (let* ((diary-fancy-buffer "*temporary-fancy-diary-buffer*") |
| 21601 | (fancy-diary-buffer diary-fancy-buffer) | ||
| 21597 | (diary-display-hook '(fancy-diary-display)) | 21602 | (diary-display-hook '(fancy-diary-display)) |
| 21598 | (pop-up-frames nil) | 21603 | (pop-up-frames nil) |
| 21599 | (list-diary-entries-hook | 21604 | (list-diary-entries-hook |
| @@ -21607,9 +21612,9 @@ MATCH is being ignored." | |||
| 21607 | (funcall (if (fboundp 'diary-list-entries) | 21612 | (funcall (if (fboundp 'diary-list-entries) |
| 21608 | 'diary-list-entries 'list-diary-entries) | 21613 | 'diary-list-entries 'list-diary-entries) |
| 21609 | date 1))) | 21614 | date 1))) |
| 21610 | (if (not (get-buffer fancy-diary-buffer)) | 21615 | (if (not (get-buffer diary-fancy-buffer)) |
| 21611 | (setq entries nil) | 21616 | (setq entries nil) |
| 21612 | (with-current-buffer fancy-diary-buffer | 21617 | (with-current-buffer diary-fancy-buffer |
| 21613 | (setq buffer-read-only nil) | 21618 | (setq buffer-read-only nil) |
| 21614 | (if (zerop (buffer-size)) | 21619 | (if (zerop (buffer-size)) |
| 21615 | ;; No entries | 21620 | ;; No entries |
| @@ -21621,7 +21626,7 @@ MATCH is being ignored." | |||
| 21621 | (setq entries nil) | 21626 | (setq entries nil) |
| 21622 | (setq entries (buffer-substring (point-min) (- (point-max) 1))))) | 21627 | (setq entries (buffer-substring (point-min) (- (point-max) 1))))) |
| 21623 | (set-buffer-modified-p nil) | 21628 | (set-buffer-modified-p nil) |
| 21624 | (kill-buffer fancy-diary-buffer))) | 21629 | (kill-buffer diary-fancy-buffer))) |
| 21625 | (when entries | 21630 | (when entries |
| 21626 | (setq entries (org-split-string entries "\n")) | 21631 | (setq entries (org-split-string entries "\n")) |
| 21627 | (setq entries | 21632 | (setq entries |
| @@ -23684,10 +23689,9 @@ the cursor position." | |||
| 23684 | (point (point)) | 23689 | (point (point)) |
| 23685 | (date (calendar-gregorian-from-absolute | 23690 | (date (calendar-gregorian-from-absolute |
| 23686 | (get-text-property point 'day))) | 23691 | (get-text-property point 'day))) |
| 23687 | ;; the following 3 vars are needed in the calendar | 23692 | ;; the following 2 vars are needed in the calendar |
| 23688 | (displayed-day (extract-calendar-day date)) | 23693 | (displayed-month (car date)) |
| 23689 | (displayed-month (extract-calendar-month date)) | 23694 | (displayed-year (nth 2 date))) |
| 23690 | (displayed-year (extract-calendar-year date))) | ||
| 23691 | (unwind-protect | 23695 | (unwind-protect |
| 23692 | (progn | 23696 | (progn |
| 23693 | (fset 'calendar-cursor-to-date | 23697 | (fset 'calendar-cursor-to-date |
| @@ -23732,7 +23736,9 @@ argument, latitude and longitude will be prompted for." | |||
| 23732 | (error "Don't know which date to open in calendar"))) | 23736 | (error "Don't know which date to open in calendar"))) |
| 23733 | (date (calendar-gregorian-from-absolute day)) | 23737 | (date (calendar-gregorian-from-absolute day)) |
| 23734 | (calendar-move-hook nil) | 23738 | (calendar-move-hook nil) |
| 23739 | (calendar-view-holidays-initially-flag nil) | ||
| 23735 | (view-calendar-holidays-initially nil) | 23740 | (view-calendar-holidays-initially nil) |
| 23741 | (calendar-view-diary-initially-flag nil) | ||
| 23736 | (view-diary-entries-initially nil)) | 23742 | (view-diary-entries-initially nil)) |
| 23737 | (calendar) | 23743 | (calendar) |
| 23738 | (calendar-goto-date date))) | 23744 | (calendar-goto-date date))) |