From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tak Ota Newsgroups: gmane.emacs.devel Subject: Appt Msg Window problem Date: Mon, 10 May 2004 14:07:16 -0700 (PDT) Organization: Sony Electronics Inc. Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20040510.140716.178518383.Takaaki.Ota@am.sony.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1084223395 19164 80.91.224.253 (10 May 2004 21:09:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 May 2004 21:09:55 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon May 10 23:09:36 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BNI1o-0001sK-00 for ; Mon, 10 May 2004 23:09:36 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BNI1n-0002dU-00 for ; Mon, 10 May 2004 23:09:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BNI1T-0006iW-3W for emacs-devel@quimby.gnus.org; Mon, 10 May 2004 17:09:15 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BNI0z-0006Qu-UR for emacs-devel@gnu.org; Mon, 10 May 2004 17:08:45 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BNI07-0004zx-8U for emacs-devel@gnu.org; Mon, 10 May 2004 17:08:23 -0400 Original-Received: from [160.33.82.68] (helo=mail1.fw-sj.sony.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BNI05-0004x9-Cb for emacs-devel@gnu.org; Mon, 10 May 2004 17:07:49 -0400 Original-Received: from mail3.sjc.in.sel.sony.com (mail3.sjc.in.sel.sony.com [43.134.1.211]) by mail1.fw-sj.sony.com (8.12.11/8.12.11) with ESMTP id i4AL7WRR029858 for ; Mon, 10 May 2004 21:07:37 GMT Original-Received: from localhost ([43.191.16.116]) by mail3.sjc.in.sel.sony.com (8.12.11/8.12.11) with ESMTP id i4AL7HSV015341 for ; Mon, 10 May 2004 21:07:17 GMT Original-To: emacs-devel@gnu.org X-Telephone: +1-858-942-3239 X-Fax------: +1-858-942-9142 X-SnailMail: 16450 West Bernardo Drive MZ7205, San Diego, CA 92127-1804 X-Mailer: Mew-4.0.65 on Emacs-21.3.50.1 (i386-msvc-nt5.1.2600) of 2004-05-06 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:23080 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23080 It seems appointment message window doesn't display correctly. Try evaluating (appt-disp-window "5" "3" "Test") and see the window splits overly. Following patch fixes this problem. BTW, `split-window' doc string does not explain about its return value. -Tak *** ../../../../pub/emacs/pure/emacs-21.3.50/lisp/calendar/appt.el Wed Mar 24 10:36:20 2004 --- appt.el Mon May 10 13:51:21 2004 *************** *** 449,456 **** (same-window-p (buffer-name appt-disp-buf))) ;; By default, split the bottom window and use the lower part. (appt-select-lowest-window) ! (split-window)) ! (pop-to-buffer appt-disp-buf)) (setq mode-line-format (concat "-------------------- Appointment in " min-to-app " minutes. " new-time " %-")) --- 449,456 ---- (same-window-p (buffer-name appt-disp-buf))) ;; By default, split the bottom window and use the lower part. (appt-select-lowest-window) ! (select-window (split-window))) ! (switch-to-buffer appt-disp-buf)) (setq mode-line-format (concat "-------------------- Appointment in " min-to-app " minutes. " new-time " %-"))