Function: TeX--concat-ext

TeX--concat-ext is a byte-compiled function defined in tex.el.

Signature

(TeX--concat-ext NAME-OR-FILE-FN &optional EXTENSION)

Documentation

Append EXTENSION to a filename specified by NAME-OR-FILE-FN.

If NAME-OR-FILE-FN is a string, interpret it as the filename. Otherwise, assume it is a callable function and call it with EXTENSION as an argument and return the result without modification. EXTENSION is a string which should not start with
'.'.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX--concat-ext (name-or-file-fn &optional extension)
  "Append EXTENSION to a filename specified by NAME-OR-FILE-FN.

If NAME-OR-FILE-FN is a string, interpret it as the filename.
Otherwise, assume it is a callable function and call it with
EXTENSION as an argument and return the result without
modification.  EXTENSION is a string which should not start with
'.'."
  (if (stringp name-or-file-fn)
      (if extension
          (concat name-or-file-fn "." extension)
        name-or-file-fn)
    (funcall name-or-file-fn extension)))