Function: etags--ensure-file
etags--ensure-file is a byte-compiled function defined in etags.el.gz.
Signature
(etags--ensure-file FILE)
Documentation
Ensure FILE can be visited.
FILE should be an expanded file name.
This function tries to locate FILE, possibly adding it a suffix
present in tags-compression-info-list. If the file can't be found,
signals an error.
Else, returns the filename that can be visited for sure.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/etags.el.gz
(defun etags--ensure-file (file)
"Ensure FILE can be visited.
FILE should be an expanded file name.
This function tries to locate FILE, possibly adding it a suffix
present in `tags-compression-info-list'. If the file can't be found,
signals an error.
Else, returns the filename that can be visited for sure."
(let ((f (locate-file file nil (if auto-compression-mode
tags-compression-info-list
'("")))))
(unless f
(signal 'file-missing (list "Cannot locate file in TAGS" file)))
f))