[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/gnu-indent 1cdba5cd9b 05/17: Don't warn on setting gnu-ind
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/gnu-indent 1cdba5cd9b 05/17: Don't warn on setting gnu-indent-options first time |
Date: |
Sun, 27 Nov 2022 16:00:24 -0500 (EST) |
branch: elpa/gnu-indent
commit 1cdba5cd9b7f74b34eac84e5eaa69609c5dd3743
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@disroot.org>
Don't warn on setting gnu-indent-options first time
---
gnu-indent.el | 26 +++++++++++++++-----------
1 file changed, 15 insertions(+), 11 deletions(-)
diff --git a/gnu-indent.el b/gnu-indent.el
index 277ee77444..b9681bb5e7 100644
--- a/gnu-indent.el
+++ b/gnu-indent.el
@@ -47,17 +47,21 @@
:type 'string
:group 'gnu-indent)
-(defcustom gnu-indent-options nil
- "Arguments to pass to GNU Indent."
- :type '(repeat string)
- :safe (lambda (val)
- (let ((valid t))
- (while (and valid val)
- (unless (stringp (car val))
- (setq valid nil))
- (setq val (cdr val)))
- valid))
- :group 'gnu-indent)
+;; Autoload so that users can set it as file local variable without
+;; warning.
+;;;###autoload
+(progn
+ (defcustom gnu-indent-options nil
+ "Arguments to pass to GNU Indent."
+ :type '(repeat string)
+ :safe (lambda (val)
+ (let ((valid t))
+ (while (and valid val)
+ (unless (stringp (car val))
+ (setq valid nil))
+ (setq val (cdr val)))
+ valid))
+ :group 'gnu-indent))
;;;###autoload
(defun gnu-indent-region (beg end)
- [nongnu] elpa/gnu-indent 95ffb0e043 13/17: Fix typos in README, (continued)
- [nongnu] elpa/gnu-indent 95ffb0e043 13/17: Fix typos in README, ELPA Syncer, 2022/11/27
- [nongnu] elpa/gnu-indent 8222b9ce74 03/17: Fix package keywords, ELPA Syncer, 2022/11/27
- [nongnu] elpa/gnu-indent 51f9eb999a 09/17: Merge pull request 'Fix project URL in gnu-indent.el' (#1) into master, ELPA Syncer, 2022/11/27
- [nongnu] elpa/gnu-indent 1166673bcf 15/17: Some minor cleanup, ELPA Syncer, 2022/11/27
- [nongnu] elpa/gnu-indent 309d23dd7f 02/17: Autoload commands, ELPA Syncer, 2022/11/27
- [nongnu] elpa/gnu-indent 3307404581 17/17: New command gnu-indent-defun-or-fill, ELPA Syncer, 2022/11/27
- [nongnu] elpa/gnu-indent bad121c313 08/17: Fix project URL in gnu-indent.el, ELPA Syncer, 2022/11/27
- [nongnu] elpa/gnu-indent 9a96cbbdc6 11/17: Add installation instructions, ELPA Syncer, 2022/11/27
- [nongnu] elpa/gnu-indent ff3e10edbd 14/17: Remove obsolete use of define-minor-mode, ELPA Syncer, 2022/11/27
- [nongnu] elpa/gnu-indent c3da8141be 16/17: Add .dir-locals.el, ELPA Syncer, 2022/11/27
- [nongnu] elpa/gnu-indent 1cdba5cd9b 05/17: Don't warn on setting gnu-indent-options first time,
ELPA Syncer <=
- [nongnu] elpa/gnu-indent 892ac23b26 07/17: Fix commentary, ELPA Syncer, 2022/11/27
- [nongnu] elpa/gnu-indent cd5dc79ac6 10/17: Add Codeberg link to custom group, ELPA Syncer, 2022/11/27