diff options
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/calc/calc-menu.el | 4 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/gnus/gnus-vm.el | 15 | ||||
| -rw-r--r-- | lisp/net/eudcb-bbdb.el | 14 |
5 files changed, 31 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fa835d5c6a9..9b112313d60 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2013-05-11 Glenn Morris <rgm@gnu.org> | 1 | 2013-05-11 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * calc/calc-menu.el: Make it loadable in isolation. | ||
| 4 | |||
| 5 | * net/eudcb-bbdb.el: Make it loadable without bbdb. | ||
| 6 | (eudc-bbdb-filter-non-matching-record, eudc-bbdb-extract-phones) | ||
| 7 | (eudc-bbdb-extract-addresses, eudc-bbdb-format-record-as-result) | ||
| 8 | (eudc-bbdb-query-internal): Require 'bbdb. | ||
| 9 | |||
| 3 | * lpr.el (lpr-headers-switches): | 10 | * lpr.el (lpr-headers-switches): |
| 4 | * emacs-lisp/testcover.el (testcover-compose-functions): Fix :type. | 11 | * emacs-lisp/testcover.el (testcover-compose-functions): Fix :type. |
| 5 | 12 | ||
diff --git a/lisp/calc/calc-menu.el b/lisp/calc/calc-menu.el index ee98cc98c8f..5120528eaf4 100644 --- a/lisp/calc/calc-menu.el +++ b/lisp/calc/calc-menu.el | |||
| @@ -1634,7 +1634,9 @@ | |||
| 1634 | (Info-goto-node "Help Commands"))]) | 1634 | (Info-goto-node "Help Commands"))]) |
| 1635 | "Menu for Calc's help functions.") | 1635 | "Menu for Calc's help functions.") |
| 1636 | 1636 | ||
| 1637 | (defvar calc-mode-map) | 1637 | ;; Needed to make this file loadable in isolation. |
| 1638 | ;; Another option would be to use calc-load-hook. | ||
| 1639 | (require 'calc) | ||
| 1638 | 1640 | ||
| 1639 | (easy-menu-define | 1641 | (easy-menu-define |
| 1640 | calc-menu | 1642 | calc-menu |
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index ea2bfa784d7..fba0cd8fea7 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-05-11 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * gnus-vm.el: Make it loadable without VM. | ||
| 4 | (gnus-vm-make-folder, gnus-summary-save-in-vm): Require 'vm. | ||
| 5 | (vm-forward-message, vm-reply, vm-mail): Remove unused autoloads. | ||
| 6 | |||
| 1 | 2013-05-09 Glenn Morris <rgm@gnu.org> | 7 | 2013-05-09 Glenn Morris <rgm@gnu.org> |
| 2 | 8 | ||
| 3 | * mml1991.el: Make it loadable. (Bug#13456) | 9 | * mml1991.el: Make it loadable. (Bug#13456) |
diff --git a/lisp/gnus/gnus-vm.el b/lisp/gnus/gnus-vm.el index fa39bae1763..55f99653cc4 100644 --- a/lisp/gnus/gnus-vm.el +++ b/lisp/gnus/gnus-vm.el | |||
| @@ -35,12 +35,10 @@ | |||
| 35 | (require 'gnus-msg) | 35 | (require 'gnus-msg) |
| 36 | 36 | ||
| 37 | (eval-when-compile | 37 | (eval-when-compile |
| 38 | (require 'cl) | 38 | (require 'cl)) |
| 39 | (autoload 'vm-mode "vm") | 39 | |
| 40 | (autoload 'vm-save-message "vm") | 40 | (autoload 'vm-mode "vm") |
| 41 | (autoload 'vm-forward-message "vm") | 41 | (autoload 'vm-save-message "vm") |
| 42 | (autoload 'vm-reply "vm") | ||
| 43 | (autoload 'vm-mail "vm")) | ||
| 44 | 42 | ||
| 45 | (defvar gnus-vm-inhibit-window-system nil | 43 | (defvar gnus-vm-inhibit-window-system nil |
| 46 | "Inhibit loading `win-vm' if using a window-system. | 44 | "Inhibit loading `win-vm' if using a window-system. |
| @@ -51,10 +49,8 @@ Has to be set before gnus-vm is loaded.") | |||
| 51 | (when window-system | 49 | (when window-system |
| 52 | (require 'win-vm)))) | 50 | (require 'win-vm)))) |
| 53 | 51 | ||
| 54 | (when (not (featurep 'vm)) | ||
| 55 | (load "vm")) | ||
| 56 | |||
| 57 | (defun gnus-vm-make-folder (&optional buffer) | 52 | (defun gnus-vm-make-folder (&optional buffer) |
| 53 | (require 'vm) | ||
| 58 | (let ((article (or buffer (current-buffer))) | 54 | (let ((article (or buffer (current-buffer))) |
| 59 | (tmp-folder (generate-new-buffer " *tmp-folder*")) | 55 | (tmp-folder (generate-new-buffer " *tmp-folder*")) |
| 60 | (start (point-min)) | 56 | (start (point-min)) |
| @@ -87,6 +83,7 @@ save those articles instead." | |||
| 87 | 83 | ||
| 88 | (defun gnus-summary-save-in-vm (&optional folder) | 84 | (defun gnus-summary-save-in-vm (&optional folder) |
| 89 | (interactive) | 85 | (interactive) |
| 86 | (require 'vm) | ||
| 90 | (setq folder | 87 | (setq folder |
| 91 | (gnus-read-save-file-name | 88 | (gnus-read-save-file-name |
| 92 | "Save %s in VM folder:" folder | 89 | "Save %s in VM folder:" folder |
diff --git a/lisp/net/eudcb-bbdb.el b/lisp/net/eudcb-bbdb.el index 9f6dba703b1..d9d2aa5fe85 100644 --- a/lisp/net/eudcb-bbdb.el +++ b/lisp/net/eudcb-bbdb.el | |||
| @@ -29,10 +29,10 @@ | |||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | 30 | ||
| 31 | (require 'eudc) | 31 | (require 'eudc) |
| 32 | (if (not (featurep 'bbdb)) | 32 | |
| 33 | (load-library "bbdb")) | 33 | ;; Make it loadable on systems without bbdb. |
| 34 | (if (not (featurep 'bbdb-com)) | 34 | (require 'bbdb nil t) |
| 35 | (load-library "bbdb-com")) | 35 | (require 'bbdb-com nil t) |
| 36 | 36 | ||
| 37 | ;;{{{ Internal cooking | 37 | ;;{{{ Internal cooking |
| 38 | 38 | ||
| @@ -71,6 +71,7 @@ | |||
| 71 | 71 | ||
| 72 | (defun eudc-bbdb-filter-non-matching-record (record) | 72 | (defun eudc-bbdb-filter-non-matching-record (record) |
| 73 | "Return RECORD if it matches `eudc-bbdb-current-query', nil otherwise." | 73 | "Return RECORD if it matches `eudc-bbdb-current-query', nil otherwise." |
| 74 | (require 'bbdb) | ||
| 74 | (catch 'unmatch | 75 | (catch 'unmatch |
| 75 | (progn | 76 | (progn |
| 76 | (dolist (condition eudc-bbdb-current-query) | 77 | (dolist (condition eudc-bbdb-current-query) |
| @@ -112,6 +113,7 @@ | |||
| 112 | (&optional dont-check-disk already-in-db-buffer)) | 113 | (&optional dont-check-disk already-in-db-buffer)) |
| 113 | 114 | ||
| 114 | (defun eudc-bbdb-extract-phones (record) | 115 | (defun eudc-bbdb-extract-phones (record) |
| 116 | (require 'bbdb) | ||
| 115 | (mapcar (function | 117 | (mapcar (function |
| 116 | (lambda (phone) | 118 | (lambda (phone) |
| 117 | (if eudc-bbdb-use-locations-as-attribute-names | 119 | (if eudc-bbdb-use-locations-as-attribute-names |
| @@ -123,6 +125,7 @@ | |||
| 123 | (bbdb-record-phones record))) | 125 | (bbdb-record-phones record))) |
| 124 | 126 | ||
| 125 | (defun eudc-bbdb-extract-addresses (record) | 127 | (defun eudc-bbdb-extract-addresses (record) |
| 128 | (require 'bbdb) | ||
| 126 | (let (s c val) | 129 | (let (s c val) |
| 127 | (mapcar (lambda (address) | 130 | (mapcar (lambda (address) |
| 128 | (setq c (bbdb-address-streets address)) | 131 | (setq c (bbdb-address-streets address)) |
| @@ -146,6 +149,7 @@ | |||
| 146 | (defun eudc-bbdb-format-record-as-result (record) | 149 | (defun eudc-bbdb-format-record-as-result (record) |
| 147 | "Format the BBDB RECORD as a EUDC query result record. | 150 | "Format the BBDB RECORD as a EUDC query result record. |
| 148 | The record is filtered according to `eudc-bbdb-current-return-attributes'" | 151 | The record is filtered according to `eudc-bbdb-current-return-attributes'" |
| 152 | (require 'bbdb) | ||
| 149 | (let ((attrs (or eudc-bbdb-current-return-attributes | 153 | (let ((attrs (or eudc-bbdb-current-return-attributes |
| 150 | '(firstname lastname aka company phones addresses net notes))) | 154 | '(firstname lastname aka company phones addresses net notes))) |
| 151 | attr | 155 | attr |
| @@ -188,7 +192,7 @@ QUERY is a list of cons cells (ATTR . VALUE) where ATTRs should be valid | |||
| 188 | BBDB attribute names. | 192 | BBDB attribute names. |
| 189 | RETURN-ATTRS is a list of attributes to return, defaulting to | 193 | RETURN-ATTRS is a list of attributes to return, defaulting to |
| 190 | `eudc-default-return-attributes'." | 194 | `eudc-default-return-attributes'." |
| 191 | 195 | (require 'bbdb) | |
| 192 | (let ((eudc-bbdb-current-query query) | 196 | (let ((eudc-bbdb-current-query query) |
| 193 | (eudc-bbdb-current-return-attributes return-attrs) | 197 | (eudc-bbdb-current-return-attributes return-attrs) |
| 194 | (query-attrs (eudc-bbdb-format-query query)) | 198 | (query-attrs (eudc-bbdb-format-query query)) |