1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 18:40:39 -08:00

* lisp/progmodes/project.el (project-name): New

This commit is contained in:
Stephen Leake 2022-11-22 10:55:59 -08:00
parent 368d2531be
commit 361297c6f4

View file

@ -251,6 +251,11 @@ depending on the languages used, this list should include the
headers search path, load path, class path, and so on."
nil)
(cl-defgeneric project-name (project)
"A human-readable name for the project.
Nominally unique, but not enforced."
(file-name-base (directory-file-name (project-root project))))
(cl-defgeneric project-ignores (_project _dir)
"Return the list of glob patterns to ignore inside DIR.
Patterns can match both regular files and directories.