[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/emacs-editorconfig 50df3046e5a 081/364: Add one variable editorc
From: |
Stefan Monnier |
Subject: |
scratch/emacs-editorconfig 50df3046e5a 081/364: Add one variable editorconfig-properties-hash |
Date: |
Tue, 18 Jun 2024 01:40:40 -0400 (EDT) |
branch: scratch/emacs-editorconfig
commit 50df3046e5af9c0edde66d4ba2cfe662144a538b
Author: 10sr <8slashes+git@gmail.com>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
Add one variable editorconfig-properties-hash
---
editorconfig.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/editorconfig.el b/editorconfig.el
index 3415dc1dc19..3a541f19840 100644
--- a/editorconfig.el
+++ b/editorconfig.el
@@ -124,6 +124,13 @@ property emacs_linum to decide whether to show line
numbers on the left
'editorconfig-indentation-alist
"0.5")
+(defvar editorconfig-properties-hash nil
+ "Hash object of EditorConfig properties for current buffer.
+Set by `editorconfig-apply' and nil if that is not invoked in current buffer
+yet.")
+(make-variable-buffer-local 'editorconfig-properties-hash)
+
+
(defun editorconfig-string-integer-p (string)
"Return non-nil if STRING represents integer."
(if (stringp string)
@@ -202,6 +209,7 @@ It calls `editorconfig-get-properties-from-exec' if
(error "Invalid editorconfig-get-properties-function value"))
(let ((props (funcall editorconfig-get-properties-function)))
(progn
+ (setq editorconfig-properties-hash props)
(editorconfig-set-coding-system
(gethash 'end_of_line props)
(gethash 'charset props))
- scratch/emacs-editorconfig 566ab7996e3 084/364: Bump required editorconfi-core version, (continued)
- scratch/emacs-editorconfig 566ab7996e3 084/364: Bump required editorconfi-core version, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig b9c1318088e 100/364: Update editorconfig group docstring, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 335e70e23df 107/364: Trivial commentary fix, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 70e85e6153f 115/364: Load editorconfig-core explicitly just becore use (#100), Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 02ab02413f0 094/364: Add Customize section to README, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 78788959181 099/364: Make indentation of sample codes more consistent, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig adb9ba4a9d7 064/364: Update README for charset support, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 953f4f0ab77 074/364: Bump version: 0.7.1, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig a7ea6807e5a 071/364: Add ess-mode indentation support, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig f34c82709e2 077/364: Add support for scss-mode, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 50df3046e5a 081/364: Add one variable editorconfig-properties-hash,
Stefan Monnier <=
- scratch/emacs-editorconfig 33b0716c668 082/364: Add editorocnfig-display-current-properties, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 998d0e8f766 086/364: Bump version to 0.7.4, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig f2629b0abb5 087/364: Do not check metadata of files other than editorconfig.el, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig e68384d544c 088/364: Refactor editorconfig-conf-mode, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig cdcc5826d68 089/364: Add make sandbox target, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 7505fb780ff 108/364: Bump version to 0.7.6, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 331edef26d0 109/364: Remove link to Marmalade package repository, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 1c328163516 119/364: Bump version to 0.7.7, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig d79b9e410aa 104/364: Use truename for editorconfig name, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig d900f27638d 113/364: Simplify definition of string-integer-p (#96), Stefan Monnier, 2024/06/18