• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/emacs-93/emacs/lisp/

Lines Matching defs:try

33 ;;  Which kinds of completions to try, and in which order, is
34 ;; determined by the contents of `hippie-expand-try-functions-list'.
43 ;; outputs in a message which try-function in the list that is used
48 ;; is used by the try-functions named "-all-buffers".
51 ;; buffers that should not be searched by the try-functions named
66 ;; A short description of the current try-functions in this file:
67 ;; `try-complete-file-name' : very convenient to have in any buffer,
71 ;; `try-complete-file-name-partially' : To insert in the list just
72 ;; before `try-complete-file-name' for those who want first to get
74 ;; `try-expand-all-abbrevs' : can be removed if you don't use abbrevs.
77 ;; `try-expand-line' : Searches the buffer for an entire line that
81 ;; `try-expand-line-all-buffers' : Like `try-expand-line' but searches
84 ;; `try-expand-list' : Tries to expand the text back to the nearest
87 ;; `try-expand-list-all-buffers' : Like `try-expand-list' but searches
89 ;; `try-expand-dabbrev' : works exactly as dabbrev-expand (but of
90 ;; course in a way compatible with the other try-functions).
91 ;; `try-expand-dabbrev-all-buffers' : perhaps the most useful of them,
95 ;; `try-expand-dabbrev-visible': Searches the currently visible parts of
96 ;; all windows. Can be put before `try-expand-dabbrev-all-buffers' to
97 ;; first try the expansions you can see.
98 ;; `try-expand-dabbrev-from-kill': Searches the kill ring for a suitable
101 ;; `try-expand-whole-kill' : Tries to complete text with a whole entry
105 ;; `try-complete-lisp-symbol' : like `lisp-complete-symbol', but goes
110 ;; `try-complete-lisp-symbol-partially' : To insert in the list just
111 ;; before `try-complete-lisp-symbol' for those who first want to get
115 ;; `hippie-expand-try-functions-list'. This variable is better set
118 ;; variable with all kinds of try-functions above, it might be an
120 ;; `hippie-expand'-like functions, with different try-lists and bound
122 ;; `hippie-expand-try-functions-list' a buffer local variable, and
125 ;; To write new try-functions, consider the following:
126 ;; Each try-function takes one argument OLD which is nil the first
132 ;; The try-function is to return t as long as it finds new
136 ;; The try-function can (should) use the following functions:
147 ;; all tried expansions so far. The try-function can check this
155 ;; because different try-functions may try to complete different
206 (defcustom hippie-expand-try-functions-list
207 '(try-complete-file-name-partially
208 try-complete-file-name
209 try-expand-all-abbrevs
210 try-expand-list
211 try-expand-line
212 try-expand-dabbrev
213 try-expand-dabbrev-all-buffers
214 try-expand-dabbrev-from-kill
215 try-complete-lisp-symbol-partially
216 try-complete-lisp-symbol)
275 The expansion functions in `hippie-expand-try-functions-list' are
295 (while (not (or (>= i (length hippie-expand-try-functions-list))
296 (apply (nth i hippie-expand-try-functions-list)
300 (if (>= he-num (length hippie-expand-try-functions-list))
310 (nth he-num hippie-expand-try-functions-list)))))
409 ;; different try-functions-lists.
412 ;; '(try-complete-file-name-partially
413 ;; try-complete-file-name)))
415 ;; '(try-expand-line
416 ;; try-expand-line-all-buffers)))
419 (defmacro make-hippie-expand-function (try-list &optional verbose)
426 (mapconcat 'prin1-to-string (eval try-list) ", "))
428 (let ((hippie-expand-try-functions-list ,try-list)
433 ;;; Here follows the try-functions and their requisites:
436 (defun try-complete-file-name (old)
472 (defun try-complete-file-name-partially (old)
567 (defun try-complete-lisp-symbol (old)
597 (defun try-complete-lisp-symbol-partially (old)
608 (try-completion he-search-string obarray
631 (defun try-expand-line (old)
678 (defun try-expand-line-all-buffers (old)
769 (defun try-expand-list (old)
811 (defun try-expand-list-all-buffers (old)
894 (defun try-expand-all-abbrevs (old)
924 (defun try-expand-dabbrev (old)
966 (defun try-expand-dabbrev-all-buffers (old)
1019 (defun try-expand-dabbrev-visible (old)
1101 (defun try-expand-dabbrev-from-kill (old)
1155 (defun try-expand-whole-kill (old)