Function: projectile--file-name-sans-extensions

projectile--file-name-sans-extensions is a byte-compiled function defined in projectile.el.

Signature

(projectile--file-name-sans-extensions FILE-NAME)

Documentation

Return FILE-NAME sans any extensions.

The extensions, in a filename, are what follows the first '.', with the exception of a leading '.'

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defun projectile--file-name-sans-extensions (file-name)
  "Return FILE-NAME sans any extensions.
The extensions, in a filename, are what follows the first '.', with the
exception of a leading '.'"
  (setq file-name (file-name-nondirectory file-name))
  (substring file-name 0 (string-match "\\..*" file-name 1)))