Mercurial > emacs
comparison lisp/eshell/em-cmpl.el @ 87065:ad15f913bd02
Require individual files if needed when compiling, rather than
esh-maint. Collect any require statements. Move provide statement to
end. Move any commentary to start.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Wed, 05 Dec 2007 07:00:41 +0000 |
parents | 794e428cd497 |
children | 107ccd98fa12 53108e6cea98 |
comparison
equal
deleted
inserted
replaced
87064:ce46e8bcbccd | 87065:ad15f913bd02 |
---|---|
19 | 19 |
20 ;; You should have received a copy of the GNU General Public License | 20 ;; You should have received a copy of the GNU General Public License |
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the | 21 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
22 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 22 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
23 ;; Boston, MA 02110-1301, USA. | 23 ;; Boston, MA 02110-1301, USA. |
24 | |
25 (provide 'em-cmpl) | |
26 | |
27 (eval-when-compile (require 'esh-maint)) | |
28 (require 'esh-util) | |
29 | |
30 (defgroup eshell-cmpl nil | |
31 "This module provides a programmable completion function bound to | |
32 the TAB key, which allows for completing command names, file names, | |
33 variable names, arguments, etc." | |
34 :tag "Argument completion" | |
35 :group 'eshell-module) | |
36 | 24 |
37 ;;; Commentary: | 25 ;;; Commentary: |
38 | 26 |
39 ;; Eshell, by using the pcomplete package, provides a full | 27 ;; Eshell, by using the pcomplete package, provides a full |
40 ;; programmable completion facility that is comparable to shells like | 28 ;; programmable completion facility that is comparable to shells like |
79 ;; pressing <M-?>. | 67 ;; pressing <M-?>. |
80 ;; | 68 ;; |
81 ;; Finally, context-related help can be accessed by pressing <C-c i>. | 69 ;; Finally, context-related help can be accessed by pressing <C-c i>. |
82 ;; This only works well if the completion function has provided Eshell | 70 ;; This only works well if the completion function has provided Eshell |
83 ;; with sufficient pointers to locate the relevant help text. | 71 ;; with sufficient pointers to locate the relevant help text. |
72 | |
73 ;;; Code: | |
74 | |
75 (eval-when-compile | |
76 (require 'eshell)) | |
77 (require 'esh-util) | |
78 | |
79 (defgroup eshell-cmpl nil | |
80 "This module provides a programmable completion function bound to | |
81 the TAB key, which allows for completing command names, file names, | |
82 variable names, arguments, etc." | |
83 :tag "Argument completion" | |
84 :group 'eshell-module) | |
84 | 85 |
85 ;;; User Variables: | 86 ;;; User Variables: |
86 | 87 |
87 (defcustom eshell-cmpl-load-hook '(eshell-cmpl-initialize) | 88 (defcustom eshell-cmpl-load-hook '(eshell-cmpl-initialize) |
88 "*A list of functions to run when `eshell-cmpl' is loaded." | 89 "*A list of functions to run when `eshell-cmpl' is loaded." |
446 (and eshell-show-lisp-alternatives | 447 (and eshell-show-lisp-alternatives |
447 (null completions))) | 448 (null completions))) |
448 (all-completions filename obarray 'functionp)) | 449 (all-completions filename obarray 'functionp)) |
449 completions))))))) | 450 completions))))))) |
450 | 451 |
451 ;;; Code: | 452 (provide 'em-cmpl) |
452 | 453 |
453 ;;; arch-tag: 0e914699-673a-45f8-8cbf-82e1dbc571bc | 454 ;;; arch-tag: 0e914699-673a-45f8-8cbf-82e1dbc571bc |
454 ;;; em-cmpl.el ends here | 455 ;;; em-cmpl.el ends here |