[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 144e7d9 069/399: counsel.el: Clean up recent compile varia
From: |
Oleh Krehel |
Subject: |
[elpa] master 144e7d9 069/399: counsel.el: Clean up recent compile variables |
Date: |
Sat, 20 Jul 2019 14:56:51 -0400 (EDT) |
branch: master
commit 144e7d90fc5f8787e4130ec870e62c6305f46c12
Author: Basil L. Contovounesios <address@hidden>
Commit: Basil L. Contovounesios <address@hidden>
counsel.el: Clean up recent compile variables
(counsel-compile-history): Touch-up docstring.
(counsel-compile-root-function): Quote symbol as function.
(counsel-project-current): Use and instead of when.
(counsel-compile-local-builds): Refill docstring.
(counsel-compile-make-args): Clarify docstring.
(counsel-compile-make-pattern, counsel-compile-build-directories):
Fix :type tags and docstrings.
---
counsel.el | 43 ++++++++++++++++++++++---------------------
1 file changed, 22 insertions(+), 21 deletions(-)
diff --git a/counsel.el b/counsel.el
index 8d3c677..c92925b 100644
--- a/counsel.el
+++ b/counsel.el
@@ -5103,29 +5103,29 @@ in the current window."
(defvar counsel-compile-history nil
"History for `counsel-compile'.
-This is a list of strings with additional properties which allow the
-history to be filtered depending on the context of the call. The
-properties include:
+This is a list of strings with additional properties which allow
+the history to be filtered depending on the context of the call.
+The properties include:
`srcdir'
- the root directory of the source code
+ the root directory of the source code
`blddir'
- the root directory of the build (in or outside the srcdir)
+ the root directory of the build (in or outside the `srcdir')
`recursive'
- the completion should be run again in `blddir' of this result
+ the completion should be run again in `blddir' of this result
`cmd'
- if set only the region with this property will be passed to `compile'
+ if set, pass only the substring with this property to `compile'
-If you want to persist history between Emacs sessions you can as this
-to variable to `savehist-additional-variables'.")
+This variable is suitable for addition to
+`savehist-additional-variables'.")
-(defvar counsel-compile-root-function 'counsel-project-current
+(defvar counsel-compile-root-function #'counsel-project-current
"Function to find the project root for compile commands.")
(defun counsel-project-current ()
"Locate the root of the project by trying a series of things."
- (or (when (fboundp 'project-current)
- (cdr (project-current)))
+ (or (and (fboundp 'project-current)
+ (cdr (project-current)))
(counsel--dominating-file ".dir-locals.el")
(counsel--dominating-file ".git")
(error "Couldn't find project root")))
@@ -5136,25 +5136,26 @@ to variable to `savehist-additional-variables'.")
counsel-compile-get-make-invocation)
"Additional compile invocations to feed into `counsel-compile'.
-This can either be a list of compile invocations strings or
+This can either be a list of compile invocation strings or
functions that will provide such a list. You should customise
this if you want to provide specific non-standard build types to
-`counsel-compile'. The default helpers are set up to handle common
-build environments.")
+`counsel-compile'. The default helpers are set up to handle
+common build environments.")
(defcustom counsel-compile-make-args "-k"
"Additional arguments for make.
-You may for example want to add -jN for the number of cores you have."
+You may, for example, want to add \"-jN\" for the number of cores
+N in your system."
:type 'string)
-(defcustom counsel-compile-make-pattern "\\(?:GNUM\\|[Mm]\\)akefile"
- "Pattern for matching against makefiles."
- :type 'regex)
+(defcustom counsel-compile-make-pattern "\\`\\(?:GNUM\\|[Mm]\\)akefile\\'"
+ "Regexp for matching the names of Makefiles."
+ :type 'regexp)
(defcustom counsel-compile-build-directories
'("build" "builds" "bld" ".build")
- "Patterns for matching build directories."
- :type 'list)
+ "List of potential build subdirectory names to check for."
+ :type '(repeat directory))
;; This is loosely based on the Bash Make completion code
(defun counsel--get-make-targets (srcdir &optional blddir)
- [elpa] master 5f4e944 057/399: counsel.el: Fix finding dominating file, (continued)
- [elpa] master 5f4e944 057/399: counsel.el: Fix finding dominating file, Oleh Krehel, 2019/07/20
- [elpa] master 3c16fa1 055/399: counsel.el (counsel-compile): Clean up, Oleh Krehel, 2019/07/20
- [elpa] master 876b4ac 059/399: counsel.el (counsel-compile): Minor cleanup, Oleh Krehel, 2019/07/20
- [elpa] master 56201b1 056/399: counsel.el: Remove cl-extra, Oleh Krehel, 2019/07/20
- [elpa] master 859e3cb 061/399: counsel.el: Clean up compile history keeping, Oleh Krehel, 2019/07/20
- [elpa] master 072f238 058/399: counsel.el: Capitalize proper noun "Git", Oleh Krehel, 2019/07/20
- [elpa] master 5f5a263 054/399: counsel.el (counsel-compile): Add, Oleh Krehel, 2019/07/20
- [elpa] master adea72f 060/399: counsel.el: Simplify counsel-compile action, Oleh Krehel, 2019/07/20
- [elpa] master 50dc9e6 065/399: counsel.el (counsel--get-build-subdirs): Fix, Oleh Krehel, 2019/07/20
- [elpa] master 4e0d403 066/399: counsel.el (counsel--find-build-subdir): Simplify, Oleh Krehel, 2019/07/20
- [elpa] master 144e7d9 069/399: counsel.el: Clean up recent compile variables,
Oleh Krehel <=
- [elpa] master 82e6c54 067/399: counsel.el: Clean up compile make invocation, Oleh Krehel, 2019/07/20
- [elpa] master bb58a29 071/399: counsel.el (counsel-ag): Fix error in non-Git directory, Oleh Krehel, 2019/07/20
- [elpa] master f0d93cf 073/399: counsel.el (counsel-compile): counsel-compile-get-filtered-history, Oleh Krehel, 2019/07/20
- [elpa] master ce0c39e 076/399: counsel.el (counsel--git-root): Rename, Oleh Krehel, 2019/07/20
- [elpa] master a37d4e3 072/399: counsel.el (counsel-compile): fix breakage to subdir recursion, Oleh Krehel, 2019/07/20
- [elpa] master 86c904f 077/399: counsel.el (counsel-compile-root-functions): Change priority, Oleh Krehel, 2019/07/20
- [elpa] master c2788de 082/399: counsel.el (counsel--switch-buffer-update-fn): if to cond, Oleh Krehel, 2019/07/20
- [elpa] master 1439e8d 064/399: counsel.el: Simplify compile build dir collection, Oleh Krehel, 2019/07/20
- [elpa] master 7e8a362 068/399: counsel.el (counsel--get-make-targets): Clean up, Oleh Krehel, 2019/07/20
- [elpa] master d64b268 074/399: counsel.el (counsel-compile): counsel--get-build-subdirs, Oleh Krehel, 2019/07/20