projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3550f44
)
Ignore errors when checking for object initializers (bug#63379)
author
Theodor Thornhill
<theo@thornhill.no>
Sat, 2 Sep 2023 17:34:46 +0000
(19:34 +0200)
committer
Theodor Thornhill
<theo@thornhill.no>
Sat, 2 Sep 2023 17:35:00 +0000
(19:35 +0200)
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
patch
|
blob
|
history
diff --git
a/lisp/progmodes/csharp-mode.el
b/lisp/progmodes/csharp-mode.el
index fb5a3d450a7998eb27ef88a9a9b6730141bc4d09..53c52e62fa8036b0ae93657e38a89b5b7c6ae9fa 100644
(file)
--- 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))