Function: try-expand-line-all-buffers

try-expand-line-all-buffers is a byte-compiled function defined in hippie-exp.el.gz.

Signature

(try-expand-line-all-buffers OLD)

Documentation

Try to complete the current line, searching all other buffers.

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-line-all-buffers (old)
  "Try to complete the current line, searching all other buffers.
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."
  (he--all-buffers
   old
   (lambda () (he-line-beg (and (get-buffer-process (current-buffer))
                           comint-use-prompt-regexp
                           comint-prompt-regexp)))
   (lambda (string)
     (he-line-search string
                     (and (get-buffer-process (current-buffer))
                          comint-use-prompt-regexp
                          comint-prompt-regexp)
                     nil))))