Function: locate-get-file-positions
locate-get-file-positions is a byte-compiled function defined in
locate.el.gz.
Signature
(locate-get-file-positions)
Documentation
Return list of start and end of the file name on the current line.
This is a list of two buffer positions.
You should only call this function on lines that contain a file name
listed by the locate program. Inside inserted subdirectories, or if
there is no file name on the current line, the return value is
meaningless. You can check whether the current line contains a file
listed by the locate program, using the function
locate-main-listing-line-p.
Source Code
;; Defined in /usr/src/emacs/lisp/locate.el.gz
(defun locate-get-file-positions ()
"Return list of start and end of the file name on the current line.
This is a list of two buffer positions.
You should only call this function on lines that contain a file name
listed by the locate program. Inside inserted subdirectories, or if
there is no file name on the current line, the return value is
meaningless. You can check whether the current line contains a file
listed by the locate program, using the function
`locate-main-listing-line-p'."
(list (+ locate-filename-indentation
(line-beginning-position))
;; Assume names end at the end of the line.
(line-end-position)))