diff options
| author | Glenn Morris | 2017-12-20 14:31:03 -0500 |
|---|---|---|
| committer | Glenn Morris | 2017-12-20 14:31:03 -0500 |
| commit | 79fb4b5438d1a5ccf695459de4df295e602fb7b3 (patch) | |
| tree | cb74f04a19cc1fabe0d7f452419a18bf36acb19c | |
| parent | 964dd38c8f71d13ab33ef1ba1f1e63c166c13fb6 (diff) | |
| download | emacs-79fb4b5438d1a5ccf695459de4df295e602fb7b3.tar.gz emacs-79fb4b5438d1a5ccf695459de4df295e602fb7b3.zip | |
Fix some flymake aliases
* lisp/progmodes/flymake-proc.el (flymake-xml-program)
(flymake-compilation-prevents-syntax-check, flymake-master-file-dirs)
(flymake-master-file-count-limit, flymake-allowed-file-name-masks):
* lisp/progmodes/flymake.el (flymake-start-syntax-check-on-find-file):
Define aliases to user options before the options are defined.
| -rw-r--r-- | lisp/progmodes/flymake-proc.el | 141 | ||||
| -rw-r--r-- | lisp/progmodes/flymake.el | 6 |
2 files changed, 74 insertions, 73 deletions
diff --git a/lisp/progmodes/flymake-proc.el b/lisp/progmodes/flymake-proc.el index 85c60394d9c..5e382b38b37 100644 --- a/lisp/progmodes/flymake-proc.el +++ b/lisp/progmodes/flymake-proc.el | |||
| @@ -43,11 +43,17 @@ | |||
| 43 | 43 | ||
| 44 | (require 'flymake) | 44 | (require 'flymake) |
| 45 | 45 | ||
| 46 | (define-obsolete-variable-alias 'flymake-compilation-prevents-syntax-check | ||
| 47 | 'flymake-proc-compilation-prevents-syntax-check "26.1") | ||
| 48 | |||
| 46 | (defcustom flymake-proc-compilation-prevents-syntax-check t | 49 | (defcustom flymake-proc-compilation-prevents-syntax-check t |
| 47 | "If non-nil, don't start syntax check if compilation is running." | 50 | "If non-nil, don't start syntax check if compilation is running." |
| 48 | :group 'flymake | 51 | :group 'flymake |
| 49 | :type 'boolean) | 52 | :type 'boolean) |
| 50 | 53 | ||
| 54 | (define-obsolete-variable-alias 'flymake-xml-program | ||
| 55 | 'flymake-proc-xml-program "26.1") | ||
| 56 | |||
| 51 | (defcustom flymake-proc-xml-program | 57 | (defcustom flymake-proc-xml-program |
| 52 | (if (executable-find "xmlstarlet") "xmlstarlet" "xml") | 58 | (if (executable-find "xmlstarlet") "xmlstarlet" "xml") |
| 53 | "Program to use for XML validation." | 59 | "Program to use for XML validation." |
| @@ -55,16 +61,25 @@ | |||
| 55 | :group 'flymake | 61 | :group 'flymake |
| 56 | :version "24.4") | 62 | :version "24.4") |
| 57 | 63 | ||
| 64 | (define-obsolete-variable-alias 'flymake-master-file-dirs | ||
| 65 | 'flymake-proc-master-file-dirs "26.1") | ||
| 66 | |||
| 58 | (defcustom flymake-proc-master-file-dirs '("." "./src" "./UnitTest") | 67 | (defcustom flymake-proc-master-file-dirs '("." "./src" "./UnitTest") |
| 59 | "Dirs where to look for master files." | 68 | "Dirs where to look for master files." |
| 60 | :group 'flymake | 69 | :group 'flymake |
| 61 | :type '(repeat (string))) | 70 | :type '(repeat (string))) |
| 62 | 71 | ||
| 72 | (define-obsolete-variable-alias 'flymake-master-file-count-limit | ||
| 73 | 'flymake-proc-master-file-count-limit "26.1") | ||
| 74 | |||
| 63 | (defcustom flymake-proc-master-file-count-limit 32 | 75 | (defcustom flymake-proc-master-file-count-limit 32 |
| 64 | "Max number of master files to check." | 76 | "Max number of master files to check." |
| 65 | :group 'flymake | 77 | :group 'flymake |
| 66 | :type 'integer) | 78 | :type 'integer) |
| 67 | 79 | ||
| 80 | (define-obsolete-variable-alias 'flymake-allowed-file-name-masks | ||
| 81 | 'flymake-proc-allowed-file-name-masks "26.1") | ||
| 82 | |||
| 68 | (defcustom flymake-proc-allowed-file-name-masks | 83 | (defcustom flymake-proc-allowed-file-name-masks |
| 69 | '(("\\.\\(?:c\\(?:pp\\|xx\\|\\+\\+\\)?\\|CC\\)\\'" | 84 | '(("\\.\\(?:c\\(?:pp\\|xx\\|\\+\\+\\)?\\|CC\\)\\'" |
| 70 | flymake-proc-simple-make-init | 85 | flymake-proc-simple-make-init |
| @@ -1118,76 +1133,62 @@ Use CREATE-TEMP-F for creating temp copy." | |||
| 1118 | 1133 | ||
| 1119 | ;;;; | 1134 | ;;;; |
| 1120 | 1135 | ||
| 1121 | (progn | 1136 | (define-obsolete-variable-alias 'flymake-check-file-limit |
| 1122 | (define-obsolete-variable-alias 'flymake-compilation-prevents-syntax-check | 1137 | 'flymake-proc-check-file-limit "26.1") |
| 1123 | 'flymake-proc-compilation-prevents-syntax-check "26.1") | 1138 | (define-obsolete-function-alias 'flymake-reformat-err-line-patterns-from-compile-el |
| 1124 | (define-obsolete-variable-alias 'flymake-xml-program | 1139 | 'flymake-proc-reformat-err-line-patterns-from-compile-el "26.1") |
| 1125 | 'flymake-proc-xml-program "26.1") | 1140 | (define-obsolete-variable-alias 'flymake-err-line-patterns |
| 1126 | (define-obsolete-variable-alias 'flymake-master-file-dirs | 1141 | 'flymake-proc-err-line-patterns "26.1") |
| 1127 | 'flymake-proc-master-file-dirs "26.1") | 1142 | (define-obsolete-function-alias 'flymake-parse-line |
| 1128 | (define-obsolete-variable-alias 'flymake-master-file-count-limit | 1143 | 'flymake-proc-parse-line "26.1") |
| 1129 | 'flymake-proc-master-file-count-limit "26.1" | 1144 | (define-obsolete-function-alias 'flymake-get-include-dirs |
| 1130 | "Max number of master files to check.") | 1145 | 'flymake-proc-get-include-dirs "26.1") |
| 1131 | (define-obsolete-variable-alias 'flymake-allowed-file-name-masks | 1146 | (define-obsolete-function-alias 'flymake-stop-all-syntax-checks |
| 1132 | 'flymake-proc-allowed-file-name-masks "26.1") | 1147 | 'flymake-proc-stop-all-syntax-checks "26.1") |
| 1133 | (define-obsolete-variable-alias 'flymake-check-file-limit | 1148 | (define-obsolete-function-alias 'flymake-compile |
| 1134 | 'flymake-proc-check-file-limit "26.1") | 1149 | 'flymake-proc-compile "26.1") |
| 1135 | (define-obsolete-function-alias 'flymake-reformat-err-line-patterns-from-compile-el | 1150 | (define-obsolete-function-alias 'flymake-create-temp-inplace |
| 1136 | 'flymake-proc-reformat-err-line-patterns-from-compile-el "26.1") | 1151 | 'flymake-proc-create-temp-inplace "26.1") |
| 1137 | (define-obsolete-variable-alias 'flymake-err-line-patterns | 1152 | (define-obsolete-function-alias 'flymake-create-temp-with-folder-structure |
| 1138 | 'flymake-proc-err-line-patterns "26.1") | 1153 | 'flymake-proc-create-temp-with-folder-structure "26.1") |
| 1139 | (define-obsolete-function-alias 'flymake-parse-line | 1154 | (define-obsolete-function-alias 'flymake-init-create-temp-buffer-copy |
| 1140 | 'flymake-proc-parse-line "26.1") | 1155 | 'flymake-proc-init-create-temp-buffer-copy "26.1") |
| 1141 | (define-obsolete-function-alias 'flymake-get-include-dirs | 1156 | (define-obsolete-function-alias 'flymake-simple-cleanup |
| 1142 | 'flymake-proc-get-include-dirs "26.1") | 1157 | 'flymake-proc-simple-cleanup "26.1") |
| 1143 | (define-obsolete-function-alias 'flymake-stop-all-syntax-checks | 1158 | (define-obsolete-function-alias 'flymake-get-real-file-name |
| 1144 | 'flymake-proc-stop-all-syntax-checks "26.1") | 1159 | 'flymake-proc-get-real-file-name "26.1") |
| 1145 | (define-obsolete-function-alias 'flymake-compile | 1160 | (define-obsolete-function-alias 'flymake-master-cleanup |
| 1146 | 'flymake-proc-compile "26.1") | 1161 | 'flymake-proc-master-cleanup "26.1") |
| 1147 | (define-obsolete-function-alias 'flymake-create-temp-inplace | 1162 | (define-obsolete-function-alias 'flymake-get-make-cmdline |
| 1148 | 'flymake-proc-create-temp-inplace "26.1") | 1163 | 'flymake-proc-get-make-cmdline "26.1") |
| 1149 | (define-obsolete-function-alias 'flymake-create-temp-with-folder-structure | 1164 | (define-obsolete-function-alias 'flymake-get-ant-cmdline |
| 1150 | 'flymake-proc-create-temp-with-folder-structure "26.1") | 1165 | 'flymake-proc-get-ant-cmdline "26.1") |
| 1151 | (define-obsolete-function-alias 'flymake-init-create-temp-buffer-copy | 1166 | (define-obsolete-function-alias 'flymake-simple-make-init-impl |
| 1152 | 'flymake-proc-init-create-temp-buffer-copy "26.1") | 1167 | 'flymake-proc-simple-make-init-impl "26.1") |
| 1153 | (define-obsolete-function-alias 'flymake-simple-cleanup | 1168 | (define-obsolete-function-alias 'flymake-simple-make-init |
| 1154 | 'flymake-proc-simple-cleanup "26.1") | 1169 | 'flymake-proc-simple-make-init "26.1") |
| 1155 | (define-obsolete-function-alias 'flymake-get-real-file-name | 1170 | (define-obsolete-function-alias 'flymake-master-make-init |
| 1156 | 'flymake-proc-get-real-file-name "26.1") | 1171 | 'flymake-proc-master-make-init "26.1") |
| 1157 | (define-obsolete-function-alias 'flymake-master-cleanup | 1172 | (define-obsolete-function-alias 'flymake-find-make-buildfile |
| 1158 | 'flymake-proc-master-cleanup "26.1") | 1173 | 'flymake-proc--find-make-buildfile "26.1") |
| 1159 | (define-obsolete-function-alias 'flymake-get-make-cmdline | 1174 | (define-obsolete-function-alias 'flymake-master-make-header-init |
| 1160 | 'flymake-proc-get-make-cmdline "26.1") | 1175 | 'flymake-proc-master-make-header-init "26.1") |
| 1161 | (define-obsolete-function-alias 'flymake-get-ant-cmdline | 1176 | (define-obsolete-function-alias 'flymake-simple-make-java-init |
| 1162 | 'flymake-proc-get-ant-cmdline "26.1") | 1177 | 'flymake-proc-simple-make-java-init "26.1") |
| 1163 | (define-obsolete-function-alias 'flymake-simple-make-init-impl | 1178 | (define-obsolete-function-alias 'flymake-simple-ant-java-init |
| 1164 | 'flymake-proc-simple-make-init-impl "26.1") | 1179 | 'flymake-proc-simple-ant-java-init "26.1") |
| 1165 | (define-obsolete-function-alias 'flymake-simple-make-init | 1180 | (define-obsolete-function-alias 'flymake-simple-java-cleanup |
| 1166 | 'flymake-proc-simple-make-init "26.1") | 1181 | 'flymake-proc-simple-java-cleanup "26.1") |
| 1167 | (define-obsolete-function-alias 'flymake-master-make-init | 1182 | (define-obsolete-function-alias 'flymake-perl-init |
| 1168 | 'flymake-proc-master-make-init "26.1") | 1183 | 'flymake-proc-perl-init "26.1") |
| 1169 | (define-obsolete-function-alias 'flymake-find-make-buildfile | 1184 | (define-obsolete-function-alias 'flymake-php-init |
| 1170 | 'flymake-proc--find-make-buildfile "26.1") | 1185 | 'flymake-proc-php-init "26.1") |
| 1171 | (define-obsolete-function-alias 'flymake-master-make-header-init | 1186 | (define-obsolete-function-alias 'flymake-simple-tex-init |
| 1172 | 'flymake-proc-master-make-header-init "26.1") | 1187 | 'flymake-proc-simple-tex-init "26.1") |
| 1173 | (define-obsolete-function-alias 'flymake-simple-make-java-init | 1188 | (define-obsolete-function-alias 'flymake-master-tex-init |
| 1174 | 'flymake-proc-simple-make-java-init "26.1") | 1189 | 'flymake-proc-master-tex-init "26.1") |
| 1175 | (define-obsolete-function-alias 'flymake-simple-ant-java-init | 1190 | (define-obsolete-function-alias 'flymake-xml-init |
| 1176 | 'flymake-proc-simple-ant-java-init "26.1") | 1191 | 'flymake-proc-xml-init "26.1") |
| 1177 | (define-obsolete-function-alias 'flymake-simple-java-cleanup | ||
| 1178 | 'flymake-proc-simple-java-cleanup "26.1") | ||
| 1179 | (define-obsolete-function-alias 'flymake-perl-init | ||
| 1180 | 'flymake-proc-perl-init "26.1") | ||
| 1181 | (define-obsolete-function-alias 'flymake-php-init | ||
| 1182 | 'flymake-proc-php-init "26.1") | ||
| 1183 | (define-obsolete-function-alias 'flymake-simple-tex-init | ||
| 1184 | 'flymake-proc-simple-tex-init "26.1") | ||
| 1185 | (define-obsolete-function-alias 'flymake-master-tex-init | ||
| 1186 | 'flymake-proc-master-tex-init "26.1") | ||
| 1187 | (define-obsolete-function-alias 'flymake-xml-init | ||
| 1188 | 'flymake-proc-xml-init "26.1")) | ||
| 1189 | |||
| 1190 | |||
| 1191 | 1192 | ||
| 1192 | (provide 'flymake-proc) | 1193 | (provide 'flymake-proc) |
| 1193 | ;;; flymake-proc.el ends here | 1194 | ;;; flymake-proc.el ends here |
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index 66d1497b406..38813de1ef7 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el | |||
| @@ -124,15 +124,15 @@ If nil, never start checking buffer automatically like this." | |||
| 124 | (make-obsolete-variable 'flymake-gui-warnings-enabled | 124 | (make-obsolete-variable 'flymake-gui-warnings-enabled |
| 125 | "it no longer has any effect." "26.1") | 125 | "it no longer has any effect." "26.1") |
| 126 | 126 | ||
| 127 | (define-obsolete-variable-alias 'flymake-start-syntax-check-on-find-file | ||
| 128 | 'flymake-start-on-flymake-mode "26.1") | ||
| 129 | |||
| 127 | (defcustom flymake-start-on-flymake-mode t | 130 | (defcustom flymake-start-on-flymake-mode t |
| 128 | "Start syntax check when `flymake-mode' is enabled. | 131 | "Start syntax check when `flymake-mode' is enabled. |
| 129 | Specifically, start it when the buffer is actually displayed." | 132 | Specifically, start it when the buffer is actually displayed." |
| 130 | :version "26.1" | 133 | :version "26.1" |
| 131 | :type 'boolean) | 134 | :type 'boolean) |
| 132 | 135 | ||
| 133 | (define-obsolete-variable-alias 'flymake-start-syntax-check-on-find-file | ||
| 134 | 'flymake-start-on-flymake-mode "26.1") | ||
| 135 | |||
| 136 | (defcustom flymake-log-level -1 | 136 | (defcustom flymake-log-level -1 |
| 137 | "Obsolete and ignored variable." | 137 | "Obsolete and ignored variable." |
| 138 | :type 'integer) | 138 | :type 'integer) |