[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode 2697c95 332/459: Move bobp checking in one
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode 2697c95 332/459: Move bobp checking in one level |
Date: |
Sun, 22 Aug 2021 13:59:55 -0400 (EDT) |
branch: externals/csharp-mode
commit 2697c953102e680788802cd792a454e14114e6c0
Author: Theodor Thornhill <theodor.thornhill@frende.no>
Commit: Theodor Thornhill <theodor.thornhill@frende.no>
Move bobp checking in one level
It is always safe to use 'c-backward-syntactic-ws', so we can do that before
checking for bobp. The reason this is smart is that the 'backward-char' can
fail with a 'beginning-of-buffer' error. This causes indentation with 'C-x
h
TAB' sometimes to fail. Since a lambda function is super unlikely to be at
beginning of buffer, or only after some doc comments (syntactic ws), this
is an
ok move.
---
csharp-mode.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/csharp-mode.el b/csharp-mode.el
index e5bb1fd..fae784a 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -487,9 +487,9 @@
(apply orig-fun args))))
(defun csharp-at-lambda-header ()
- (unless (bobp)
- (save-excursion
- (c-backward-syntactic-ws)
+ (save-excursion
+ (c-backward-syntactic-ws)
+ (unless (bobp)
(backward-char)
(c-safe (goto-char (scan-sexps (point) -1)))
(when (or (looking-at "([[:alnum:][:space:]_,]*)[ \t\n]*=>[ \t\n]*{")
- [elpa] externals/csharp-mode 5e47b77 260/459: Fix error handling multiline compiler-directives., (continued)
- [elpa] externals/csharp-mode 5e47b77 260/459: Fix error handling multiline compiler-directives., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 20efdc8 262/459: Add support for highlighting function-invocation., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode d365498 307/459: Merge pull request #170 from josteink/compiler-fontifications, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 72c1912 314/459: Name change of codedoc functions, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode ecc3f38 317/459: Add annotation-top-cont as a new syntax construct, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 51ab628 319/459: Update README.org, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode be5af57 322/459: Fix optional type suffix regex, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 217d3a7 324/459: Revert "Add nullable operator to concatenated identifiers", ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 97903a2 327/459: Merge pull request #179 from josteink/feature/compilation-mode-dotnetcore, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode c44989a 331/459: Merge pull request #183 from josteink/vscode-fontification, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 2697c95 332/459: Move bobp checking in one level,
ELPA Syncer <=
- [elpa] externals/csharp-mode adc69a4 335/459: Merge pull request #187 from josteink/bugfix/185, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode fb1f7d5 338/459: Don't duplicate values and remove unneeded test, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode fc6f94f 339/459: Handle "nameof" entirely in c-basic-matchers-after., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 77a7243 341/459: Finally adapt CC Mode namespace matcher function, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode eff5dec 345/459: Try improve compilation-mode support for dotnet test fails., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 605b0e0 346/459: Add configuration option to font-locking of codedoc tags, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 49ca95e 350/459: RIP Marmalade, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 73c27c7 353/459: Update build.yml, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 6e7922d 354/459: Update build.yml, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode a99e43c 356/459: Update build.yml, ELPA Syncer, 2021/08/22