diff options
| author | Glenn Morris | 2008-04-05 18:55:09 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-04-05 18:55:09 +0000 |
| commit | 94b73aefc4de5e0dc85bed3fc292b55f1d4d0236 (patch) | |
| tree | 392d654e9c8d7363d1a66981cd2bd8b75fdf7fc8 | |
| parent | 099659f94e7f0e02fbc642d1ed0778e8a036469f (diff) | |
| download | emacs-94b73aefc4de5e0dc85bed3fc292b55f1d4d0236.tar.gz emacs-94b73aefc4de5e0dc85bed3fc292b55f1d4d0236.zip | |
Require loaddef file rather than loading it.
| -rw-r--r-- | lisp/ChangeLog | 21 | ||||
| -rw-r--r-- | lisp/calendar/calendar.el | 7 | ||||
| -rw-r--r-- | lisp/calendar/diary-lib.el | 4 | ||||
| -rw-r--r-- | lisp/calendar/holidays.el | 4 |
4 files changed, 23 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 20816c12e72..14fb413f41a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,20 @@ | |||
| 1 | 2008-04-05 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/autoload.el (autoload-ensure-default-file): | ||
| 4 | Provide a feature. | ||
| 5 | * calendar/calendar.el, calendar/diary-lib.el, calendar/holidays.el: | ||
| 6 | Require loaddef file rather than loading it. | ||
| 7 | * Makefile.in ($(lisp)/mh-e/mh-loaddefs.el): Simplify rule now that | ||
| 8 | autoload-ensure-default-file provides a feature. | ||
| 9 | |||
| 10 | * Makefile.in (LOADDEFS): Add mh-loaddefs.el. | ||
| 11 | (AUTOGENEL): mh-loaddefs is in $LOADDEFS now. | ||
| 12 | (compile, compile-always, recompile): Use $LOADDEFS. | ||
| 13 | (cal-autoloads): Remove. | ||
| 14 | |||
| 15 | * calendar/cal-x.el (calendar-dedicate-diary): Use get-buffer rather | ||
| 16 | than buffer-live-p. Reported by David Koppelman <koppel@ece.lsu.edu>. | ||
| 17 | |||
| 1 | 2008-04-05 Stefan Monnier <monnier@iro.umontreal.ca> | 18 | 2008-04-05 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 19 | ||
| 3 | * server.el: Undo part of the multi-tty change, which is only | 20 | * server.el: Undo part of the multi-tty change, which is only |
| @@ -91,9 +108,9 @@ | |||
| 91 | 108 | ||
| 92 | 2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu> | 109 | 2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu> |
| 93 | 110 | ||
| 94 | * ediff*el: replaced load with require in eval-when-compile. | 111 | * ediff*.el: Replace load with require in eval-when-compile. |
| 95 | 112 | ||
| 96 | * ediff-hook: deleted all invocations of (autoload ...). | 113 | * ediff-hook: Delete all invocations of (autoload ...). |
| 97 | 114 | ||
| 98 | * ediff-util.el (ediff-setup): Make window-min-height a local variable | 115 | * ediff-util.el (ediff-setup): Make window-min-height a local variable |
| 99 | in ediff control window, and set its min height to 2. | 116 | in ediff control window, and set its min height to 2. |
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index 74679246d3e..0ec489f80ca 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el | |||
| @@ -116,12 +116,9 @@ | |||
| 116 | 116 | ||
| 117 | ;;; Code: | 117 | ;;; Code: |
| 118 | 118 | ||
| 119 | ;; (elisp) Eval During Compile: "Effectively `require' is | 119 | (require 'cal-loaddefs) |
| 120 | ;; automatically `eval-and-compile'" [but `load' is not] | ||
| 121 | (eval-and-compile | ||
| 122 | (load "cal-loaddefs" nil 'quiet)) | ||
| 123 | 120 | ||
| 124 | ;; Avoid recursive load of calendar when loading cal-menu. | 121 | ;; Avoid recursive load of calendar when loading cal-menu. Yuck. |
| 125 | (provide 'calendar) | 122 | (provide 'calendar) |
| 126 | (require 'cal-menu) | 123 | (require 'cal-menu) |
| 127 | 124 | ||
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el index e9350330193..75cd12d3210 100644 --- a/lisp/calendar/diary-lib.el +++ b/lisp/calendar/diary-lib.el | |||
| @@ -31,9 +31,7 @@ | |||
| 31 | ;;; Code: | 31 | ;;; Code: |
| 32 | 32 | ||
| 33 | (require 'calendar) | 33 | (require 'calendar) |
| 34 | 34 | (require 'diary-loaddefs) | |
| 35 | (eval-and-compile | ||
| 36 | (load "diary-loaddefs" nil 'quiet)) | ||
| 37 | 35 | ||
| 38 | (defcustom diary-include-string "#include" | 36 | (defcustom diary-include-string "#include" |
| 39 | "The string indicating inclusion of another file of diary entries. | 37 | "The string indicating inclusion of another file of diary entries. |
diff --git a/lisp/calendar/holidays.el b/lisp/calendar/holidays.el index 8660d247d98..4a4fe325b8e 100644 --- a/lisp/calendar/holidays.el +++ b/lisp/calendar/holidays.el | |||
| @@ -31,9 +31,7 @@ | |||
| 31 | ;;; Code: | 31 | ;;; Code: |
| 32 | 32 | ||
| 33 | (require 'calendar) | 33 | (require 'calendar) |
| 34 | 34 | (require 'hol-loaddefs) | |
| 35 | (eval-and-compile | ||
| 36 | (load "hol-loaddefs" nil 'quiet)) | ||
| 37 | 35 | ||
| 38 | ;;;###diary-autoload | 36 | ;;;###diary-autoload |
| 39 | (defun calendar-holiday-list () | 37 | (defun calendar-holiday-list () |