Function: try-expand-dabbrev-from-kill
try-expand-dabbrev-from-kill is a byte-compiled function defined in
hippie-exp.el.gz.
Signature
(try-expand-dabbrev-from-kill OLD)
Documentation
Try to expand word "dynamically", searching the kill ring.
The argument OLD has to be nil the first call of this function, and t for subsequent calls (for further possible completions of the same string). It returns t if a new completion is found, nil otherwise.
Source Code
;; Defined in /usr/src/emacs/lisp/hippie-exp.el.gz
(defun try-expand-dabbrev-from-kill (old)
"Try to expand word \"dynamically\", searching the kill ring.
The argument OLD has to be nil the first call of this function, and t
for subsequent calls (for further possible completions of the same
string). It returns t if a new completion is found, nil otherwise."
(let ((expansion ()))
(if (not old)
(progn
(he-init-string (he-dabbrev-beg) (point))
(setq he-expand-list
(if (not (equal he-search-string ""))
kill-ring))
(setq he-search-loc2 0)))
(if (not (equal he-search-string ""))
(setq expansion (he-dabbrev-kill-search he-search-string)))
(if (not expansion)
(progn
(if old (he-reset-string))
())
(progn
(he-substitute-string expansion t)
t))))