[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] scratch/editorconfig-cc cdbd60a8a6 234/351: M-x checkdoc
From: |
Stefan Monnier |
Subject: |
[nongnu] scratch/editorconfig-cc cdbd60a8a6 234/351: M-x checkdoc |
Date: |
Thu, 13 Jun 2024 18:38:57 -0400 (EDT) |
branch: scratch/editorconfig-cc
commit cdbd60a8a6d8a36be186d4811d9ec1ff292a606a
Author: 10sr <8.slashes@gmail.com>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
M-x checkdoc
---
editorconfig-core-handle.el | 2 +-
editorconfig.el | 17 ++++++++++++-----
2 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/editorconfig-core-handle.el b/editorconfig-core-handle.el
index c22172b56d..3cfae15501 100644
--- a/editorconfig-core-handle.el
+++ b/editorconfig-core-handle.el
@@ -53,7 +53,7 @@ Slots:
(props nil))
(defun editorconfig-core-handle-section-get-properties (section file dir)
- "Return properties alist when SECTION name matches FILE.
+ "Return properties alist when SECTION name match FILE.
DIR should be where the directory where .editorconfig which has SECTION exists.
IF not match, return nil."
diff --git a/editorconfig.el b/editorconfig.el
index cee7392b79..fbaad7fdff 100644
--- a/editorconfig.el
+++ b/editorconfig.el
@@ -133,7 +133,7 @@ overwrite \"indent_style\" property when current
`major-mode' is a
:group 'editorconfig)
(defcustom editorconfig-indentation-alist
- ;; For contributors: Sort modes in alphabetical order, please :)
+ ;; For contributors: Sort modes in alphabetical order
'((apache-mode apache-indent-level)
(awk-mode c-basic-offset)
(c++-mode c-basic-offset)
@@ -243,8 +243,7 @@ NOTE: Only the **buffer local** value of VARIABLE will be
set."
(defcustom editorconfig-exclude-regexps
(list (eval-when-compile
(rx string-start (or "http" "https" "ftp" "sftp" "rsync") ":")))
- "List of buffer filename prefix regexp patterns not to apply
-properties."
+ "List of buffer filename prefix regexp patterns not to apply properties."
:type '(repeat string)
:group 'editorconfig)
@@ -330,6 +329,13 @@ number - `lisp-indent-offset' is not set only if
indent_size is
eol)
nil t))))
+(defun editorconfig-set-trailing-nl (final-newline)
+ "Set up requiring final newline by FINAL-NEWLINE.
+
+This function will set `require-final-newline' and `mode-require-final-newline'
+to non-nil when FINAL-NEWLINE is true."
+ )
+
(defun editorconfig-set-trailing-ws (trim-trailing-ws)
(if editorconfig-trim-whitespaces-mode
(funcall editorconfig-trim-whitespaces-mode 1)
@@ -428,8 +434,9 @@ EXT should be a string like `\"ini\"`, if not nil or empty
string."
)
(defun editorconfig-get-properties-from-exec ()
- "Get EditorConfig properties of current buffer by calling
-`editorconfig-exec-path'."
+ "Get EditorConfig properties of current buffer.
+
+This function uses value of `editorconfig-exec-path' to get properties."
(if (executable-find editorconfig-exec-path)
(editorconfig-parse-properties (editorconfig-call-editorconfig-exec))
(error "Unable to find editorconfig executable")))
- [nongnu] scratch/editorconfig-cc 82af619ed5 206/351: Use derived-mode-p for major-mode check (#180), (continued)
- [nongnu] scratch/editorconfig-cc 82af619ed5 206/351: Use derived-mode-p for major-mode check (#180), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc df95ca5e4f 203/351: Do not call mode func when current mode is a child mode of target (#179), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 0072bcc14f 207/351: Update texi for hook name change, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc a365955dca 202/351: Use file_type_ext for test fixtures, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 60b39fadfb 209/351: Add variable -hack-properties-functions, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc f1b83aacd2 214/351: Fix hack-properties-functions example, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 10467ed9df 221/351: Use Markdown's code spans instead of Emacs style `' (#186), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 658bfb9bd8 213/351: Fix README and texi, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc e24803269d 212/351: Update document, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 6929cad23b 223/351: Update get-properties-hash, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc cdbd60a8a6 234/351: M-x checkdoc,
Stefan Monnier <=
- [nongnu] scratch/editorconfig-cc 0bbf63616a 231/351: Stop using cl-defclass, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 9cee9bb143 225/351: Get alist result from hash result, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 516ebfefa3 232/351: Remove useless spaces, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 50ed9cf1a7 235/351: Update year, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc ae8028cf3d 233/351: Add struct docstring, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc d5473b369e 236/351: Remove comment, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 023a221d87 239/351: Add fixes for package-lint, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 8271234c27 241/351: Use -*- lexical-binding: t -*-, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 876e476ded 238/351: Update README, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc c6d823b8a7 242/351: Separate tool functions, Stefan Monnier, 2024/06/13