diff options
| author | Stefan Monnier | 2024-06-17 10:54:25 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2024-06-19 14:38:31 -0400 |
| commit | 8cfa6fe80128da62d28da37c5baedd201b796bb8 (patch) | |
| tree | d608b80267b3432b18050828f7e6f687ad6616aa | |
| parent | 3f90253dae0eda0ff2fa0b2635dc8e9b6a300641 (diff) | |
| download | emacs-8cfa6fe80128da62d28da37c5baedd201b796bb8.tar.gz emacs-8cfa6fe80128da62d28da37c5baedd201b796bb8.zip | |
Remove support for `editorconfig-override-*-local-variables`
With the Emacs-30 hooks we can't easily override file-local settings
and we can't easily control whether we override dir-local settings,
so we remove support for those config vars.
* lisp/editorconfig.el (editorconfig-override-file-local-variables)
(editorconfig-override-dir-local-variables): Remove custom vars.
(editorconfig--should-set): Presume they were nil.
| -rw-r--r-- | lisp/editorconfig.el | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/lisp/editorconfig.el b/lisp/editorconfig.el index 5c74e35fc52..c873700a041 100644 --- a/lisp/editorconfig.el +++ b/lisp/editorconfig.el | |||
| @@ -237,16 +237,6 @@ number - `lisp-indent-offset' is not set only if indent_size is | |||
| 237 | equal to this number. For example, if this is set to 2, | 237 | equal to this number. For example, if this is set to 2, |
| 238 | `lisp-indent-offset' will not be set only if indent_size is 2.") | 238 | `lisp-indent-offset' will not be set only if indent_size is 2.") |
| 239 | 239 | ||
| 240 | (defcustom editorconfig-override-file-local-variables t | ||
| 241 | "Non-nil means editorconfig will override file local variable values." | ||
| 242 | :type 'boolean | ||
| 243 | :group 'editorconfig) | ||
| 244 | |||
| 245 | (defcustom editorconfig-override-dir-local-variables t | ||
| 246 | "Non-nil means editorconfig will override values defined in dir-locals.el ." | ||
| 247 | :type 'boolean | ||
| 248 | :group 'editorconfig) | ||
| 249 | |||
| 250 | (define-error 'editorconfig-error | 240 | (define-error 'editorconfig-error |
| 251 | "Error thrown from editorconfig lib") | 241 | "Error thrown from editorconfig lib") |
| 252 | 242 | ||
| @@ -293,13 +283,11 @@ See `editorconfig-lisp-use-default-indent' for details." | |||
| 293 | symbol | 283 | symbol |
| 294 | size) | 284 | size) |
| 295 | :debug) | 285 | :debug) |
| 296 | (when (and (not editorconfig-override-file-local-variables) | 286 | (when (assq symbol file-local-variables-alist) |
| 297 | (assq symbol file-local-variables-alist)) | ||
| 298 | (cl-return-from editorconfig--should-set | 287 | (cl-return-from editorconfig--should-set |
| 299 | nil)) | 288 | nil)) |
| 300 | 289 | ||
| 301 | (when (and (not editorconfig-override-dir-local-variables) | 290 | (when (assq symbol dir-local-variables-alist) |
| 302 | (assq symbol dir-local-variables-alist)) | ||
| 303 | (cl-return-from editorconfig--should-set | 291 | (cl-return-from editorconfig--should-set |
| 304 | nil)) | 292 | nil)) |
| 305 | 293 | ||