[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r116888: Allow selective autoloading from lisp/obsol
From: |
Glenn Morris |
Subject: |
[Emacs-diffs] trunk r116888: Allow selective autoloading from lisp/obsolete directory |
Date: |
Thu, 27 Mar 2014 19:00:53 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 116888
revision-id: address@hidden
parent: address@hidden
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Thu 2014-03-27 15:00:49 -0400
message:
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.
modified:
lisp/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1432
lisp/Makefile.in
makefile.in-20091113204419-o5vbwnq5f7feedwu-1831
lisp/obsolete/iswitchb.el
iswitchb.el-20091113204419-o5vbwnq5f7feedwu-1173
lisp/simple.el simple.el-20091113204419-o5vbwnq5f7feedwu-403
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2014-03-27 17:34:22 +0000
+++ b/lisp/ChangeLog 2014-03-27 19:00:49 +0000
@@ -1,3 +1,11 @@
+2014-03-27 Glenn Morris <address@hidden>
+
+ Allow selective autoloading from obsolete/ directory.
+ * Makefile.in (obsolete-autoloads): New rule.
+ (autoloads): Run obsolete-autoloads.
+ * obsolete/iswitchb.el (iswitchb-mode): Use obsolete-autoload.
+ * simple.el (iswitchb-mode): Remove hand-written autoloads.
+
2014-03-27 Dmitry Gutov <address@hidden>
* progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
=== modified file 'lisp/Makefile.in'
--- a/lisp/Makefile.in 2014-03-21 07:22:41 +0000
+++ b/lisp/Makefile.in 2014-03-27 19:00:49 +0000
@@ -196,6 +196,17 @@
--eval '(setq autoload-builtin-package-versions t)' \
--eval '(setq generated-autoload-file (expand-file-name
(unmsys--file-name "$(srcdir)/loaddefs.el")))' \
-f batch-update-autoloads $$wins
+ $(MAKE) $(MFLAGS) obsolete-autoloads
+
+# The obsolete/ subdirectory is normally not scanned for autoloads.
+# Sometimes we still want to autoload something from that directory,
+# eg iswitchb.
+.PHONY: obsolete-autoloads
+obsolete-autoloads: ${lisp}/obsolete/*.el
+ $(emacs) -l autoload \
+ --eval '(setq generate-autoload-cookie ";;;###obsolete-autoload")' \
+ --eval '(setq generated-autoload-file (expand-file-name
(unmsys--file-name "$(srcdir)/loaddefs.el")))' \
+ -f batch-update-autoloads ${lisp}/obsolete
# This is required by the bootstrap-emacs target in ../src/Makefile, so
# we know that if we have an emacs executable, we also have a subdirs.el.
=== modified file 'lisp/obsolete/iswitchb.el'
--- a/lisp/obsolete/iswitchb.el 2014-02-07 03:22:34 +0000
+++ b/lisp/obsolete/iswitchb.el 2014-03-27 19:00:49 +0000
@@ -1416,10 +1416,7 @@
(isearch-no-upper-case-p iswitchb-text)
(isearch-no-upper-case-p iswitchb-text t))))
-;; NB obsolete/ is not scanned for autoloads.
-;; If you change any of the following doc, copy the changes to simple.el.
-
-;;;###autoload
+;;;###obsolete-autoload
(define-minor-mode iswitchb-mode
"Toggle Iswitchb mode.
With a prefix argument ARG, enable Iswitchb mode if ARG is
@@ -1433,7 +1430,7 @@
(add-hook 'minibuffer-setup-hook 'iswitchb-minibuffer-setup)
(remove-hook 'minibuffer-setup-hook 'iswitchb-minibuffer-setup)))
-;;;###autoload
+;;;###obsolete-autoload
(make-obsolete 'iswitchb-mode
"use `icomplete-mode' or `ido-mode' instead." "24.4")
=== modified file 'lisp/simple.el'
--- a/lisp/simple.el 2014-03-26 21:01:47 +0000
+++ b/lisp/simple.el 2014-03-27 19:00:49 +0000
@@ -7814,31 +7814,6 @@
command-name)))))))
-;; This is here because files in obsolete/ are not scanned for autoloads.
-
-(defvar iswitchb-mode nil "\
-Non-nil if Iswitchb mode is enabled.
-See the command `iswitchb-mode' for a description of this minor mode.
-Setting this variable directly does not take effect;
-either customize it (see the info node `Easy Customization')
-or call the function `iswitchb-mode'.")
-
-(custom-autoload 'iswitchb-mode "iswitchb" nil)
-
-(autoload 'iswitchb-mode "iswitchb" "\
-Toggle Iswitchb mode.
-With a prefix argument ARG, enable Iswitchb mode if ARG is
-positive, and disable it otherwise. If called from Lisp, enable
-the mode if ARG is omitted or nil.
-
-Iswitchb mode is a global minor mode that enables switching
-between buffers using substrings. See `iswitchb' for details.
-
-\(fn &optional ARG)" t nil)
-
-(make-obsolete 'iswitchb-mode
- "use `icomplete-mode' or `ido-mode' instead." "24.4")
-
(provide 'simple)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r116888: Allow selective autoloading from lisp/obsolete directory,
Glenn Morris <=