aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-03-13 05:47:55 +0000
committerGlenn Morris2008-03-13 05:47:55 +0000
commitee52e452b13004ee8265434152ff6b9ffbfc1348 (patch)
treec9fcaf5a25b53d40d30b0aa45a883276fef86396
parent6c1841babb1b6c9c8c1657248702c14b13d77fd2 (diff)
downloademacs-ee52e452b13004ee8265434152ff6b9ffbfc1348.tar.gz
emacs-ee52e452b13004ee8265434152ff6b9ffbfc1348.zip
(calendar-holiday-list, diary-list-entries, calendar-iso-from-absolute):
Fix autoloads. (generated-autoload-file): Don't set, instead use different values of generate-autoload-cookie plus Makefile rules to allow for a mixture of internal calendar autoloads and normal autoloads.
-rw-r--r--lisp/calendar/cal-tex.el40
1 files changed, 19 insertions, 21 deletions
diff --git a/lisp/calendar/cal-tex.el b/lisp/calendar/cal-tex.el
index fa971a9b644..9906fa7c5ec 100644
--- a/lisp/calendar/cal-tex.el
+++ b/lisp/calendar/cal-tex.el
@@ -60,10 +60,6 @@
60 60
61(require 'calendar) 61(require 'calendar)
62 62
63(autoload 'diary-list-entries "diary-lib" nil t)
64(autoload 'calendar-holiday-list "holidays" nil t)
65(autoload 'calendar-iso-from-absolute "cal-iso" nil t)
66
67;;; 63;;;
68;;; Customizable variables 64;;; Customizable variables
69;;; 65;;;
@@ -241,6 +237,8 @@ The names are taken from `calendar-day-name-array'.")
241 "LaTeX code to insert one box with date info in calendar. 237 "LaTeX code to insert one box with date info in calendar.
242This definition is the heart of the calendar!") 238This definition is the heart of the calendar!")
243 239
240(autoload 'calendar-holiday-list "holidays")
241
244(defun cal-tex-list-holidays (d1 d2) 242(defun cal-tex-list-holidays (d1 d2)
245 "Generate a list of all holidays from absolute date D1 to D2." 243 "Generate a list of all holidays from absolute date D1 to D2."
246 (let* ((start (calendar-gregorian-from-absolute d1)) 244 (let* ((start (calendar-gregorian-from-absolute d1))
@@ -265,6 +263,8 @@ This definition is the heart of the calendar!")
265 (setq in-range (append (list hol) in-range)))) 263 (setq in-range (append (list hol) in-range))))
266 in-range)) 264 in-range))
267 265
266(autoload 'diary-list-entries "diary-lib")
267
268(defun cal-tex-list-diary-entries (d1 d2) 268(defun cal-tex-list-diary-entries (d1 d2)
269 "Generate a list of all diary-entries from absolute date D1 to D2." 269 "Generate a list of all diary-entries from absolute date D1 to D2."
270 (let ((diary-list-include-blanks nil) 270 (let ((diary-list-include-blanks nil)
@@ -312,7 +312,7 @@ Optional string ARGS are included as options for the article document class."
312;;; Yearly calendars 312;;; Yearly calendars
313;;; 313;;;
314 314
315;;;###autoload 315;;;###cal-autoload
316(defun cal-tex-cursor-year (&optional arg) 316(defun cal-tex-cursor-year (&optional arg)
317 "Make a buffer with LaTeX commands for the year cursor is on. 317 "Make a buffer with LaTeX commands for the year cursor is on.
318Optional prefix argument ARG specifies number of years." 318Optional prefix argument ARG specifies number of years."
@@ -320,7 +320,7 @@ Optional prefix argument ARG specifies number of years."
320 (cal-tex-year (extract-calendar-year (calendar-cursor-to-date t)) 320 (cal-tex-year (extract-calendar-year (calendar-cursor-to-date t))
321 (or arg 1))) 321 (or arg 1)))
322 322
323;;;###autoload 323;;;###cal-autoload
324(defun cal-tex-cursor-year-landscape (&optional arg) 324(defun cal-tex-cursor-year-landscape (&optional arg)
325 "Make a buffer with LaTeX commands for the year cursor is on. 325 "Make a buffer with LaTeX commands for the year cursor is on.
326Optional prefix argument ARG specifies number of years." 326Optional prefix argument ARG specifies number of years."
@@ -364,7 +364,7 @@ landscape mode with three rows of four months each."
364 (run-hooks 'cal-tex-year-hook)) 364 (run-hooks 'cal-tex-year-hook))
365 (run-hooks 'cal-tex-hook)) 365 (run-hooks 'cal-tex-hook))
366 366
367;;;###autoload 367;;;###cal-autoload
368(defun cal-tex-cursor-filofax-year (&optional arg) 368(defun cal-tex-cursor-filofax-year (&optional arg)
369 "Make a Filofax one page yearly calendar of year indicated by cursor. 369 "Make a Filofax one page yearly calendar of year indicated by cursor.
370Optional prefix argument ARG specifies number of years." 370Optional prefix argument ARG specifies number of years."
@@ -417,7 +417,7 @@ Optional prefix argument ARG specifies number of years."
417;;; Monthly calendars 417;;; Monthly calendars
418;;; 418;;;
419 419
420;;;###autoload 420;;;###cal-autoload
421(defun cal-tex-cursor-month-landscape (&optional arg) 421(defun cal-tex-cursor-month-landscape (&optional arg)
422 "Make a LaTeX calendar buffer for the month the cursor is on. 422 "Make a LaTeX calendar buffer for the month the cursor is on.
423Optional prefix argument ARG specifies number of months to be 423Optional prefix argument ARG specifies number of months to be
@@ -486,7 +486,7 @@ month to a page. It shows holiday and diary entries if
486 (cal-tex-end-document) 486 (cal-tex-end-document)
487 (run-hooks 'cal-tex-hook)))) 487 (run-hooks 'cal-tex-hook))))
488 488
489;;;###autoload 489;;;###cal-autoload
490(defun cal-tex-cursor-month (arg) 490(defun cal-tex-cursor-month (arg)
491 "Make a LaTeX calendar buffer for the month the cursor is on. 491 "Make a LaTeX calendar buffer for the month the cursor is on.
492Optional prefix argument ARG specifies number of months to be 492Optional prefix argument ARG specifies number of months to be
@@ -672,7 +672,7 @@ this is only an upper bound."
672 672
673;; TODO cal-tex-diary-support. 673;; TODO cal-tex-diary-support.
674;; TODO respect cal-tex-daily-start,end (see cal-tex-week-hours). 674;; TODO respect cal-tex-daily-start,end (see cal-tex-week-hours).
675;;;###autoload 675;;;###cal-autoload
676(defun cal-tex-cursor-week (&optional arg) 676(defun cal-tex-cursor-week (&optional arg)
677 "Make a LaTeX calendar buffer for a two-page one-week calendar. 677 "Make a LaTeX calendar buffer for a two-page one-week calendar.
678It applies to the week that point is in. The optional prefix 678It applies to the week that point is in. The optional prefix
@@ -725,7 +725,7 @@ entries are not shown). The calendar shows the hours 8-12am, 1-5pm."
725 725
726;; TODO cal-tex-diary support. 726;; TODO cal-tex-diary support.
727;; TODO respect cal-tex-daily-start,end (see cal-tex-week-hours). 727;; TODO respect cal-tex-daily-start,end (see cal-tex-week-hours).
728;;;###autoload 728;;;###cal-autoload
729(defun cal-tex-cursor-week2 (&optional arg) 729(defun cal-tex-cursor-week2 (&optional arg)
730 "Make a LaTeX calendar buffer for a two-page one-week calendar. 730 "Make a LaTeX calendar buffer for a two-page one-week calendar.
731It applies to the week that point is in. Optional prefix 731It applies to the week that point is in. Optional prefix
@@ -805,7 +805,9 @@ entries are not shown). The calendar shows the hours 8-12am, 1-5pm"
805 (cal-tex-end-document) 805 (cal-tex-end-document)
806 (run-hooks 'cal-tex-hook))) 806 (run-hooks 'cal-tex-hook)))
807 807
808;;;###autoload 808(autoload 'calendar-iso-from-absolute "cal-iso")
809
810;;;###cal-autoload
809(defun cal-tex-cursor-week-iso (&optional arg) 811(defun cal-tex-cursor-week-iso (&optional arg)
810 "Make a LaTeX calendar buffer for a one page ISO-style weekly calendar. 812 "Make a LaTeX calendar buffer for a one page ISO-style weekly calendar.
811Optional prefix argument ARG specifies number of weeks (default 1). 813Optional prefix argument ARG specifies number of weeks (default 1).
@@ -937,7 +939,7 @@ shown are hard-coded to 8-12, 13-17."
937 939
938;; TODO cal-tex-diary support. 940;; TODO cal-tex-diary support.
939;; TODO respect cal-tex-daily-start,end (see cal-tex-weekly4-box). 941;; TODO respect cal-tex-daily-start,end (see cal-tex-weekly4-box).
940;;;###autoload 942;;;###cal-autoload
941(defun cal-tex-cursor-week-monday (&optional arg) 943(defun cal-tex-cursor-week-monday (&optional arg)
942 "Make a LaTeX calendar buffer for a two-page one-week calendar. 944 "Make a LaTeX calendar buffer for a two-page one-week calendar.
943It applies to the week that point is in, and starts on Monday. 945It applies to the week that point is in, and starts on Monday.
@@ -1018,7 +1020,7 @@ shown are hard-coded to 8-12, 13-17."
1018 (cal-tex-e-framebox) 1020 (cal-tex-e-framebox)
1019 (cal-tex-hspace "1cm"))) 1021 (cal-tex-hspace "1cm")))
1020 1022
1021;;;###autoload 1023;;;###cal-autoload
1022(defun cal-tex-cursor-filofax-2week (&optional arg) 1024(defun cal-tex-cursor-filofax-2week (&optional arg)
1023 "Two-weeks-at-a-glance Filofax style calendar for week cursor is in. 1025 "Two-weeks-at-a-glance Filofax style calendar for week cursor is in.
1024Optional prefix argument ARG specifies number of weeks (default 1). 1026Optional prefix argument ARG specifies number of weeks (default 1).
@@ -1113,7 +1115,7 @@ The calendar shows holiday and diary entries if
1113 (cal-tex-end-document) 1115 (cal-tex-end-document)
1114 (run-hooks 'cal-tex-hook))) 1116 (run-hooks 'cal-tex-hook)))
1115 1117
1116;;;###autoload 1118;;;###cal-autoload
1117(defun cal-tex-cursor-filofax-week (&optional arg) 1119(defun cal-tex-cursor-filofax-week (&optional arg)
1118 "One-week-at-a-glance Filofax style calendar for week indicated by cursor. 1120 "One-week-at-a-glance Filofax style calendar for week indicated by cursor.
1119Optional prefix argument ARG specifies number of weeks (default 1), 1121Optional prefix argument ARG specifies number of weeks (default 1),
@@ -1253,7 +1255,7 @@ if `cal-tex-holidays' and `cal-tex-diary', respectively, are non-nil."
1253 (cal-tex-end-document) 1255 (cal-tex-end-document)
1254 (run-hooks 'cal-tex-hook))) 1256 (run-hooks 'cal-tex-hook)))
1255 1257
1256;;;###autoload 1258;;;###cal-autoload
1257(defun cal-tex-cursor-filofax-daily (&optional arg) 1259(defun cal-tex-cursor-filofax-daily (&optional arg)
1258 "Day-per-page Filofax style calendar for week indicated by cursor. 1260 "Day-per-page Filofax style calendar for week indicated by cursor.
1259Optional prefix argument ARG specifies number of weeks (default 1), 1261Optional prefix argument ARG specifies number of weeks (default 1),
@@ -1367,7 +1369,7 @@ are non-nil. Pages are ruled if `cal-tex-rules' is non-nil."
1367;;; Daily calendars 1369;;; Daily calendars
1368;;; 1370;;;
1369 1371
1370;;;###autoload 1372;;;###cal-autoload
1371(defun cal-tex-cursor-day (&optional arg) 1373(defun cal-tex-cursor-day (&optional arg)
1372 "Make a buffer with LaTeX commands for the day cursor is on. 1374 "Make a buffer with LaTeX commands for the day cursor is on.
1373Optional prefix argument ARG specifies number of days. The calendar shows 1375Optional prefix argument ARG specifies number of days. The calendar shows
@@ -1806,9 +1808,5 @@ Add trailing COMMENT if present."
1806 1808
1807(provide 'cal-tex) 1809(provide 'cal-tex)
1808 1810
1809;; Local Variables:
1810;; generated-autoload-file: "cal-loaddefs.el"
1811;; End:
1812
1813;; arch-tag: ca8168a4-5a00-4508-a565-17e3bccce6d0 1811;; arch-tag: ca8168a4-5a00-4508-a565-17e3bccce6d0
1814;;; cal-tex.el ends here 1812;;; cal-tex.el ends here