aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/calendar/calendar.el10
2 files changed, 19 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ff1c76ee5bb..4149355552f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,13 @@
12009-02-11 Glenn Morris <rgm@gnu.org>
2
3 * calendar/calendar.el (calendar-window-list): Ignore invisible windows.
4 (calendar-set-mode-line): Fall back to a default width if we seem to be
5 called from daemon. (Bug#2199)
6
7 * mail/rmailkwd.el (rmail-make-label): Doc fix.
8 (rmail-read-label): Add current labels to completion list. (Bug#2222)
9 (rmail-set-label): Use `or'.
10
12009-02-11 Chong Yidong <cyd@stupidchicken.com> 112009-02-11 Chong Yidong <cyd@stupidchicken.com>
2 12
3 * emacs-lisp/find-func.el (find-library-name, find-library): Doc 13 * emacs-lisp/find-func.el (find-library-name, find-library): Doc
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index c1cff089398..172a55cfc84 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -1723,10 +1723,13 @@ the STRINGS are just concatenated and the result truncated."
1723 "List of all calendar-related windows." 1723 "List of all calendar-related windows."
1724 (let ((calendar-buffers (calendar-buffer-list)) 1724 (let ((calendar-buffers (calendar-buffer-list))
1725 list) 1725 list)
1726 ;; Using 0 rather than t for last argument - see bug#2199.
1727 ;; This is only used with calendar-hide-window, which ignores
1728 ;; iconified frames anyway, so could use 'visible rather than 0.
1726 (walk-windows (lambda (w) 1729 (walk-windows (lambda (w)
1727 (if (memq (window-buffer w) calendar-buffers) 1730 (if (memq (window-buffer w) calendar-buffers)
1728 (push w list))) 1731 (push w list)))
1729 nil t) 1732 nil 0)
1730 list)) 1733 list))
1731 1734
1732(defun calendar-buffer-list () 1735(defun calendar-buffer-list ()
@@ -2461,6 +2464,11 @@ If called by a mouse-event, pops up a menu with the result."
2461 (let* ((edges (window-edges)) 2464 (let* ((edges (window-edges))
2462 ;; As per doc of window-width, total visible mode-line length. 2465 ;; As per doc of window-width, total visible mode-line length.
2463 (width (- (nth 2 edges) (car edges)))) 2466 (width (- (nth 2 edges) (car edges))))
2467 ;; Hack for --daemon. See bug #2199.
2468 ;; If no frame exists yet, we have no idea what width to use.
2469 (and (= width 10)
2470 (not window-system)
2471 (setq width (or (getenv "COLUMNS") 80)))
2464 (setq mode-line-format 2472 (setq mode-line-format
2465 (if buffer-file-name 2473 (if buffer-file-name
2466 `("-" mode-line-modified 2474 `("-" mode-line-modified