Function: tramp-search-regexp
tramp-search-regexp is a byte-compiled function defined in
tramp.el.gz.
Signature
(tramp-search-regexp REGEXP)
Documentation
Search for REGEXP backwards, starting at point-max.
If found, set point to the end of the occurrence found, and return point. Otherwise, return nil.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defun tramp-search-regexp (regexp)
"Search for REGEXP backwards, starting at point-max.
If found, set point to the end of the occurrence found, and return point.
Otherwise, return nil."
(goto-char (point-max))
;; We restrict ourselves to the last 256 characters. There were
;; reports of a shell command "git ls-files -zco --exclude-standard"
;; with 85k files involved, which has blocked Tramp forever.
(search-backward-regexp regexp (max (point-min) (- (point) 256)) 'noerror))