aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2009-10-05 05:39:48 +0000
committerStefan Monnier2009-10-05 05:39:48 +0000
commit4a34f0655d814bd9358a6b0a010dbfa9a3f3e8b8 (patch)
tree32e40560a45c6854945360e9ca5481dc2ce20980
parent72aa7df48fecec7cc22b91f4a2997828b0cd8c3a (diff)
downloademacs-4a34f0655d814bd9358a6b0a010dbfa9a3f3e8b8.tar.gz
emacs-4a34f0655d814bd9358a6b0a010dbfa9a3f3e8b8.zip
(diary-show-all-entries): Re-fit the calendar window if necessary.
-rw-r--r--lisp/ChangeLog62
-rw-r--r--lisp/calendar/diary-lib.el14
2 files changed, 41 insertions, 35 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index cf5bb68f4d8..f5b6633bf08 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12009-10-05 Stefan Monnier <monnier@iro.umontreal.ca> 12009-10-05 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * calendar/diary-lib.el (diary-show-all-entries): Re-fit the calendar
4 window if necessary.
5
3 * calendar/calendar.el (calendar-basic-setup): Don't call 6 * calendar/calendar.el (calendar-basic-setup): Don't call
4 switch-to-buffer in a dedicated window. 7 switch-to-buffer in a dedicated window.
5 8
@@ -30,25 +33,25 @@
30 33
312009-10-04 Karl Fogel <kfogel@red-bean.com> 342009-10-04 Karl Fogel <kfogel@red-bean.com>
32 35
33 * bookmark.el (bookmark-get-bookmark, bookmark-get-bookmark-record, 36 * bookmark.el (bookmark-get-bookmark, bookmark-get-bookmark-record)
34 bookmark-set-name, bookmark-prop-get, bookmark-prop-set, 37 (bookmark-set-name, bookmark-prop-get, bookmark-prop-set)
35 bookmark-get-annotation, bookmark-set-annotation, 38 (bookmark-get-annotation, bookmark-set-annotation)
36 bookmark-get-filename, bookmark-set-filename, bookmark-get-position, 39 (bookmark-get-filename, bookmark-set-filename, bookmark-get-position)
37 bookmark-set-position, bookmark-get-front-context-string, 40 (bookmark-set-position, bookmark-get-front-context-string)
38 bookmark-set-front-context-string, bookmark-get-rear-context-string, 41 (bookmark-set-front-context-string, bookmark-get-rear-context-string)
39 bookmark-set-rear-context-string, bookmark-location, bookmark-jump, 42 (bookmark-set-rear-context-string, bookmark-location, bookmark-jump)
40 bookmark-jump-other-window, bookmark-handle-bookmark, 43 (bookmark-jump-other-window, bookmark-handle-bookmark)
41 bookmark-relocate, bookmark-insert-location, bookmark-rename, 44 (bookmark-relocate, bookmark-insert-location, bookmark-rename)
42 bookmark-insert, bookmark-delete, bookmark-time-to-save-p, 45 (bookmark-insert, bookmark-delete, bookmark-time-to-save-p)
43 bookmark-edit-annotation-mode, bookmark-edit-annotation): Improve 46 (bookmark-edit-annotation-mode, bookmark-edit-annotation):
44 doc strings to say whether bookmark can be a string or a record 47 Improve doc strings to say whether bookmark can be a string or
45 or both, and make other consistency and clarity fixes. 48 a record or both, and make other consistency and clarity fixes.
46 (bookmark-get-handler, bookmark--jump-via, bookmark-write-file 49 (bookmark-get-handler, bookmark--jump-via, bookmark-write-file)
47 bookmark-default-annotation-text, bookmark-yank-word, 50 (bookmark-default-annotation-text, bookmark-yank-word)
48 bookmark-maybe-load-default-file, bookmark-maybe-sort-alist, 51 (bookmark-maybe-load-default-file, bookmark-maybe-sort-alist)
49 bookmark-import-new-list, bookmark-maybe-rename, 52 (bookmark-import-new-list, bookmark-maybe-rename)
50 bookmark-bmenu-show-filenames, bookmark-bmenu-hide-filenames, 53 (bookmark-bmenu-show-filenames, bookmark-bmenu-hide-filenames)
51 bookmark-bmenu-bookmark): Give these doc strings. 54 (bookmark-bmenu-bookmark): Give these doc strings.
52 (bookmark-bmenu-check-position): Give this a doc string, but also 55 (bookmark-bmenu-check-position): Give this a doc string, but also
53 add a FIXME comment about how the function may be pointless. 56 add a FIXME comment about how the function may be pointless.
54 (bookmark-default-handler): Rework doc string and change a 57 (bookmark-default-handler): Rework doc string and change a
@@ -73,15 +76,14 @@
73 76
742009-10-04 Chong Yidong <cyd@stupidchicken.com> 772009-10-04 Chong Yidong <cyd@stupidchicken.com>
75 78
76 * cedet/semantic.el (semantic-new-buffer-setup-functions): New 79 * cedet/semantic.el (semantic-new-buffer-setup-functions): New option.
77 option.
78 (semantic-new-buffer-fcn): Call parser setup functions here. 80 (semantic-new-buffer-fcn): Call parser setup functions here.
79 (semantic-mode): Don't call parser setup functions here, it's done 81 (semantic-mode): Don't call parser setup functions here, it's done
80 in semantic-new-buffer-fcn now. 82 in semantic-new-buffer-fcn now.
81 (semantic-mode): Parse all existing buffers when enabled. 83 (semantic-mode): Parse all existing buffers when enabled.
82 84
83 * cedet/srecode/compile.el (srecode-compile-file): Call 85 * cedet/srecode/compile.el (srecode-compile-file):
84 semantic-new-buffer-fcn if the buffer has not been parsed. 86 Call semantic-new-buffer-fcn if the buffer has not been parsed.
85 87
862009-10-04 Chong Yidong <cyd@stupidchicken.com> 882009-10-04 Chong Yidong <cyd@stupidchicken.com>
87 89
@@ -148,8 +150,8 @@
148 150
149 * files.el (auto-mode-alist): Add .srt and Project.ede. 151 * files.el (auto-mode-alist): Add .srt and Project.ede.
150 152
151 * cedet/semantic.el (semantic-mode): Handle 153 * cedet/semantic.el (semantic-mode):
152 srecode-template-mode-hook as well. 154 Handle srecode-template-mode-hook as well.
153 (semantic-mode): Use js-mode-hook for Javascript hook. 155 (semantic-mode): Use js-mode-hook for Javascript hook.
154 156
155 * cedet/srecode/template.el: Remove hook variable. 157 * cedet/srecode/template.el: Remove hook variable.
@@ -163,8 +165,7 @@
163 165
164 * cedet/srecode/map.el (srecode-map-base-template-dir): Look for 166 * cedet/srecode/map.el (srecode-map-base-template-dir): Look for
165 templates in data-directory. 167 templates in data-directory.
166 (srecode-map-save-file): Default to a file in 168 (srecode-map-save-file): Default to a file in user-emacs-directory.
167 user-emacs-directory.
168 169
169 * cedet/ede/srecode.el (ede-srecode-setup): Use default templates 170 * cedet/ede/srecode.el (ede-srecode-setup): Use default templates
170 directory. 171 directory.
@@ -191,8 +192,8 @@
191 192
1922009-10-03 Michael Albinus <michael.albinus@gmx.de> 1932009-10-03 Michael Albinus <michael.albinus@gmx.de>
193 194
194 * net/tramp-ftp.el (tramp-ftp-file-name-handler): Disable 195 * net/tramp-ftp.el (tramp-ftp-file-name-handler):
195 `file-name-handler-alist' when loading 'ange-ftp. Otherwise, 196 Disable `file-name-handler-alist' when loading 'ange-ftp. Otherwise,
196 there could be recursive loading when `default-directory' is a 197 there could be recursive loading when `default-directory' is a
197 remote file name. (Bug#4614) 198 remote file name. (Bug#4614)
198 199
@@ -211,8 +212,7 @@
211 212
2122009-10-02 Eli Zaretskii <eliz@gnu.org> 2132009-10-02 Eli Zaretskii <eliz@gnu.org>
213 214
214 * makefile.w32-in (update-subdirs-CMD): Add cedet to 215 * makefile.w32-in (update-subdirs-CMD): Add cedet to $(WINS_SUBDIR).
215 $(WINS_SUBDIR).
216 (WINS_CEDET_SUBDIRS): List of subdirectories of cedet. 216 (WINS_CEDET_SUBDIRS): List of subdirectories of cedet.
217 (bootstrap-clean-CMD, bootstrap-clean-SH): Remove *.elc files in 217 (bootstrap-clean-CMD, bootstrap-clean-SH): Remove *.elc files in
218 subdirs of cedet as well. 218 subdirs of cedet as well.
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el
index 9ed28c403a9..1da6e85de82 100644
--- a/lisp/calendar/diary-lib.el
+++ b/lisp/calendar/diary-lib.el
@@ -1084,14 +1084,20 @@ This function gets rid of the selective display of the diary file so that
1084all entries, not just some, are visible. If there is no diary buffer, one 1084all entries, not just some, are visible. If there is no diary buffer, one
1085is created." 1085is created."
1086 (interactive) 1086 (interactive)
1087 (let ((d-file (diary-check-diary-file)) 1087 (let* ((d-file (diary-check-diary-file))
1088 (pop-up-frames (or pop-up-frames 1088 (pop-up-frames (or pop-up-frames
1089 (window-dedicated-p (selected-window))))) 1089 (window-dedicated-p (selected-window))))
1090 (win (selected-window))
1091 (height (window-height)))
1090 (with-current-buffer (or (find-buffer-visiting d-file) 1092 (with-current-buffer (or (find-buffer-visiting d-file)
1091 (find-file-noselect d-file t)) 1093 (find-file-noselect d-file t))
1092 (when (eq major-mode (default-value 'major-mode)) (diary-mode)) 1094 (when (eq major-mode (default-value 'major-mode)) (diary-mode))
1093 (diary-unhide-everything) 1095 (diary-unhide-everything)
1094 (display-buffer (current-buffer))))) 1096 (display-buffer (current-buffer))
1097 (when (and (/= height (window-height win))
1098 (with-current-buffer (window-buffer win)
1099 (derived-mode-p 'calendar-mode)))
1100 (fit-window-to-buffer win)))))
1095 1101
1096(define-obsolete-function-alias 'show-all-diary-entries 1102(define-obsolete-function-alias 'show-all-diary-entries
1097 'diary-show-all-entries "22.1") 1103 'diary-show-all-entries "22.1")