summaryrefslogtreecommitdiff
path: root/lisp/calendar/cal-menu.el
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2001-09-05 08:20:13 +0000
committerGerd Moellmann <gerd@gnu.org>2001-09-05 08:20:13 +0000
commit369335f5fafde79c74e5256f9695d1a796cd159d (patch)
treef7b11f822c65c00c73e65b8e8eb85ac39f14afad /lisp/calendar/cal-menu.el
parent13bc4e1a3ddf840eb3a8095d9564b136ebe839da (diff)
downloademacs-369335f5fafde79c74e5256f9695d1a796cd159d.tar.gz
(calendar-mouse-view-other-diary-entries): Fix name
of file in header of menu.
Diffstat (limited to 'lisp/calendar/cal-menu.el')
-rw-r--r--lisp/calendar/cal-menu.el19
1 files changed, 12 insertions, 7 deletions
diff --git a/lisp/calendar/cal-menu.el b/lisp/calendar/cal-menu.el
index 7c7056db7e7..3391dd0d242 100644
--- a/lisp/calendar/cal-menu.el
+++ b/lisp/calendar/cal-menu.el
@@ -1,6 +1,6 @@
;;; cal-menu.el --- calendar functions for menu bar and popup menu support
-;; Copyright (C) 1994, 1995 Free Software Foundation, Inc.
+;; Copyright (C) 1994, 1995, 2001 Free Software Foundation, Inc.
;; Author: Edward M. Reingold <reingold@cs.uiuc.edu>
;; Lara Rios <lrios@coewl.cen.uiuc.edu>
@@ -318,13 +318,18 @@ ERROR is t, otherwise just returns nil."
"Pop up menu of diary entries from alternative file on mouse-selected date."
(interactive)
(let* ((date (calendar-event-to-date))
+ (diary-list-include-blanks nil)
+ (diary-display-hook 'ignore)
+ (diary-file (read-file-name
+ "Enter diary file name: "
+ default-directory nil t))
+ ; The following doesn't really do the right thing. The problem is
+ ; that a newline in the diary entry does not give a newline in a
+ ; pop-up menu; for that you need a separate list item. When the (car
+ ; (cdr x)) contains newlines, the item should be split into a list of
+ ; items. Too minor and messy to worry about.
(l (mapcar '(lambda (x) (list (car (cdr x))))
- (let ((diary-list-include-blanks nil)
- (diary-display-hook 'ignore)
- (diary-file (read-file-name
- "Enter diary file name: "
- default-directory nil t)))
- (list-diary-entries date 1))))
+ (list-diary-entries date 1)))
(selection
(x-popup-menu
event