[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] scratch/editorconfig-cc 7f8265dd2a 204/351: Change hook name -c
From: |
Stefan Monnier |
Subject: |
[nongnu] scratch/editorconfig-cc 7f8265dd2a 204/351: Change hook name -custom-hooks -> -after-apply-functions |
Date: |
Thu, 13 Jun 2024 18:38:53 -0400 (EDT) |
branch: scratch/editorconfig-cc
commit 7f8265dd2a57c7fd1dc7ccc26dae0b3fd9f13800
Author: 10sr <8.slashes@gmail.com>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
Change hook name -custom-hooks -> -after-apply-functions
With obsolete-variable-alias
---
editorconfig.el | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/editorconfig.el b/editorconfig.el
index b8bc2c09bb..17359095c9 100644
--- a/editorconfig.el
+++ b/editorconfig.el
@@ -86,8 +86,8 @@ names as keys and strings of property values as values."
'editorconfig-get-properties-function
"0.5")
-(defcustom editorconfig-custom-hooks ()
- "A list of custom hooks after loading common EditorConfig settings.
+(defcustom editorconfig-after-apply-functions ()
+ "A list of functions after loading common EditorConfig settings.
Each element in this list is a hook function. This hook function
takes one parameter, which is a property hash table. The value
@@ -98,7 +98,7 @@ whatever functionality you want. For example, the following
is
an example to add a new property emacs_linum to decide whether to
show line numbers on the left:
- (add-hook 'editorconfig-custom-hooks
+ (add-hook 'editorconfig-after-apply-functions
'(lambda (props)
(let ((show-line-num (gethash 'emacs_linum props)))
(cond ((equal show-line-num \"true\") (linum-mode 1))
@@ -107,8 +107,12 @@ show line numbers on the left:
:group 'editorconfig)
(define-obsolete-variable-alias
'edconf-custom-hooks
- 'editorconfig-custom-hooks
+ 'editorconfig-after-apply-functions
"0.5")
+(define-obsolete-variable-alias
+ 'editorconfig-custom-hooks
+ 'editorconfig-after-apply-functions
+ "0.7.13")
(defcustom editorconfig-indentation-alist
;; For contributors: Sort modes in alphabetical order, please :)
@@ -466,9 +470,9 @@ applies available properties."
(editorconfig-set-major-mode-from-name (gethash 'file_type_emacs
props))
(editorconfig-set-major-mode-from-ext (gethash 'file_type_ext
props))
(condition-case err
- (run-hook-with-args 'editorconfig-custom-hooks props)
+ (run-hook-with-args 'editorconfig-after-apply-functions
props)
(error
- (display-warning 'editorconfig-custom-hooks
+ (display-warning 'editorconfig-after-apply-functions
(concat (error-message-string err)
". Stop running hook.")
:warning))))))
- [nongnu] scratch/editorconfig-cc ad59db4e8b 330/351: Fix when-let (again) (#305), (continued)
- [nongnu] scratch/editorconfig-cc ad59db4e8b 330/351: Fix when-let (again) (#305), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc cfb18f7650 346/351: Prepare v0.11.0 (#332), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 588e0efe2a 347/351: feat: Add Svelte support (#333), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 480a6bba47 023/351: Fix some issues caused by the previous commit., Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 7a7e1544c9 027/351: Update a few links in the README, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc ff1b4c2f65 050/351: Fix editorconfig-core commentary text, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 9d364c8059 197/351: Update doc, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc bba8ddfa9b 198/351: Rename existing function set-major-mode -> set-major-mode-from-name, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 316b03ce21 196/351: Set major-mode from file_type_ext value, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 631e6b4ab8 199/351: Add file_type_ext to conf-mode keyword, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 7f8265dd2a 204/351: Change hook name -custom-hooks -> -after-apply-functions,
Stefan Monnier <=
- [nongnu] scratch/editorconfig-cc 7b99e4d58c 220/351: Bump version to 0.7.14 (#185), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 38ac903256 001/351: Erase initial commit content, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 5dfbeb541e 012/351: Fix indentation problem in the source file., Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc b3b2aef092 046/351: Update README for core elisp, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 4e2bf3ddd6 016/351: Add the package manager installation way to README, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 527ff0b210 051/351: Fix some warnings reported by flycheck, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 1b32452724 058/351: Use hook type for custom-hooks defcustom, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 10e648d326 054/351: Add document about running tests, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 630f158495 098/351: Fix english, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 86807effc2 089/351: Add make sandbox target, Stefan Monnier, 2024/06/13