[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swift-mode ada5576 389/496: Merge pull request #144 from n
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swift-mode ada5576 389/496: Merge pull request #144 from nhojb/which_function_mode_fix |
Date: |
Sun, 29 Aug 2021 11:34:13 -0400 (EDT) |
branch: elpa/swift-mode
commit ada55760d6308be1852793ff6bed9a8db161c54a
Merge: 7739e49 c67b950
Author: taku0 <taku0@users.noreply.github.com>
Commit: GitHub <noreply@github.com>
Merge pull request #144 from nhojb/which_function_mode_fix
Fixes which-function-mode hang
---
swift-mode.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/swift-mode.el b/swift-mode.el
index 063c967..d3159e9 100644
--- a/swift-mode.el
+++ b/swift-mode.el
@@ -215,7 +215,9 @@ Signal `scan-error' if it hits opening parentheses."
(delete-overlay swift-mode:anchor-overlay)
- (add-hook 'which-func-functions #'swift-mode:current-defun-name)
+ (add-hook 'which-func-functions (lambda ()
+ (when (equal (with-current-buffer
(current-buffer) major-mode) 'swift-mode)
+ (swift-mode:current-defun-name))))
(setq-local add-log-current-defun-function #'swift-mode:current-defun-name))
;;;###autoload (add-to-list 'auto-mode-alist '("\\.swift\\'" . swift-mode))
- [nongnu] elpa/swift-mode ea77cf9 328/496: Add comments, (continued)
- [nongnu] elpa/swift-mode ea77cf9 328/496: Add comments, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 6cd2948 342/496: Bump version to 2.2.1, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 7e78225 336/496: Bump version to 2.2, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 1868590 348/496: Add build/debug command, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode a6d00b5 352/496: Simplify code, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 75f5214 364/496: Cleanup code, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 7a9cf18 382/496: Fix beginning/end-of-sentence, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 19e6974 371/496: Abstract syntax-ppss, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 69efea4 386/496: Add `current-defun-name`, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 7739e49 387/496: Bump version to 4.1.0, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode ada5576 389/496: Merge pull request #144 from nhojb/which_function_mode_fix,
ELPA Syncer <=
- [nongnu] elpa/swift-mode 4e22279 390/496: Bump version to 4.1.1, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 0e6b044 408/496: Make highlighting symbols in standard library optional, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 71c82e9 418/496: Add compilation before testing, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 1759977 440/496: Fix typo, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 323bb97 457/496: Update copyright notices, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 7d93c75 464/496: Bump version to 8.1.0, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode e65a80a 465/496: Support full-indent for switch cases, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 9676f90 485/496: Update CI versions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode e9e493e 487/496: Set `comment-line-break-function`, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode fd3c824 484/496: Bump version to 8.2.0, ELPA Syncer, 2021/08/29