Mercurial > emacs
comparison lisp/hippie-exp.el @ 2230:6314334d7c2b
Add standard library headers.
author | Eric S. Raymond <esr@snark.thyrsus.com> |
---|---|
date | Wed, 17 Mar 1993 15:58:09 +0000 |
parents | d7e9186edefa |
children | fb0ed5a1d0f3 |
comparison
equal
deleted
inserted
replaced
2229:bd3c525fa6fc | 2230:6314334d7c2b |
---|---|
1 ;; Expand a word trying various ways to find its expansion. | 1 ;;; hippie.el --- expand a word trying various ways to find its expansion. |
2 | |
3 ;; Author: Anders Holst <aho@sans.kth.se> | |
4 ;; Keywords: extensions | |
5 | |
2 ;; Copyright (C) 1992 Free Software Foundation, Inc. | 6 ;; Copyright (C) 1992 Free Software Foundation, Inc. |
3 ;; | 7 ;; |
4 ;; This file is part of GNU Emacs. | 8 ;; This file is part of GNU Emacs. |
5 | 9 |
6 ;; GNU Emacs is free software; you can redistribute it and/or modify | 10 ;; GNU Emacs is free software; you can redistribute it and/or modify |
15 | 19 |
16 ;; 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 |
17 ;; along with GNU Emacs; see the file COPYING. If not, write to | 21 ;; along with GNU Emacs; see the file COPYING. If not, write to |
18 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 22 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
19 ;; | 23 ;; |
20 ;; Author: Anders Holst (aho@sans.kth.se) | |
21 ;; | |
22 ;; Last change: 4 January 1993 | 24 ;; Last change: 4 January 1993 |
23 | 25 |
24 ;; | 26 ;; Commentary: |
25 ;; DESCRIPTION | |
26 ;; | 27 ;; |
27 ;; `hippie-expand' is a single function for a lot of different kinds | 28 ;; `hippie-expand' is a single function for a lot of different kinds |
28 ;; of completions and expansions. Called repeatedly it tries all | 29 ;; of completions and expansions. Called repeatedly it tries all |
29 ;; possible completions in succession. | 30 ;; possible completions in succession. |
30 ;; Which kinds of completions to try, and in which order, is | 31 ;; Which kinds of completions to try, and in which order, is |
122 ;; of this function took form. | 123 ;; of this function took form. |
123 ;; I am also grateful to all those who have given me suggestions on | 124 ;; I am also grateful to all those who have given me suggestions on |
124 ;; how to improve it. | 125 ;; how to improve it. |
125 ;; | 126 ;; |
126 | 127 |
128 ;; Code: | |
127 | 129 |
128 (defvar he-num -1) | 130 (defvar he-num -1) |
129 | 131 |
130 (defvar he-string-beg ()) | 132 (defvar he-string-beg ()) |
131 | 133 |
670 (save-excursion | 672 (save-excursion |
671 (skip-chars-backward skips) | 673 (skip-chars-backward skips) |
672 (skip-chars-forward "-_.") | 674 (skip-chars-forward "-_.") |
673 (point)))) | 675 (point)))) |
674 | 676 |
677 ;;; hippie.el ends here |