Mercurial > emacs
comparison lisp/calendar/cal-menu.el @ 96317:1428d59cfd91
(calendar-check-holidays): Declare rather than autoloading.
(diary-show-holidays-flag): Remove unneeded declaration.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Thu, 26 Jun 2008 07:16:01 +0000 |
parents | c6f95c17e184 |
children | f0549aa8923b |
comparison
equal
deleted
inserted
replaced
96316:6eafa018d3b6 | 96317:1428d59cfd91 |
---|---|
158 (declare (indent 2)) | 158 (declare (indent 2)) |
159 `(if (display-popup-menus-p) | 159 `(if (display-popup-menus-p) |
160 (x-popup-menu ,event (list ,title (append (list ,title) ,@body))) | 160 (x-popup-menu ,event (list ,title (append (list ,title) ,@body))) |
161 (error "Popup menus are not available on this system"))) | 161 (error "Popup menus are not available on this system"))) |
162 | 162 |
163 (autoload 'calendar-check-holidays "holidays") | |
164 (autoload 'diary-list-entries "diary-lib") | 163 (autoload 'diary-list-entries "diary-lib") |
165 (defvar diary-show-holidays-flag) ; only called from calendar.el | 164 ;; Autoloaded in diary-lib. |
165 (declare-function calendar-check-holidays "holidays" (date)) | |
166 | 166 |
167 (defun calendar-mouse-view-diary-entries (&optional date diary event) | 167 (defun calendar-mouse-view-diary-entries (&optional date diary event) |
168 "Pop up menu of diary entries for mouse-selected date. | 168 "Pop up menu of diary entries for mouse-selected date. |
169 Use optional DATE and alternative file DIARY. EVENT is the event | 169 Use optional DATE and alternative file DIARY. EVENT is the event |
170 that invoked this command. Shows holidays if `diary-show-holidays-flag' | 170 that invoked this command. Shows holidays if `diary-show-holidays-flag' |