[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs/lisp ChangeLog calendar/diary-lib.el
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] emacs/lisp ChangeLog calendar/diary-lib.el |
Date: |
Mon, 05 Oct 2009 05:39:53 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Stefan Monnier <monnier> 09/10/05 05:39:52
Modified files:
lisp : ChangeLog
lisp/calendar : diary-lib.el
Log message:
(diary-show-all-entries): Re-fit the calendar window if necessary.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/lisp/ChangeLog?cvsroot=emacs&r1=1.16358&r2=1.16359
http://cvs.savannah.gnu.org/viewcvs/emacs/lisp/calendar/diary-lib.el?cvsroot=emacs&r1=1.191&r2=1.192
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/emacs/emacs/lisp/ChangeLog,v
retrieving revision 1.16358
retrieving revision 1.16359
diff -u -b -r1.16358 -r1.16359
--- ChangeLog 5 Oct 2009 05:36:11 -0000 1.16358
+++ ChangeLog 5 Oct 2009 05:39:48 -0000 1.16359
@@ -1,5 +1,8 @@
2009-10-05 Stefan Monnier <address@hidden>
+ * calendar/diary-lib.el (diary-show-all-entries): Re-fit the calendar
+ window if necessary.
+
* calendar/calendar.el (calendar-basic-setup): Don't call
switch-to-buffer in a dedicated window.
@@ -30,25 +33,25 @@
2009-10-04 Karl Fogel <address@hidden>
- * bookmark.el (bookmark-get-bookmark, bookmark-get-bookmark-record,
- bookmark-set-name, bookmark-prop-get, bookmark-prop-set,
- bookmark-get-annotation, bookmark-set-annotation,
- bookmark-get-filename, bookmark-set-filename, bookmark-get-position,
- bookmark-set-position, bookmark-get-front-context-string,
- bookmark-set-front-context-string, bookmark-get-rear-context-string,
- bookmark-set-rear-context-string, bookmark-location, bookmark-jump,
- bookmark-jump-other-window, bookmark-handle-bookmark,
- bookmark-relocate, bookmark-insert-location, bookmark-rename,
- bookmark-insert, bookmark-delete, bookmark-time-to-save-p,
- bookmark-edit-annotation-mode, bookmark-edit-annotation): Improve
- doc strings to say whether bookmark can be a string or a record
- or both, and make other consistency and clarity fixes.
- (bookmark-get-handler, bookmark--jump-via, bookmark-write-file
- bookmark-default-annotation-text, bookmark-yank-word,
- bookmark-maybe-load-default-file, bookmark-maybe-sort-alist,
- bookmark-import-new-list, bookmark-maybe-rename,
- bookmark-bmenu-show-filenames, bookmark-bmenu-hide-filenames,
- bookmark-bmenu-bookmark): Give these doc strings.
+ * bookmark.el (bookmark-get-bookmark, bookmark-get-bookmark-record)
+ (bookmark-set-name, bookmark-prop-get, bookmark-prop-set)
+ (bookmark-get-annotation, bookmark-set-annotation)
+ (bookmark-get-filename, bookmark-set-filename, bookmark-get-position)
+ (bookmark-set-position, bookmark-get-front-context-string)
+ (bookmark-set-front-context-string, bookmark-get-rear-context-string)
+ (bookmark-set-rear-context-string, bookmark-location, bookmark-jump)
+ (bookmark-jump-other-window, bookmark-handle-bookmark)
+ (bookmark-relocate, bookmark-insert-location, bookmark-rename)
+ (bookmark-insert, bookmark-delete, bookmark-time-to-save-p)
+ (bookmark-edit-annotation-mode, bookmark-edit-annotation):
+ Improve doc strings to say whether bookmark can be a string or
+ a record or both, and make other consistency and clarity fixes.
+ (bookmark-get-handler, bookmark--jump-via, bookmark-write-file)
+ (bookmark-default-annotation-text, bookmark-yank-word)
+ (bookmark-maybe-load-default-file, bookmark-maybe-sort-alist)
+ (bookmark-import-new-list, bookmark-maybe-rename)
+ (bookmark-bmenu-show-filenames, bookmark-bmenu-hide-filenames)
+ (bookmark-bmenu-bookmark): Give these doc strings.
(bookmark-bmenu-check-position): Give this a doc string, but also
add a FIXME comment about how the function may be pointless.
(bookmark-default-handler): Rework doc string and change a
@@ -73,15 +76,14 @@
2009-10-04 Chong Yidong <address@hidden>
- * cedet/semantic.el (semantic-new-buffer-setup-functions): New
- option.
+ * cedet/semantic.el (semantic-new-buffer-setup-functions): New option.
(semantic-new-buffer-fcn): Call parser setup functions here.
(semantic-mode): Don't call parser setup functions here, it's done
in semantic-new-buffer-fcn now.
(semantic-mode): Parse all existing buffers when enabled.
- * cedet/srecode/compile.el (srecode-compile-file): Call
- semantic-new-buffer-fcn if the buffer has not been parsed.
+ * cedet/srecode/compile.el (srecode-compile-file):
+ Call semantic-new-buffer-fcn if the buffer has not been parsed.
2009-10-04 Chong Yidong <address@hidden>
@@ -148,8 +150,8 @@
* files.el (auto-mode-alist): Add .srt and Project.ede.
- * cedet/semantic.el (semantic-mode): Handle
- srecode-template-mode-hook as well.
+ * cedet/semantic.el (semantic-mode):
+ Handle srecode-template-mode-hook as well.
(semantic-mode): Use js-mode-hook for Javascript hook.
* cedet/srecode/template.el: Remove hook variable.
@@ -163,8 +165,7 @@
* cedet/srecode/map.el (srecode-map-base-template-dir): Look for
templates in data-directory.
- (srecode-map-save-file): Default to a file in
- user-emacs-directory.
+ (srecode-map-save-file): Default to a file in user-emacs-directory.
* cedet/ede/srecode.el (ede-srecode-setup): Use default templates
directory.
@@ -191,8 +192,8 @@
2009-10-03 Michael Albinus <address@hidden>
- * net/tramp-ftp.el (tramp-ftp-file-name-handler): Disable
- `file-name-handler-alist' when loading 'ange-ftp. Otherwise,
+ * net/tramp-ftp.el (tramp-ftp-file-name-handler):
+ Disable `file-name-handler-alist' when loading 'ange-ftp. Otherwise,
there could be recursive loading when `default-directory' is a
remote file name. (Bug#4614)
@@ -211,8 +212,7 @@
2009-10-02 Eli Zaretskii <address@hidden>
- * makefile.w32-in (update-subdirs-CMD): Add cedet to
- $(WINS_SUBDIR).
+ * makefile.w32-in (update-subdirs-CMD): Add cedet to $(WINS_SUBDIR).
(WINS_CEDET_SUBDIRS): List of subdirectories of cedet.
(bootstrap-clean-CMD, bootstrap-clean-SH): Remove *.elc files in
subdirs of cedet as well.
Index: calendar/diary-lib.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/calendar/diary-lib.el,v
retrieving revision 1.191
retrieving revision 1.192
diff -u -b -r1.191 -r1.192
--- calendar/diary-lib.el 24 Sep 2009 03:26:54 -0000 1.191
+++ calendar/diary-lib.el 5 Oct 2009 05:39:52 -0000 1.192
@@ -1084,14 +1084,20 @@
all entries, not just some, are visible. If there is no diary buffer, one
is created."
(interactive)
- (let ((d-file (diary-check-diary-file))
+ (let* ((d-file (diary-check-diary-file))
(pop-up-frames (or pop-up-frames
- (window-dedicated-p (selected-window)))))
+ (window-dedicated-p (selected-window))))
+ (win (selected-window))
+ (height (window-height)))
(with-current-buffer (or (find-buffer-visiting d-file)
(find-file-noselect d-file t))
(when (eq major-mode (default-value 'major-mode)) (diary-mode))
(diary-unhide-everything)
- (display-buffer (current-buffer)))))
+ (display-buffer (current-buffer))
+ (when (and (/= height (window-height win))
+ (with-current-buffer (window-buffer win)
+ (derived-mode-p 'calendar-mode)))
+ (fit-window-to-buffer win)))))
(define-obsolete-function-alias 'show-all-diary-entries
'diary-show-all-entries "22.1")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs/lisp ChangeLog calendar/diary-lib.el,
Stefan Monnier <=