-
-
Notifications
You must be signed in to change notification settings - Fork 649
fix: Address most compile warnings #3858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,9 +40,9 @@ | |
| "Determines if namespaces are displayed in the macroexpansion buffer. | ||
| Possible values are: | ||
| 'qualified ;=> Vars are fully-qualified in the expansion | ||
| 'none ;=> Vars are displayed without namespace qualification | ||
| 'tidy ;=> Vars that are :refer-ed or defined in the current namespace are | ||
| `qualified ;=> Vars are fully-qualified in the expansion | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why the use of different quotes here? |
||
| `none ;=> Vars are displayed without namespace qualification | ||
| `tidy ;=> Vars that are :refer-ed or defined in the current namespace are | ||
| displayed with their simple name, non-referred vars from other | ||
| namespaces are referred using the alias for that namespace (if | ||
| defined), other vars are displayed fully qualified." | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,6 +42,7 @@ | |
| (require 'cider-completion-context) | ||
| (require 'cider-inspector) | ||
| (require 'cider-find) | ||
| (require 'cider-log) | ||
| (require 'cider-xref-backend) | ||
| (require 'subr-x) | ||
|
|
||
|
|
@@ -465,8 +466,8 @@ If invoked with a prefix ARG eval the expression after inserting it." | |
| (defconst cider--has-many-mouse-buttons (not (memq window-system '(mac ns))) | ||
| "Non-nil if system binds forward and back buttons to <mouse-8> and <mouse-9>. | ||
|
|
||
| As it stands Emacs fires these events on <mouse-8> and <mouse-9> on 'x' and | ||
| 'w32'systems while on macOS it presents them on <mouse-4> and <mouse-5>.") | ||
| As it stands Emacs fires these events on <mouse-8> and <mouse-9> on `x' and | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd drop the quotes and make X uppercase. |
||
| `w32'systems while on macOS it presents them on <mouse-4> and <mouse-5>.") | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably we can remove the quotes here completely, as the proposed quoting definitely seems incorrect given it was referring to the value of |
||
|
|
||
| (defcustom cider-use-xref t | ||
| "Enable xref integration." | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -98,8 +98,8 @@ Setting this to nil removes the fontification restriction." | |
| (nth 4 (parse-partial-sexp beg (point))))) | ||
|
|
||
| (defun cider--tooling-file-p (file-name) | ||
| "Return t if FILE-NAME is not a 'real' source file. | ||
| Currently, only check if the relative file name starts with 'form-init' | ||
| "Return t if FILE-NAME is not a `real' source file. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's better not to have quotes here at all. |
||
| Currently, only check if the relative file name starts with `form-init' | ||
| which nREPL uses for temporary evaluation file names." | ||
| (let ((fname (file-name-nondirectory file-name))) | ||
| (string-match-p "^form-init" fname))) | ||
|
|
@@ -449,13 +449,13 @@ objects." | |
| candidates)) | ||
|
|
||
| (defun cider-add-to-alist (symbol car cadr) | ||
| "Add '(CAR CADR) to the alist stored in SYMBOL. | ||
| "Add \\='(CAR CADR) to the alist stored in SYMBOL. | ||
| If CAR already corresponds to an entry in the alist, destructively replace | ||
| the entry's second element with CADR. | ||
|
|
||
| This can be used, for instance, to update the version of an injected | ||
| plugin or dependency with: | ||
| (cider-add-to-alist 'cider-jack-in-lein-plugins | ||
| (cider-add-to-alist \\='cider-jack-in-lein-plugins | ||
| \"plugin/artifact-name\" \"THE-NEW-VERSION\")" | ||
| (let ((alist (symbol-value symbol))) | ||
| (if-let* ((cons (assoc car alist))) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better remove the quotes here IMO.