aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2005-11-14 22:14:23 +0000
committerStefan Monnier2005-11-14 22:14:23 +0000
commit2f0e4846490677315fda2c2893d3c575051806fc (patch)
treea61516194ce13bba657d45cd67e6f3b9d143e5ab
parent670d3fce9d2df5fd60e77498981b553e878dbc8d (diff)
downloademacs-2f0e4846490677315fda2c2893d3c575051806fc.tar.gz
emacs-2f0e4846490677315fda2c2893d3c575051806fc.zip
(diary-list-entries, diary-show-all-entries)
(mark-diary-entries, make-diary-entry): Check default-major-mode rather than fundamental-mode to see if the mode was set.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/calendar/diary-lib.el8
2 files changed, 10 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5667a43c2ff..ef5253d63a6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12005-11-14 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * calendar/diary-lib.el (diary-list-entries, diary-show-all-entries)
4 (mark-diary-entries, make-diary-entry): Check default-major-mode rather
5 than fundamental-mode to see if the mode was set.
6
12005-11-14 Romain Francoise <romain@orebokech.com> 72005-11-14 Romain Francoise <romain@orebokech.com>
2 8
3 * dired-x.el: If `vm-visit-folder' doesn't exist, define it as a 9 * dired-x.el: If `vm-visit-folder' doesn't exist, define it as a
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el
index 896f0755ad8..98c8b6a5dd5 100644
--- a/lisp/calendar/diary-lib.el
+++ b/lisp/calendar/diary-lib.el
@@ -378,7 +378,7 @@ If LIST-ONLY is non-nil don't modify or display the buffer, only return a list."
378 (or (verify-visited-file-modtime diary-buffer) 378 (or (verify-visited-file-modtime diary-buffer)
379 (revert-buffer t t)))) 379 (revert-buffer t t))))
380 ;; Setup things like the header-line-format and invisibility-spec. 380 ;; Setup things like the header-line-format and invisibility-spec.
381 (when (eq major-mode 'fundamental-mode) (diary-mode)) 381 (when (eq major-mode default-major-mode) (diary-mode))
382 ;; d-s-p is passed to the diary display function. 382 ;; d-s-p is passed to the diary display function.
383 (let ((diary-saved-point (point))) 383 (let ((diary-saved-point (point)))
384 (save-excursion 384 (save-excursion
@@ -773,7 +773,7 @@ is created."
773 (pop-up-frames (window-dedicated-p (selected-window)))) 773 (pop-up-frames (window-dedicated-p (selected-window))))
774 (with-current-buffer (or (find-buffer-visiting d-file) 774 (with-current-buffer (or (find-buffer-visiting d-file)
775 (find-file-noselect d-file t)) 775 (find-file-noselect d-file t))
776 (when (eq major-mode 'fundamental-mode) (diary-mode)) 776 (when (eq major-mode default-major-mode) (diary-mode))
777 (diary-unhide-everything) 777 (diary-unhide-everything)
778 (display-buffer (current-buffer))))) 778 (display-buffer (current-buffer)))))
779 779
@@ -876,7 +876,7 @@ diary entries."
876 file-glob-attrs marks) 876 file-glob-attrs marks)
877 (with-current-buffer (find-file-noselect (diary-check-diary-file) t) 877 (with-current-buffer (find-file-noselect (diary-check-diary-file) t)
878 (save-excursion 878 (save-excursion
879 (when (eq major-mode 'fundamental-mode) (diary-mode)) 879 (when (eq major-mode default-major-mode) (diary-mode))
880 (setq mark-diary-entries-in-calendar t) 880 (setq mark-diary-entries-in-calendar t)
881 (message "Marking diary entries...") 881 (message "Marking diary entries...")
882 (setq file-glob-attrs (nth 1 (diary-pull-attrs nil '()))) 882 (setq file-glob-attrs (nth 1 (diary-pull-attrs nil '())))
@@ -1671,7 +1671,7 @@ If omitted, NONMARKING defaults to nil and FILE defaults to
1671`diary-file'." 1671`diary-file'."
1672 (let ((pop-up-frames (window-dedicated-p (selected-window)))) 1672 (let ((pop-up-frames (window-dedicated-p (selected-window))))
1673 (find-file-other-window (substitute-in-file-name (or file diary-file)))) 1673 (find-file-other-window (substitute-in-file-name (or file diary-file))))
1674 (when (eq major-mode 'fundamental-mode) (diary-mode)) 1674 (when (eq major-mode default-major-mode) (diary-mode))
1675 (widen) 1675 (widen)
1676 (diary-unhide-everything) 1676 (diary-unhide-everything)
1677 (goto-char (point-max)) 1677 (goto-char (point-max))