diff options
| author | Gerd Moellmann | 2001-09-05 08:20:13 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-09-05 08:20:13 +0000 |
| commit | 369335f5fafde79c74e5256f9695d1a796cd159d (patch) | |
| tree | f7b11f822c65c00c73e65b8e8eb85ac39f14afad | |
| parent | 13bc4e1a3ddf840eb3a8095d9564b136ebe839da (diff) | |
| download | emacs-369335f5fafde79c74e5256f9695d1a796cd159d.tar.gz emacs-369335f5fafde79c74e5256f9695d1a796cd159d.zip | |
(calendar-mouse-view-other-diary-entries): Fix name
of file in header of menu.
| -rw-r--r-- | lisp/calendar/cal-menu.el | 19 |
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 @@ | |||
| 1 | ;;; cal-menu.el --- calendar functions for menu bar and popup menu support | 1 | ;;; cal-menu.el --- calendar functions for menu bar and popup menu support |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1994, 1995 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1994, 1995, 2001 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Edward M. Reingold <reingold@cs.uiuc.edu> | 5 | ;; Author: Edward M. Reingold <reingold@cs.uiuc.edu> |
| 6 | ;; Lara Rios <lrios@coewl.cen.uiuc.edu> | 6 | ;; Lara Rios <lrios@coewl.cen.uiuc.edu> |
| @@ -318,13 +318,18 @@ ERROR is t, otherwise just returns nil." | |||
| 318 | "Pop up menu of diary entries from alternative file on mouse-selected date." | 318 | "Pop up menu of diary entries from alternative file on mouse-selected date." |
| 319 | (interactive) | 319 | (interactive) |
| 320 | (let* ((date (calendar-event-to-date)) | 320 | (let* ((date (calendar-event-to-date)) |
| 321 | (diary-list-include-blanks nil) | ||
| 322 | (diary-display-hook 'ignore) | ||
| 323 | (diary-file (read-file-name | ||
| 324 | "Enter diary file name: " | ||
| 325 | default-directory nil t)) | ||
| 326 | ; The following doesn't really do the right thing. The problem is | ||
| 327 | ; that a newline in the diary entry does not give a newline in a | ||
| 328 | ; pop-up menu; for that you need a separate list item. When the (car | ||
| 329 | ; (cdr x)) contains newlines, the item should be split into a list of | ||
| 330 | ; items. Too minor and messy to worry about. | ||
| 321 | (l (mapcar '(lambda (x) (list (car (cdr x)))) | 331 | (l (mapcar '(lambda (x) (list (car (cdr x)))) |
| 322 | (let ((diary-list-include-blanks nil) | 332 | (list-diary-entries date 1))) |
| 323 | (diary-display-hook 'ignore) | ||
| 324 | (diary-file (read-file-name | ||
| 325 | "Enter diary file name: " | ||
| 326 | default-directory nil t))) | ||
| 327 | (list-diary-entries date 1)))) | ||
| 328 | (selection | 333 | (selection |
| 329 | (x-popup-menu | 334 | (x-popup-menu |
| 330 | event | 335 | event |