[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swift-mode f755479 333/496: Fix anchor highlighting
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swift-mode f755479 333/496: Fix anchor highlighting |
Date: |
Sun, 29 Aug 2021 11:34:01 -0400 (EDT) |
branch: elpa/swift-mode
commit f7554799713d9b54bc6909f96b12a7c1f4016a7d
Author: taku0 <mxxouy6x3m_github@tatapa.org>
Commit: taku0 <mxxouy6x3m_github@tatapa.org>
Fix anchor highlighting
---
swift-mode-indent.el | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/swift-mode-indent.el b/swift-mode-indent.el
index 2a6c377..f52484e 100644
--- a/swift-mode-indent.el
+++ b/swift-mode-indent.el
@@ -1535,13 +1535,16 @@ See `indent-new-comment-line' for SOFT."
(when swift-mode:anchor-overlay-timer
(cancel-timer swift-mode:anchor-overlay-timer))
- (setq swift-mode:anchor-overlay-timer
- (run-at-time
- "1 sec"
- nil
- (lambda ()
- (delete-overlay swift-mode:anchor-overlay)
- (setq swift-mode:anchor-overlay-timer nil)))))
+ (let ((buffer (current-buffer)))
+ (setq swift-mode:anchor-overlay-timer
+ (run-at-time
+ "1 sec"
+ nil
+ (lambda ()
+ (when (buffer-live-p buffer)
+ (with-current-buffer buffer
+ (delete-overlay swift-mode:anchor-overlay)
+ (setq swift-mode:anchor-overlay-timer nil))))))))
(provide 'swift-mode-indent)
- [nongnu] elpa/swift-mode cfaeaff 294/496: Update MELPA URL, (continued)
- [nongnu] elpa/swift-mode cfaeaff 294/496: Update MELPA URL, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 9471669 304/496: Merge taku0/swift3-mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 848d088 310/496: Fix indentation after attributes with arguments, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode cad72a1 306/496: Fix a link in README.md, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 0a75736 317/496: Fix indentation, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode c1f7ec2 321/496: Fix indentation of switch-case body, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 7423f68 324/496: Simplify code, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 58f31cc 340/496: Speed-up indentation for colon, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 0b1f29d 334/496: Fix indentation of setter, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 812d202 341/496: Fix REPL prompt corruption, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode f755479 333/496: Fix anchor highlighting,
ELPA Syncer <=
- [nongnu] elpa/swift-mode 56ee9b2 359/496: Add comment style option, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode dba539e 394/496: Tweak and clean-up font-lock, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode dca378a 400/496: Rename constants, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode c532c1e 402/496: Update documents, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode d35275b 417/496: Remove unused variables, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 8a7be9c 424/496: Use remap for keymap, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 56e21f8 427/496: Simplify autoloads, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 922dc52 445/496: Fix code format, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode b260308 451/496: Declare local variables, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 1268425 455/496: Add links to various formatters, ELPA Syncer, 2021/08/29