Skip to content

Commit edec7d5

Browse files
committed
Suppress a doccheck warning for old versions
1 parent 5eb806b commit edec7d5

File tree

5 files changed

+235
-2
lines changed

5 files changed

+235
-2
lines changed

Eldev

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
(setq-default indent-tabs-mode nil)
1010
(setq-default fill-column 80)
1111
(setq-default tab-width 8)
12+
(setq-default checkdoc-arguments-in-order-flag nil)
1213

1314
(with-eval-after-load 'package-lint
1415
(advice-add #'package-lint--check-symbol-separators :override

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ELDEV ?= eldev
33

44
INVOKE_ELDEV = ELDEV_DIR="${ELDEV_DIR}" ELDEV="${ELDEV}" ./scripts/invoke_eldev.sh
55

6-
.PHONY: help all deps package install clean test test_in_docker lint
6+
.PHONY: help all deps package install clean test test_in_docker lint lint_in_docker
77

88
help:
99
## Shows this message.
@@ -51,4 +51,8 @@ test_in_docker:
5151

5252
lint:
5353
## Run linters.
54-
find ./*.el test/*.el '!' -name '*autoloads.el' -exec env ${INVOKE_ELDEV} lint '{}' '+'
54+
ELDEV_DIR="${ELDEV_DIR}" ELDEV="${ELDEV}" ./scripts/run_linter.sh
55+
56+
lint_in_docker:
57+
## Run linter in Docker.
58+
./scripts/lint_in_docker.sh

scripts/lint_in_docker.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/sh
2+
3+
# Run linter in Docker. Used in Makefile.
4+
5+
for version in 24.4 24.5 25.1 25.2 25.3 26.1 26.2 26.3 27.1
6+
do
7+
docker \
8+
run \
9+
--rm \
10+
--volume="$(pwd)":/src \
11+
--user "$(id -u):$(id -g)" \
12+
silex/emacs:${version} \
13+
bash -c \
14+
"cd /src && ELDEV_DIR=/src/.eldev HOME=/tmp ./scripts/run_linter.sh" \
15+
|| exit 1
16+
done
17+
18+
echo "done"

scripts/run_linter.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
# Run linter. Used in Makefile.
4+
5+
./scripts/invoke_eldev.sh emacs --version || exit 1
6+
find ./*.el test/*.el '!' -name '*autoloads.el' -exec ./scripts/invoke_eldev.sh lint '{}' '+'

src-autoloads.el

Lines changed: 204 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,204 @@
1+
;;; src-autoloads.el --- automatically extracted autoloads
2+
;;
3+
;;; Code:
4+
5+
(add-to-list 'load-path (directory-file-name
6+
(or (file-name-directory #$) (car load-path))))
7+
8+
9+
;;;### (autoloads nil "swift-mode" "swift-mode.el" (0 0 0 0))
10+
;;; Generated autoloads from swift-mode.el
11+
12+
(let ((loads (get 'swift 'custom-loads))) (if (member '"swift-mode" loads) nil (put 'swift 'custom-loads (cons '"swift-mode" loads))))
13+
(custom-add-load 'languages 'swift-mode)
14+
(with-eval-after-load 'cus-load
15+
(custom-add-load 'languages 'swift-mode))
16+
17+
(defsubst swift-mode:add-supported-extension-for-speedbar nil "\
18+
Register .swfit to speedbar." (if (fboundp (quote speedbar-add-supported-extension)) (speedbar-add-supported-extension ".swift") (add-hook (quote speedbar-load-hook) (lambda nil (speedbar-add-supported-extension ".swift")))))
19+
20+
(autoload 'swift-mode "swift-mode" "\
21+
Major mode for editing Swift code.
22+
23+
\\{swift-mode-map}
24+
25+
\(fn)" t nil)
26+
(add-to-list 'auto-mode-alist '("\\.swift\\'" . swift-mode))
27+
(swift-mode:add-supported-extension-for-speedbar)
28+
29+
(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "swift-mode" '("swift-mode")))
30+
31+
;;;***
32+
33+
;;;### (autoloads nil "swift-mode-beginning-of-defun" "swift-mode-beginning-of-defun.el"
34+
;;;;;; (0 0 0 0))
35+
;;; Generated autoloads from swift-mode-beginning-of-defun.el
36+
37+
(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "swift-mode-beginning-of-defun" '("swift-mode:")))
38+
39+
;;;***
40+
41+
;;;### (autoloads nil "swift-mode-font-lock" "swift-mode-font-lock.el"
42+
;;;;;; (0 0 0 0))
43+
;;; Generated autoloads from swift-mode-font-lock.el
44+
45+
(let ((loads (get 'swift-mode:faces 'custom-loads))) (if (member '"swift-mode-font-lock" loads) nil (put 'swift-mode:faces 'custom-loads (cons '"swift-mode-font-lock" loads))))
46+
47+
(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "swift-mode-font-lock" '("swift-mode:")))
48+
49+
;;;***
50+
51+
;;;### (autoloads nil "swift-mode-imenu" "swift-mode-imenu.el" (0
52+
;;;;;; 0 0 0))
53+
;;; Generated autoloads from swift-mode-imenu.el
54+
55+
(let ((loads (get 'swift-mode:imenu 'custom-loads))) (if (member '"swift-mode-imenu" loads) nil (put 'swift-mode:imenu 'custom-loads (cons '"swift-mode-imenu" loads))))
56+
57+
(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "swift-mode-imenu" '("swift-mode:")))
58+
59+
;;;***
60+
61+
;;;### (autoloads nil "swift-mode-indent" "swift-mode-indent.el"
62+
;;;;;; (0 0 0 0))
63+
;;; Generated autoloads from swift-mode-indent.el
64+
65+
(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "swift-mode-indent" '("swift-mode:")))
66+
67+
;;;***
68+
69+
;;;### (autoloads nil "swift-mode-lexer" "swift-mode-lexer.el" (0
70+
;;;;;; 0 0 0))
71+
;;; Generated autoloads from swift-mode-lexer.el
72+
73+
(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "swift-mode-lexer" '("swift-mode:")))
74+
75+
;;;***
76+
77+
;;;### (autoloads nil "swift-mode-repl" "swift-mode-repl.el" (0 0
78+
;;;;;; 0 0))
79+
;;; Generated autoloads from swift-mode-repl.el
80+
81+
(let ((loads (get 'swift-mode:repl 'custom-loads))) (if (member '"swift-mode-repl" loads) nil (put 'swift-mode:repl 'custom-loads (cons '"swift-mode-repl" loads))))
82+
83+
(autoload 'swift-mode:run-repl "swift-mode-repl" "\
84+
Run a Swift REPL process.
85+
86+
This function input and output via buffer `*CMD*' where CMD is replaced with
87+
the CMD given.
88+
If there is a process already running in `*CMD*', and DONT-SWITCH is nil,
89+
switch to that buffer.
90+
CMD is a string or a list, interpreted as a command line. The default value is
91+
`swift-mode:repl-executable'. This function updates the buffer local variable
92+
`swift-mode:repl-executable' with the given CMD if KEEP-DEFAULT is nil,
93+
so it will be used as the default value for the next invocation in the current
94+
buffer.
95+
If KEEP-DEFAULT is non-nil, the `swift-mode:repl-executable' and the global
96+
variable `swift-mode:repl-buffer' are not updated. The buffer local variable
97+
`swift-mode:repl-buffer' is always updated.
98+
Runs the hook `swift-repl-mode-hook' (after the `comint-mode-hook' is run).
99+
\(Type \\[describe-mode] in the process buffer for a list of commands.)
100+
101+
\(fn CMD &optional DONT-SWITCH KEEP-DEFAULT)" t nil)
102+
103+
(defalias 'run-swift 'swift-mode:run-repl)
104+
105+
(autoload 'swift-mode:send-region "swift-mode-repl" "\
106+
Send the current region to the inferior swift process.
107+
108+
START and END define region within current buffer
109+
110+
\(fn START END)" t nil)
111+
112+
(autoload 'swift-mode:send-buffer "swift-mode-repl" "\
113+
Send the buffer to the Swift REPL process.
114+
115+
\(fn)" t nil)
116+
117+
(autoload 'swift-mode:build-swift-module "swift-mode-repl" "\
118+
Build a Swift module in the PROJECT-DIRECTORY.
119+
120+
If PROJECT-DIRECTORY is nil or omitted, it is searched from `default-directory'
121+
or its ancestors.
122+
An list ARGS are appended for builder command line arguments.
123+
124+
\(fn &optional PROJECT-DIRECTORY ARGS)" t nil)
125+
126+
(autoload 'swift-mode:build-ios-app "swift-mode-repl" "\
127+
Build an iOS app in the PROJECT-DIRECTORY.
128+
Build it for iOS device DEVICE-IDENTIFIER for the given SCHEME.
129+
If PROJECT-DIRECTORY is nil or omitted, it is searched from `default-directory'
130+
or its ancestors.
131+
DEVICE-IDENTIFIER is the device identifier of the iOS simulator. If it is nil
132+
or omitted, the value of `swift-mode:ios-device-identifier' is used. If it is
133+
equal to `swift-mode:ios-local-device-identifier', a local device is used via
134+
`ios-deploy' instead.
135+
SCHEME is the name of the project scheme in Xcode. If it is nil or omitted,
136+
the value of `swift-mode:ios-project-scheme' is used.
137+
138+
\(fn &optional PROJECT-DIRECTORY DEVICE-IDENTIFIER SCHEME)" t nil)
139+
140+
(autoload 'swift-mode:debug-swift-module "swift-mode-repl" "\
141+
Run debugger on a Swift module in the PROJECT-DIRECTORY.
142+
143+
If PROJECT-DIRECTORY is nil or omitted, it is searched from `default-directory'
144+
or its ancestors.
145+
146+
\(fn &optional PROJECT-DIRECTORY)" t nil)
147+
148+
(autoload 'swift-mode:debug-ios-app-on-device "swift-mode-repl" "\
149+
Run debugger on an iOS app in the PROJECT-DIRECTORY.
150+
Run it for the iOS local device DEVICE-IDENTIFIER for the given SCHEME.
151+
CODESIGNING-FOLDER-PATH is the path of the codesigning folder in Xcode
152+
build settings.
153+
154+
\(fn PROJECT-DIRECTORY SCHEME CODESIGNING-FOLDER-PATH)" nil nil)
155+
156+
(autoload 'swift-mode:debug-ios-app-on-simulator "swift-mode-repl" "\
157+
Run debugger on an iOS app in the PROJECT-DIRECTORY.
158+
Run it for the iOS simulator DEVICE-IDENTIFIER for the given SCHEME.
159+
DEVICE-IDENTIFIER is the device identifier of the iOS simulator.
160+
SCHEME is the name of the project scheme in Xcode.
161+
CODESIGNING-FOLDER-PATH is the path of the codesigning folder used in Xcode
162+
build settings.
163+
PRODUCT-BUNDLE-IDENTIFIER is the name of the product bundle identifier used
164+
in Xcode build settings.
165+
166+
\(fn PROJECT-DIRECTORY DEVICE-IDENTIFIER SCHEME CODESIGNING-FOLDER-PATH PRODUCT-BUNDLE-IDENTIFIER)" nil nil)
167+
168+
(autoload 'swift-mode:debug-ios-app "swift-mode-repl" "\
169+
Run debugger on an iOS app in the PROJECT-DIRECTORY.
170+
Run it for the iOS simulator device DEVICE-IDENTIFIER for the given SCHEME.
171+
If PROJECT-DIRECTORY is nil or omitted, it is searched from `default-directory'
172+
or its ancestors.
173+
DEVICE-IDENTIFIER is the device identifier of the iOS simulator. If it is
174+
nil or omitted, the value of `swift-mode:ios-device-identifier' is used. If
175+
it is equal to `swift-mode:ios-local-device-identifier', a local build via
176+
`ios-deploy' is generated instead.
177+
SCHEME is the name of the project scheme in Xcode. If it is nil or omitted,
178+
the value of `swift-mode:ios-project-scheme' is used.
179+
180+
\(fn &optional PROJECT-DIRECTORY DEVICE-IDENTIFIER SCHEME)" t nil)
181+
182+
(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "swift-mode-repl" '("swift-")))
183+
184+
;;;***
185+
186+
;;;### (autoloads nil "swift-mode-standard-types" "swift-mode-standard-types.el"
187+
;;;;;; (0 0 0 0))
188+
;;; Generated autoloads from swift-mode-standard-types.el
189+
190+
(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "swift-mode-standard-types" '("swift-mode:")))
191+
192+
;;;***
193+
194+
;;;### (autoloads nil nil ("swift-mode-autoloads.el") (0 0 0 0))
195+
196+
;;;***
197+
198+
;; Local Variables:
199+
;; version-control: never
200+
;; no-byte-compile: t
201+
;; no-update-autoloads: t
202+
;; coding: utf-8
203+
;; End:
204+
;;; src-autoloads.el ends here

0 commit comments

Comments
 (0)