[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/emacs-editorconfig b6ebc07af19 355/364: Remove support for `edit
From: |
Stefan Monnier |
Subject: |
scratch/emacs-editorconfig b6ebc07af19 355/364: Remove support for `editorconfig-override-*-local-variables` |
Date: |
Tue, 18 Jun 2024 01:41:31 -0400 (EDT) |
branch: scratch/emacs-editorconfig
commit b6ebc07af199f2f057d0a6749f016208f3dbfda4
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
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.
* editorconfig.el (editorconfig-override-file-local-variables)
(editorconfig-override-dir-local-variables): Remove custom vars.
(editorconfig--should-set): Presume they were nil.
* ert-tests/editorconfig-tests.el (test-local-variables):
Adjust accordingly.
---
lisp/editorconfig.el | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/lisp/editorconfig.el b/lisp/editorconfig.el
index 63878de6d8c..0f2cbd07f96 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
equal to this number. For example, if this is set to 2,
`lisp-indent-offset' will not be set only if indent_size is 2.")
-(defcustom editorconfig-override-file-local-variables t
- "Non-nil means editorconfig will override file local variable values."
- :type 'boolean
- :group 'editorconfig)
-
-(defcustom editorconfig-override-dir-local-variables t
- "Non-nil means editorconfig will override values defined in dir-locals.el ."
- :type 'boolean
- :group 'editorconfig)
-
(define-error 'editorconfig-error
"Error thrown from editorconfig lib")
@@ -293,13 +283,11 @@ See `editorconfig-lisp-use-default-indent' for details."
symbol
size)
:debug)
- (when (and (not editorconfig-override-file-local-variables)
- (assq symbol file-local-variables-alist))
+ (when (assq symbol file-local-variables-alist)
(cl-return-from editorconfig--should-set
nil))
- (when (and (not editorconfig-override-dir-local-variables)
- (assq symbol dir-local-variables-alist))
+ (when (assq symbol dir-local-variables-alist)
(cl-return-from editorconfig--should-set
nil))
- scratch/emacs-editorconfig 00913e8db3a 315/364: Prepare v0.9.1 (#281), (continued)
- scratch/emacs-editorconfig 00913e8db3a 315/364: Prepare v0.9.1 (#281), Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 8ba886d3a64 327/364: Update version string, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig a415057ecfc 331/364: Fix compile warning of python-mode offset (#306), Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 8c1ec23fe6d 332/364: Prepare v0.10.1 (#307), Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig dc571e9422a 333/364: Update CHANGELOG (#308), Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig e81368ede38 334/364: test: Emacs 29.1 (#311), Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 4c7c96dee9a 338/364: Add jsonian-mode (#320), Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 641c8cd06ab 340/364: ci: Bump Emacs 29.x to 3 (#327), Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig f55bb4e691d 348/364: Update CHANGELOG.md (#339), Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig e8e1737fba7 353/364: Squashed commit of the following:, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig b6ebc07af19 355/364: Remove support for `editorconfig-override-*-local-variables`,
Stefan Monnier <=
- scratch/emacs-editorconfig 969691f5cda 364/364: Merge remote-tracking branch 'editorconfig-30', Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 46358f97b10 361/364: (editorconfig-set-local-variables): Get first, set later, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 2e6812e6562 359/364: (editorconfig--should-set): Eliminate `lisp-indent-offset` special case, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig ff0ed217461 245/364: Use reference link, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 9ad3ed0e58b 344/364: Update CHANGELOG (#331), Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 0faf4dc29c6 253/364: Make editorconfig-properties-hash permanetn-local, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig a179c9876f8 258/364: Disallow setting mode when it is not listed in whitelist, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 42d9b6aebd4 265/364: Remove a trailing whitespace, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig c8c7845c73d 274/364: Add doc about make sandbox, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig d4fabc95b8b 277/364: Add Emacs 27.1 to test target (#228), Stefan Monnier, 2024/06/18