Skip to content

Commit f0affb4

Browse files
committed
Defcustoms should not be autoloaded
According to https://lists.gnu.org/archive/html/help-gnu-emacs/2007-06/msg00216.html and http://comments.gmane.org/gmane.emacs.devel/176796 defcustom cannot be autoloaded because then values get lost.
1 parent ae2a55b commit f0affb4

17 files changed

+0
-103
lines changed

ghc-core.el

-2
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,12 @@
3939
:group 'haskell
4040
:prefix "ghc-core-")
4141

42-
;;;###autoload
4342
(defcustom ghc-core-program
4443
"ghc"
4544
"Name of the GHC executable (excluding any arguments)."
4645
:type 'string
4746
:group 'ghc-core)
4847

49-
;;;###autoload
5048
(defcustom ghc-core-program-args
5149
'("-O2")
5250
"Additional options to be passed to GHC when generating core output.

haskell-align-imports.el

-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@
108108
"\\( -- .*\\)?[ ]*$")
109109
"Regex used for matching components of an import.")
110110

111-
;;;###autoload
112111
(defcustom haskell-align-imports-pad-after-name
113112
nil
114113
"Pad layout after the module name also."

haskell-cabal.el

-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ OTHER-WINDOW use `find-file-other-window'."
309309
:group 'haskell
310310
)
311311

312-
;;;###autoload
313312
(defcustom haskell-cabal-list-comma-position
314313
'before
315314
"Where to put the comma in lists"

haskell-checkers.el

-7
Original file line numberDiff line numberDiff line change
@@ -32,43 +32,36 @@
3232
"Run HLint as inferior of Emacs, parse error messages."
3333
:group 'haskell)
3434

35-
;;;###autoload
3635
(defcustom haskell-lint-command "hlint"
3736
"The default lint command for \\[hlint]."
3837
:type 'string
3938
:group 'haskell-checkers)
4039

41-
;;;###autoload
4240
(defcustom haskell-scan-command "scan"
4341
"The default scan command for \\[haskell-scan]."
4442
:type 'string
4543
:group 'haskell-checkers)
4644

47-
;;;###autoload
4845
(defcustom haskell-scan-options ""
4946
"The default options for \\[haskell-scan]."
5047
:type 'string
5148
:group 'haskell-checkers)
5249

53-
;;;###autoload
5450
(defcustom haskell-lint-options ""
5551
"The default options for \\[hlint]."
5652
:type 'string
5753
:group 'haskell-checkers)
5854

59-
;;;###autoload
6055
(defcustom haskell-checkers-save-files t
6156
"Save modified files when run checker or not (ask user)"
6257
:type 'boolean
6358
:group 'haskell-checkers)
6459

65-
;;;###autoload
6660
(defcustom haskell-checkers-replace-with-suggestions nil
6761
"Replace user's code with suggested replacements (hlint only)"
6862
:type 'boolean
6963
:group 'haskell-checkers)
7064

71-
;;;###autoload
7265
(defcustom haskell-checkers-replace-without-ask nil
7366
"Replace user's code with suggested replacements automatically (hlint only)"
7467
:type 'boolean

haskell-compile.el

-4
Original file line numberDiff line numberDiff line change
@@ -35,31 +35,27 @@
3535
:link '(custom-manual "(haskell-mode)compilation")
3636
:group 'haskell)
3737

38-
;;;###autoload
3938
(defcustom haskell-compile-cabal-build-command
4039
"cd %s && cabal build --ghc-option=-ferror-spans"
4140
"Default build command to use for `haskell-cabal-build' when a cabal file is detected.
4241
The `%s' placeholder is replaced by the cabal package top folder."
4342
:group 'haskell-compile
4443
:type 'string)
4544

46-
;;;###autoload
4745
(defcustom haskell-compile-cabal-build-alt-command
4846
"cd %s && cabal clean -s && cabal build --ghc-option=-ferror-spans"
4947
"Alternative build command to use when `haskell-cabal-build' is called with a negative prefix argument.
5048
The `%s' placeholder is replaced by the cabal package top folder."
5149
:group 'haskell-compile
5250
:type 'string)
5351

54-
;;;###autoload
5552
(defcustom haskell-compile-command
5653
"ghc -Wall -ferror-spans -fforce-recomp -c %s"
5754
"Default build command to use for `haskell-cabal-build' when no cabal file is detected.
5855
The `%s' placeholder is replaced by the current buffer's filename."
5956
:group 'haskell-compile
6057
:type 'string)
6158

62-
;;;###autoload
6359
(defcustom haskell-compile-ghc-filter-linker-messages
6460
t
6561
"Filter out unremarkable \"Loading package...\" linker messages during compilation."

haskell-complete-module.el

-2
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,12 @@
1919

2020
(require 'cl-lib)
2121

22-
;;;###autoload
2322
(defcustom haskell-complete-module-preferred
2423
'()
2524
"Override ordering of module results by specifying preferred modules."
2625
:group 'haskell
2726
:type '(repeat string))
2827

29-
;;;###autoload
3028
(defcustom haskell-complete-module-max-display
3129
10
3230
"Maximum items to display in minibuffer."

0 commit comments

Comments
 (0)