aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhillip Lord2015-12-16 23:08:17 +0000
committerPhillip Lord2015-12-17 20:42:15 +0000
commita014779ffa16a0d5b03b808d73a9421777a05e5c (patch)
tree35e47ff3aa17671dbbc9374713b5329a8962c83a
parentef69697161a6be69dde281c119d5024f1a9546e0 (diff)
downloademacs-a014779ffa16a0d5b03b808d73a9421777a05e5c.tar.gz
emacs-a014779ffa16a0d5b03b808d73a9421777a05e5c.zip
ibuffer generate autoloads to non-versioned file.
* lisp/Makefile.in: Add ibuffer-loaddefs to autogenel. * lisp/ibuf-ext.el: Update file local. * lisp/ibuffer.el: Remove autoloads and add a require. * test/lisp/ibuffer-tests.el: Test that autoload is working.
-rw-r--r--lisp/Makefile.in3
-rw-r--r--lisp/ibuf-ext.el2
-rw-r--r--lisp/ibuffer.el377
-rw-r--r--test/lisp/ibuffer-tests.el34
4 files changed, 38 insertions, 378 deletions
diff --git a/lisp/Makefile.in b/lisp/Makefile.in
index 1322722f432..c98b427d785 100644
--- a/lisp/Makefile.in
+++ b/lisp/Makefile.in
@@ -90,7 +90,8 @@ AUTOGENEL = loaddefs.el \
90 cedet/srecode/loaddefs.el \ 90 cedet/srecode/loaddefs.el \
91 org/org-loaddefs.el \ 91 org/org-loaddefs.el \
92 textmodes/reftex-loaddefs.el \ 92 textmodes/reftex-loaddefs.el \
93 mail/rmail-loaddefs.el 93 mail/rmail-loaddefs.el \
94 ibuffer-loaddefs.el
94 95
95# Set load-prefer-newer for the benefit of the non-bootstrappers. 96# Set load-prefer-newer for the benefit of the non-bootstrappers.
96BYTE_COMPILE_FLAGS = \ 97BYTE_COMPILE_FLAGS = \
diff --git a/lisp/ibuf-ext.el b/lisp/ibuf-ext.el
index e5df9997b5a..a2d92e9d9ab 100644
--- a/lisp/ibuf-ext.el
+++ b/lisp/ibuf-ext.el
@@ -1598,7 +1598,7 @@ defaults to one."
1598(provide 'ibuf-ext) 1598(provide 'ibuf-ext)
1599 1599
1600;; Local Variables: 1600;; Local Variables:
1601;; generated-autoload-file: "ibuffer.el" 1601;; generated-autoload-file: "ibuffer-loaddefs.el"
1602;; End: 1602;; End:
1603 1603
1604;;; ibuf-ext.el ends here 1604;;; ibuf-ext.el ends here
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el
index 89477bd919f..3253a636c48 100644
--- a/lisp/ibuffer.el
+++ b/lisp/ibuffer.el
@@ -37,6 +37,7 @@
37 37
38(require 'font-core) 38(require 'font-core)
39 39
40(require 'ibuffer-loaddefs)
40;; These come from ibuf-ext.el, which can not be require'd at compile time 41;; These come from ibuf-ext.el, which can not be require'd at compile time
41;; because it has a recursive dependency on ibuffer.el 42;; because it has a recursive dependency on ibuffer.el
42(defvar ibuffer-auto-mode) 43(defvar ibuffer-auto-mode)
@@ -2598,382 +2599,6 @@ will be inserted before the group at point."
2598 (setq default-directory ibuffer-default-directory)) 2599 (setq default-directory ibuffer-default-directory))
2599 (add-hook 'change-major-mode-hook 'font-lock-defontify nil t)) 2600 (add-hook 'change-major-mode-hook 'font-lock-defontify nil t))
2600 2601
2601
2602;;; Start of automatically extracted autoloads.
2603
2604;;;### (autoloads nil "ibuf-ext" "ibuf-ext.el" "65ef908165926cf48da6f43fd01ef50b")
2605;;; Generated autoloads from ibuf-ext.el
2606
2607(autoload 'ibuffer-auto-mode "ibuf-ext" "\
2608Toggle use of Ibuffer's auto-update facility (Ibuffer Auto mode).
2609With a prefix argument ARG, enable Ibuffer Auto mode if ARG is
2610positive, and disable it otherwise. If called from Lisp, enable
2611the mode if ARG is omitted or nil.
2612
2613\(fn &optional ARG)" t nil)
2614
2615(autoload 'ibuffer-mouse-filter-by-mode "ibuf-ext" "\
2616Enable or disable filtering by the major mode chosen via mouse.
2617
2618\(fn EVENT)" t nil)
2619
2620(autoload 'ibuffer-interactive-filter-by-mode "ibuf-ext" "\
2621Enable or disable filtering by the major mode at point.
2622
2623\(fn EVENT-OR-POINT)" t nil)
2624
2625(autoload 'ibuffer-mouse-toggle-filter-group "ibuf-ext" "\
2626Toggle the display status of the filter group chosen with the mouse.
2627
2628\(fn EVENT)" t nil)
2629
2630(autoload 'ibuffer-toggle-filter-group "ibuf-ext" "\
2631Toggle the display status of the filter group on this line.
2632
2633\(fn)" t nil)
2634
2635(autoload 'ibuffer-forward-filter-group "ibuf-ext" "\
2636Move point forwards by COUNT filtering groups.
2637
2638\(fn &optional COUNT)" t nil)
2639
2640(autoload 'ibuffer-backward-filter-group "ibuf-ext" "\
2641Move point backwards by COUNT filtering groups.
2642
2643\(fn &optional COUNT)" t nil)
2644 (autoload 'ibuffer-do-shell-command-pipe "ibuf-ext")
2645 (autoload 'ibuffer-do-shell-command-pipe-replace "ibuf-ext")
2646 (autoload 'ibuffer-do-shell-command-file "ibuf-ext")
2647 (autoload 'ibuffer-do-eval "ibuf-ext")
2648 (autoload 'ibuffer-do-view-and-eval "ibuf-ext")
2649 (autoload 'ibuffer-do-rename-uniquely "ibuf-ext")
2650 (autoload 'ibuffer-do-revert "ibuf-ext")
2651 (autoload 'ibuffer-do-isearch "ibuf-ext")
2652 (autoload 'ibuffer-do-isearch-regexp "ibuf-ext")
2653 (autoload 'ibuffer-do-replace-regexp "ibuf-ext")
2654 (autoload 'ibuffer-do-query-replace "ibuf-ext")
2655 (autoload 'ibuffer-do-query-replace-regexp "ibuf-ext")
2656 (autoload 'ibuffer-do-print "ibuf-ext")
2657
2658(autoload 'ibuffer-included-in-filters-p "ibuf-ext" "\
2659
2660
2661\(fn BUF FILTERS)" nil nil)
2662
2663(autoload 'ibuffer-filters-to-filter-group "ibuf-ext" "\
2664Make the current filters into a filtering group.
2665
2666\(fn NAME)" t nil)
2667
2668(autoload 'ibuffer-set-filter-groups-by-mode "ibuf-ext" "\
2669Set the current filter groups to filter by mode.
2670
2671\(fn)" t nil)
2672
2673(autoload 'ibuffer-pop-filter-group "ibuf-ext" "\
2674Remove the first filter group.
2675
2676\(fn)" t nil)
2677
2678(autoload 'ibuffer-decompose-filter-group "ibuf-ext" "\
2679Decompose the filter group GROUP into active filters.
2680
2681\(fn GROUP)" t nil)
2682
2683(autoload 'ibuffer-clear-filter-groups "ibuf-ext" "\
2684Remove all filter groups.
2685
2686\(fn)" t nil)
2687
2688(autoload 'ibuffer-jump-to-filter-group "ibuf-ext" "\
2689Move point to the filter group whose name is NAME.
2690
2691\(fn NAME)" t nil)
2692
2693(autoload 'ibuffer-kill-filter-group "ibuf-ext" "\
2694Kill the filter group named NAME.
2695The group will be added to `ibuffer-filter-group-kill-ring'.
2696
2697\(fn NAME)" t nil)
2698
2699(autoload 'ibuffer-kill-line "ibuf-ext" "\
2700Kill the filter group at point.
2701See also `ibuffer-kill-filter-group'.
2702
2703\(fn &optional ARG INTERACTIVE-P)" t nil)
2704
2705(autoload 'ibuffer-yank "ibuf-ext" "\
2706Yank the last killed filter group before group at point.
2707
2708\(fn)" t nil)
2709
2710(autoload 'ibuffer-yank-filter-group "ibuf-ext" "\
2711Yank the last killed filter group before group named NAME.
2712
2713\(fn NAME)" t nil)
2714
2715(autoload 'ibuffer-save-filter-groups "ibuf-ext" "\
2716Save all active filter groups GROUPS as NAME.
2717They are added to `ibuffer-saved-filter-groups'. Interactively,
2718prompt for NAME, and use the current filters.
2719
2720\(fn NAME GROUPS)" t nil)
2721
2722(autoload 'ibuffer-delete-saved-filter-groups "ibuf-ext" "\
2723Delete saved filter groups with NAME.
2724They are removed from `ibuffer-saved-filter-groups'.
2725
2726\(fn NAME)" t nil)
2727
2728(autoload 'ibuffer-switch-to-saved-filter-groups "ibuf-ext" "\
2729Set this buffer's filter groups to saved version with NAME.
2730The value from `ibuffer-saved-filter-groups' is used.
2731
2732\(fn NAME)" t nil)
2733
2734(autoload 'ibuffer-filter-disable "ibuf-ext" "\
2735Disable all filters currently in effect in this buffer.
2736With optional arg DELETE-FILTER-GROUPS non-nil, delete all filter
2737group definitions by setting `ibuffer-filter-groups' to nil.
2738
2739\(fn &optional DELETE-FILTER-GROUPS)" t nil)
2740
2741(autoload 'ibuffer-pop-filter "ibuf-ext" "\
2742Remove the top filter in this buffer.
2743
2744\(fn)" t nil)
2745
2746(autoload 'ibuffer-decompose-filter "ibuf-ext" "\
2747Separate the top compound filter (OR, NOT, or SAVED) in this buffer.
2748
2749This means that the topmost filter on the filtering stack, which must
2750be a complex filter like (OR [name: foo] [mode: bar-mode]), will be
2751turned into two separate filters [name: foo] and [mode: bar-mode].
2752
2753\(fn)" t nil)
2754
2755(autoload 'ibuffer-exchange-filters "ibuf-ext" "\
2756Exchange the top two filters on the stack in this buffer.
2757
2758\(fn)" t nil)
2759
2760(autoload 'ibuffer-negate-filter "ibuf-ext" "\
2761Negate the sense of the top filter in the current buffer.
2762
2763\(fn)" t nil)
2764
2765(autoload 'ibuffer-or-filter "ibuf-ext" "\
2766Replace the top two filters in this buffer with their logical OR.
2767If optional argument REVERSE is non-nil, instead break the top OR
2768filter into parts.
2769
2770\(fn &optional REVERSE)" t nil)
2771
2772(autoload 'ibuffer-save-filters "ibuf-ext" "\
2773Save FILTERS in this buffer with name NAME in `ibuffer-saved-filters'.
2774Interactively, prompt for NAME, and use the current filters.
2775
2776\(fn NAME FILTERS)" t nil)
2777
2778(autoload 'ibuffer-delete-saved-filters "ibuf-ext" "\
2779Delete saved filters with NAME from `ibuffer-saved-filters'.
2780
2781\(fn NAME)" t nil)
2782
2783(autoload 'ibuffer-add-saved-filters "ibuf-ext" "\
2784Add saved filters from `ibuffer-saved-filters' to this buffer's filters.
2785
2786\(fn NAME)" t nil)
2787
2788(autoload 'ibuffer-switch-to-saved-filters "ibuf-ext" "\
2789Set this buffer's filters to filters with NAME from `ibuffer-saved-filters'.
2790
2791\(fn NAME)" t nil)
2792 (autoload 'ibuffer-filter-by-mode "ibuf-ext")
2793 (autoload 'ibuffer-filter-by-used-mode "ibuf-ext")
2794 (autoload 'ibuffer-filter-by-derived-mode "ibuf-ext")
2795 (autoload 'ibuffer-filter-by-name "ibuf-ext")
2796 (autoload 'ibuffer-filter-by-filename "ibuf-ext")
2797 (autoload 'ibuffer-filter-by-size-gt "ibuf-ext")
2798 (autoload 'ibuffer-filter-by-size-lt "ibuf-ext")
2799 (autoload 'ibuffer-filter-by-content "ibuf-ext")
2800 (autoload 'ibuffer-filter-by-predicate "ibuf-ext")
2801
2802(autoload 'ibuffer-toggle-sorting-mode "ibuf-ext" "\
2803Toggle the current sorting mode.
2804Default sorting modes are:
2805 Recency - the last time the buffer was viewed
2806 Name - the name of the buffer
2807 Major Mode - the name of the major mode of the buffer
2808 Size - the size of the buffer
2809
2810\(fn)" t nil)
2811
2812(autoload 'ibuffer-invert-sorting "ibuf-ext" "\
2813Toggle whether or not sorting is in reverse order.
2814
2815\(fn)" t nil)
2816 (autoload 'ibuffer-do-sort-by-major-mode "ibuf-ext")
2817 (autoload 'ibuffer-do-sort-by-mode-name "ibuf-ext")
2818 (autoload 'ibuffer-do-sort-by-alphabetic "ibuf-ext")
2819 (autoload 'ibuffer-do-sort-by-size "ibuf-ext")
2820 (autoload 'ibuffer-do-sort-by-filename/process "ibuf-ext")
2821
2822(autoload 'ibuffer-bs-show "ibuf-ext" "\
2823Emulate `bs-show' from the bs.el package.
2824
2825\(fn)" t nil)
2826
2827(autoload 'ibuffer-add-to-tmp-hide "ibuf-ext" "\
2828Add REGEXP to `ibuffer-tmp-hide-regexps'.
2829This means that buffers whose name matches REGEXP will not be shown
2830for this Ibuffer session.
2831
2832\(fn REGEXP)" t nil)
2833
2834(autoload 'ibuffer-add-to-tmp-show "ibuf-ext" "\
2835Add REGEXP to `ibuffer-tmp-show-regexps'.
2836This means that buffers whose name matches REGEXP will always be shown
2837for this Ibuffer session.
2838
2839\(fn REGEXP)" t nil)
2840
2841(autoload 'ibuffer-forward-next-marked "ibuf-ext" "\
2842Move forward by COUNT marked buffers (default 1).
2843
2844If MARK is non-nil, it should be a character denoting the type of mark
2845to move by. The default is `ibuffer-marked-char'.
2846
2847If DIRECTION is non-nil, it should be an integer; negative integers
2848mean move backwards, non-negative integers mean move forwards.
2849
2850\(fn &optional COUNT MARK DIRECTION)" t nil)
2851
2852(autoload 'ibuffer-backwards-next-marked "ibuf-ext" "\
2853Move backwards by COUNT marked buffers (default 1).
2854
2855If MARK is non-nil, it should be a character denoting the type of mark
2856to move by. The default is `ibuffer-marked-char'.
2857
2858\(fn &optional COUNT MARK)" t nil)
2859
2860(autoload 'ibuffer-do-kill-lines "ibuf-ext" "\
2861Hide all of the currently marked lines.
2862
2863\(fn)" t nil)
2864
2865(autoload 'ibuffer-jump-to-buffer "ibuf-ext" "\
2866Move point to the buffer whose name is NAME.
2867
2868If called interactively, prompt for a buffer name and go to the
2869corresponding line in the Ibuffer buffer. If said buffer is in a
2870hidden group filter, open it.
2871
2872If `ibuffer-jump-offer-only-visible-buffers' is non-nil, only offer
2873visible buffers in the completion list. Calling the command with
2874a prefix argument reverses the meaning of that variable.
2875
2876\(fn NAME)" t nil)
2877
2878(autoload 'ibuffer-diff-with-file "ibuf-ext" "\
2879View the differences between marked buffers and their associated files.
2880If no buffers are marked, use buffer at point.
2881This requires the external program \"diff\" to be in your `exec-path'.
2882
2883\(fn)" t nil)
2884
2885(autoload 'ibuffer-copy-filename-as-kill "ibuf-ext" "\
2886Copy filenames of marked buffers into the kill ring.
2887
2888The names are separated by a space.
2889If a buffer has no filename, it is ignored.
2890
2891With no prefix arg, use the filename sans its directory of each marked file.
2892With a zero prefix arg, use the complete filename of each marked file.
2893With \\[universal-argument], use the filename of each marked file relative
2894to `ibuffer-default-directory' if non-nil, otherwise `default-directory'.
2895
2896You can then feed the file name(s) to other commands with \\[yank].
2897
2898\(fn &optional ARG)" t nil)
2899
2900(autoload 'ibuffer-mark-by-name-regexp "ibuf-ext" "\
2901Mark all buffers whose name matches REGEXP.
2902
2903\(fn REGEXP)" t nil)
2904
2905(autoload 'ibuffer-mark-by-mode-regexp "ibuf-ext" "\
2906Mark all buffers whose major mode matches REGEXP.
2907
2908\(fn REGEXP)" t nil)
2909
2910(autoload 'ibuffer-mark-by-file-name-regexp "ibuf-ext" "\
2911Mark all buffers whose file name matches REGEXP.
2912
2913\(fn REGEXP)" t nil)
2914
2915(autoload 'ibuffer-mark-by-mode "ibuf-ext" "\
2916Mark all buffers whose major mode equals MODE.
2917
2918\(fn MODE)" t nil)
2919
2920(autoload 'ibuffer-mark-modified-buffers "ibuf-ext" "\
2921Mark all modified buffers.
2922
2923\(fn)" t nil)
2924
2925(autoload 'ibuffer-mark-unsaved-buffers "ibuf-ext" "\
2926Mark all modified buffers that have an associated file.
2927
2928\(fn)" t nil)
2929
2930(autoload 'ibuffer-mark-dissociated-buffers "ibuf-ext" "\
2931Mark all buffers whose associated file does not exist.
2932
2933\(fn)" t nil)
2934
2935(autoload 'ibuffer-mark-help-buffers "ibuf-ext" "\
2936Mark buffers whose major mode is in variable `ibuffer-help-buffer-modes'.
2937
2938\(fn)" t nil)
2939
2940(autoload 'ibuffer-mark-compressed-file-buffers "ibuf-ext" "\
2941Mark buffers whose associated file is compressed.
2942
2943\(fn)" t nil)
2944
2945(autoload 'ibuffer-mark-old-buffers "ibuf-ext" "\
2946Mark buffers which have not been viewed in `ibuffer-old-time' hours.
2947
2948\(fn)" t nil)
2949
2950(autoload 'ibuffer-mark-special-buffers "ibuf-ext" "\
2951Mark all buffers whose name begins and ends with `*'.
2952
2953\(fn)" t nil)
2954
2955(autoload 'ibuffer-mark-read-only-buffers "ibuf-ext" "\
2956Mark all read-only buffers.
2957
2958\(fn)" t nil)
2959
2960(autoload 'ibuffer-mark-dired-buffers "ibuf-ext" "\
2961Mark all `dired' buffers.
2962
2963\(fn)" t nil)
2964
2965(autoload 'ibuffer-do-occur "ibuf-ext" "\
2966View lines which match REGEXP in all marked buffers.
2967Optional argument NLINES says how many lines of context to display: it
2968defaults to one.
2969
2970\(fn REGEXP &optional NLINES)" t nil)
2971
2972;;;***
2973
2974;;; End of automatically extracted autoloads.
2975
2976
2977(provide 'ibuffer) 2602(provide 'ibuffer)
2978 2603
2979(run-hooks 'ibuffer-load-hook) 2604(run-hooks 'ibuffer-load-hook)
diff --git a/test/lisp/ibuffer-tests.el b/test/lisp/ibuffer-tests.el
new file mode 100644
index 00000000000..c813e717c9f
--- /dev/null
+++ b/test/lisp/ibuffer-tests.el
@@ -0,0 +1,34 @@
1;;; ibuffer-tests.el --- Test suite. -*- lexical-binding: t -*-
2
3;; Copyright (C) 2015 Free Software Foundation, Inc.
4
5;; This file is part of GNU Emacs.
6
7;; GNU Emacs is free software: you can redistribute it and/or modify
8;; it under the terms of the GNU General Public License as published by
9;; the Free Software Foundation, either version 3 of the License, or
10;; (at your option) any later version.
11
12;; GNU Emacs is distributed in the hope that it will be useful,
13;; but WITHOUT ANY WARRANTY; without even the implied warranty of
14;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;; GNU General Public License for more details.
16
17;; You should have received a copy of the GNU General Public License
18;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
19
20;;; Code:
21(require 'ert)
22(require 'ibuffer)
23
24(ert-deftest ibuffer-autoload ()
25 "Tests to see whether reftex-auc has been autoloaded"
26 (should
27 (fboundp 'ibuffer-mark-unsaved-buffers))
28 (should
29 (autoloadp
30 (symbol-function
31 'ibuffer-mark-unsaved-buffers))))
32
33(provide 'ibuffer-tests)
34;; ibuffer-tests.el ends here