[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/project 85156f5 1/5: Rename project{, -find}-funct
From: |
Dmitry Gutov |
Subject: |
[Emacs-diffs] scratch/project 85156f5 1/5: Rename project{, -find}-functions and update some docstrings |
Date: |
Wed, 08 Jul 2015 13:02:36 +0000 |
branch: scratch/project
commit 85156f549daae18d1559eba0c249b42ba914834b
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Rename project{,-find}-functions and update some docstrings
---
lisp/progmodes/project.el | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index 21c5190..b18d65d 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -27,9 +27,9 @@
(require 'cl-generic)
-(defvar project-functions '(project-try-vc
- project-try-ede
- project-ask-user)
+(defvar project-find-functions (list #'project-try-vc
+ #'project-try-ede
+ #'project-ask-user)
"Special hook to find the project containing a given directory.
Each functions on this hook is called in turn with one
argument (the directory) and should return either nil to mean
@@ -39,23 +39,24 @@ that it is not applicable, or a project instance.")
(defun project-current (&optional dir)
"Return the project instance in DIR or `default-directory'."
(unless dir (setq dir default-directory))
- (run-hook-with-args-until-success 'project-functions dir))
+ (run-hook-with-args-until-success 'project-find-functions dir))
(cl-defgeneric project-root (project)
- "Return the root directory of the current project.")
+ "Return the root directory of the current project.
+The directory name should be absolute.")
(cl-defgeneric project-source-directories (project)
"Return the list of source directories.
Including any where source (or header, etc) files used by the
current project may be found. Including those outside of the
-project tree."
+project tree. The directory names should be absolute."
(project-directories project))
(cl-defgeneric project-directories (project)
"Return the list of directories related to the current project.
It should include the current project root, then possibly the
roots of any currently open related projects (if they're meant to
-be edited together)."
+be edited together). The directory names should be absolute."
(list (project-root project)))
(defvar project-vc-root-files '(".git" ".hg" ".bzr"))
- [Emacs-diffs] scratch/project updated (106e023 -> fc4ab93), Dmitry Gutov, 2015/07/08
- [Emacs-diffs] scratch/project 97b4004 3/5: project-try-ede: Make it work, Dmitry Gutov, 2015/07/08
- [Emacs-diffs] scratch/project 85156f5 1/5: Rename project{, -find}-functions and update some docstrings,
Dmitry Gutov <=
- [Emacs-diffs] scratch/project b3cc9f0 2/5: project-try-vc: Integrate with VC, Dmitry Gutov, 2015/07/08
- [Emacs-diffs] scratch/project 0b6fd17 4/5: project-try-vc: Ignore errors, Dmitry Gutov, 2015/07/08
- [Emacs-diffs] scratch/project fc4ab93 5/5: Actually define project-root for a `user' project, Dmitry Gutov, 2015/07/08