aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2014-03-27 15:00:49 -0400
committerGlenn Morris2014-03-27 15:00:49 -0400
commit6730259fea22fcd4b7d28f3b57fef2d5776a2dad (patch)
treebcb208f844d667b195a0310200ca769732165f49
parentc31528bf1c82fcd6789d14ad24a548f7c95d0b3b (diff)
downloademacs-6730259fea22fcd4b7d28f3b57fef2d5776a2dad.tar.gz
emacs-6730259fea22fcd4b7d28f3b57fef2d5776a2dad.zip
Allow selective autoloading from lisp/obsolete directory
* lisp/Makefile.in (obsolete-autoloads): New rule. (autoloads): Run obsolete-autoloads. * lisp/obsolete/iswitchb.el (iswitchb-mode): Use obsolete-autoload. * lisp/simple.el (iswitchb-mode): Remove hand-written autoloads.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/Makefile.in11
-rw-r--r--lisp/obsolete/iswitchb.el7
-rw-r--r--lisp/simple.el25
4 files changed, 21 insertions, 30 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index fc83e157d18..2553fea6a4d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12014-03-27 Glenn Morris <rgm@gnu.org>
2
3 Allow selective autoloading from obsolete/ directory.
4 * Makefile.in (obsolete-autoloads): New rule.
5 (autoloads): Run obsolete-autoloads.
6 * obsolete/iswitchb.el (iswitchb-mode): Use obsolete-autoload.
7 * simple.el (iswitchb-mode): Remove hand-written autoloads.
8
12014-03-27 Dmitry Gutov <dgutov@yandex.ru> 92014-03-27 Dmitry Gutov <dgutov@yandex.ru>
2 10
3 * progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight 11 * progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
diff --git a/lisp/Makefile.in b/lisp/Makefile.in
index 6a1bca4c03b..eb86256d186 100644
--- a/lisp/Makefile.in
+++ b/lisp/Makefile.in
@@ -196,6 +196,17 @@ autoloads: $(LOADDEFS) doit
196 --eval '(setq autoload-builtin-package-versions t)' \ 196 --eval '(setq autoload-builtin-package-versions t)' \
197 --eval '(setq generated-autoload-file (expand-file-name (unmsys--file-name "$(srcdir)/loaddefs.el")))' \ 197 --eval '(setq generated-autoload-file (expand-file-name (unmsys--file-name "$(srcdir)/loaddefs.el")))' \
198 -f batch-update-autoloads $$wins 198 -f batch-update-autoloads $$wins
199 $(MAKE) $(MFLAGS) obsolete-autoloads
200
201# The obsolete/ subdirectory is normally not scanned for autoloads.
202# Sometimes we still want to autoload something from that directory,
203# eg iswitchb.
204.PHONY: obsolete-autoloads
205obsolete-autoloads: ${lisp}/obsolete/*.el
206 $(emacs) -l autoload \
207 --eval '(setq generate-autoload-cookie ";;;###obsolete-autoload")' \
208 --eval '(setq generated-autoload-file (expand-file-name (unmsys--file-name "$(srcdir)/loaddefs.el")))' \
209 -f batch-update-autoloads ${lisp}/obsolete
199 210
200# This is required by the bootstrap-emacs target in ../src/Makefile, so 211# This is required by the bootstrap-emacs target in ../src/Makefile, so
201# we know that if we have an emacs executable, we also have a subdirs.el. 212# we know that if we have an emacs executable, we also have a subdirs.el.
diff --git a/lisp/obsolete/iswitchb.el b/lisp/obsolete/iswitchb.el
index c1313b8a00f..dfe1222d550 100644
--- a/lisp/obsolete/iswitchb.el
+++ b/lisp/obsolete/iswitchb.el
@@ -1416,10 +1416,7 @@ See the variable `iswitchb-case' for details."
1416 (isearch-no-upper-case-p iswitchb-text) 1416 (isearch-no-upper-case-p iswitchb-text)
1417 (isearch-no-upper-case-p iswitchb-text t)))) 1417 (isearch-no-upper-case-p iswitchb-text t))))
1418 1418
1419;; NB obsolete/ is not scanned for autoloads. 1419;;;###obsolete-autoload
1420;; If you change any of the following doc, copy the changes to simple.el.
1421
1422;;;###autoload
1423(define-minor-mode iswitchb-mode 1420(define-minor-mode iswitchb-mode
1424 "Toggle Iswitchb mode. 1421 "Toggle Iswitchb mode.
1425With a prefix argument ARG, enable Iswitchb mode if ARG is 1422With a prefix argument ARG, enable Iswitchb mode if ARG is
@@ -1433,7 +1430,7 @@ between buffers using substrings. See `iswitchb' for details."
1433 (add-hook 'minibuffer-setup-hook 'iswitchb-minibuffer-setup) 1430 (add-hook 'minibuffer-setup-hook 'iswitchb-minibuffer-setup)
1434 (remove-hook 'minibuffer-setup-hook 'iswitchb-minibuffer-setup))) 1431 (remove-hook 'minibuffer-setup-hook 'iswitchb-minibuffer-setup)))
1435 1432
1436;;;###autoload 1433;;;###obsolete-autoload
1437(make-obsolete 'iswitchb-mode 1434(make-obsolete 'iswitchb-mode
1438 "use `icomplete-mode' or `ido-mode' instead." "24.4") 1435 "use `icomplete-mode' or `ido-mode' instead." "24.4")
1439 1436
diff --git a/lisp/simple.el b/lisp/simple.el
index 2ee62310b98..ea9ba8fa9a5 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -7814,31 +7814,6 @@ contains the list of implementations currently supported for this command."
7814 command-name))))))) 7814 command-name)))))))
7815 7815
7816 7816
7817;; This is here because files in obsolete/ are not scanned for autoloads.
7818
7819(defvar iswitchb-mode nil "\
7820Non-nil if Iswitchb mode is enabled.
7821See the command `iswitchb-mode' for a description of this minor mode.
7822Setting this variable directly does not take effect;
7823either customize it (see the info node `Easy Customization')
7824or call the function `iswitchb-mode'.")
7825
7826(custom-autoload 'iswitchb-mode "iswitchb" nil)
7827
7828(autoload 'iswitchb-mode "iswitchb" "\
7829Toggle Iswitchb mode.
7830With a prefix argument ARG, enable Iswitchb mode if ARG is
7831positive, and disable it otherwise. If called from Lisp, enable
7832the mode if ARG is omitted or nil.
7833
7834Iswitchb mode is a global minor mode that enables switching
7835between buffers using substrings. See `iswitchb' for details.
7836
7837\(fn &optional ARG)" t nil)
7838
7839(make-obsolete 'iswitchb-mode
7840 "use `icomplete-mode' or `ido-mode' instead." "24.4")
7841
7842 7817
7843(provide 'simple) 7818(provide 'simple)
7844 7819