[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] scratch/editorconfig-cc b70817d18d 139/351: Catch error thrown
From: |
Stefan Monnier |
Subject: |
[nongnu] scratch/editorconfig-cc b70817d18d 139/351: Catch error thrown from editorconfig-custom-hooks |
Date: |
Thu, 13 Jun 2024 18:38:48 -0400 (EDT) |
branch: scratch/editorconfig-cc
commit b70817d18dde84f9f2cde99646a7ac393a3d4b46
Author: 10sr <8slashes+git@gmail.com>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
Catch error thrown from editorconfig-custom-hooks
And show it as warning.
---
editorconfig.el | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/editorconfig.el b/editorconfig.el
index 5370ab6510..e8a42003a3 100644
--- a/editorconfig.el
+++ b/editorconfig.el
@@ -333,7 +333,13 @@ applies available properties."
(gethash 'end_of_line props)
(gethash 'charset props))
(editorconfig-set-line-length (gethash 'max_line_length props))
- (run-hook-with-args 'editorconfig-custom-hooks props))))
+ (condition-case err
+ (run-hook-with-args 'editorconfig-custom-hooks props)
+ (error
+ (display-warning 'editorconfig-custom-hooks
+ (concat (error-message-string err)
+ ". Stop running hook.")
+ :warning))))))
(error
(display-warning 'editorconfig
(concat (error-message-string err)
- [nongnu] scratch/editorconfig-cc 99a1e77c31 342/351: Exclude some versions from test target (#329), (continued)
- [nongnu] scratch/editorconfig-cc 99a1e77c31 342/351: Exclude some versions from test target (#329), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 18ccad3beb 344/351: Separate some utility commands to new file (#330), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc fe98f81020 348/351: Add switch not to override local variable values (#338), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc dbfe71c45c 165/351: Fix Makefile, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 9b86ec3902 148/351: Add file_type_emacs support, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 0d24b868d1 133/351: Add more plugin tests, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 97c22ffe64 109/351: Remove link to Marmalade package repository, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 332df3265f 140/351: Fix assignment to free variable warnings, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc faa796ffc8 101/351: Use GFM style code block, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 4e5526d1d9 149/351: Add file_type_emacs entry for .editorconfig, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc b70817d18d 139/351: Catch error thrown from editorconfig-custom-hooks,
Stefan Monnier <=
- [nongnu] scratch/editorconfig-cc 87d78d5746 106/351: Add examples for core-handle members, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc ef4f52c512 126/351: Fix a doc string., Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 4f7a5b0c53 104/351: Use truename for editorconfig name, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 9de91946be 134/351: By default always use Emacs Lisp Core when accessing remote files (#118), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 6cf680e9c7 112/351: Print line number and its content on parse error (#95), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 05f63eca50 136/351: Update year in copyright, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 58e2e82ce3 151/351: Add apache-mode support (#135), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc a38a4f2111 160/351: Add tests for lisp-indent-offset ignore, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 4615e1b66b 108/351: Bump version to 0.7.6, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 25edbde066 142/351: Add support for feature mode. (#128), Stefan Monnier, 2024/06/13