[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 dd896ea1e62: Ignore errors when checking for object initializer
From: |
Theodor Thornhill |
Subject: |
emacs-29 dd896ea1e62: Ignore errors when checking for object initializers (bug#63379) |
Date: |
Sat, 2 Sep 2023 13:35:25 -0400 (EDT) |
branch: emacs-29
commit dd896ea1e62a466faf7bce61e382ee1e9f35f6b8
Author: Theodor Thornhill <theo@thornhill.no>
Commit: Theodor Thornhill <theo@thornhill.no>
Ignore errors when checking for object initializers (bug#63379)
Since this is merely a check for syntax, we don't really care about
any internal errors inside of backward-up-list.
* lisp/progmodes/csharp-mode.el (csharp-guess-basic-syntax): Wrap
command in ignore-errors.
---
lisp/progmodes/csharp-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/progmodes/csharp-mode.el b/lisp/progmodes/csharp-mode.el
index fb5a3d450a7..53c52e62fa8 100644
--- a/lisp/progmodes/csharp-mode.el
+++ b/lisp/progmodes/csharp-mode.el
@@ -493,7 +493,7 @@ compilation and evaluation time conflicts."
;; Next non-whitespace character should be '{'
(goto-char (c-point 'boi))
(unless (eq (char-after) ?{)
- (backward-up-list 1 t t))
+ (ignore-errors (backward-up-list 1 t t)))
(save-excursion
;; 'new' should be part of the line
(goto-char (c-point 'iopl))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 dd896ea1e62: Ignore errors when checking for object initializers (bug#63379),
Theodor Thornhill <=