[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dart-mode 3b3992b 060/192: Merge pull request #8 from rgin
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dart-mode 3b3992b 060/192: Merge pull request #8 from rginda/unadvise |
Date: |
Sun, 29 Aug 2021 11:01:50 -0400 (EDT) |
branch: elpa/dart-mode
commit 3b3992b9e1150ffe9ac94256e59f0f4e933bfa02
Merge: eca6432 a935c27
Author: Natalie Weizenbaum <nex342@gmail.com>
Commit: Natalie Weizenbaum <nex342@gmail.com>
Merge pull request #8 from rginda/unadvise
don't advise c-parse-state if c-parse-state-1 isn't defined.
---
dart-mode.el | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/dart-mode.el b/dart-mode.el
index 8a289ca..c76ad68 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -370,15 +370,16 @@ SYNTAX-GUESS is the output of `c-guess-basic-syntax'."
(c-end-of-current-token base))
(setq base (point)))))))
-(defadvice c-parse-state (around dart-c-parse-state activate)
- (if (not (c-major-mode-is 'dart-mode)) ad-do-it
- ;; c-parse-state is a wrapper around c-parse-state-1 that does some tricks
- ;; to ensure that dangling brackets in preprocessor commands don't screw up
- ;; parse information for the real world. In Dart, all "preprocessor"
- ;; directives have matched braces, so we don't need to worry about that.
The
- ;; wrapper was also screwing up indentation in weird ways, so we just
ignore
- ;; it.
- (setq ad-return-value (c-parse-state-1))))
+(if (fboundp 'c-parse-state-1)
+ (defadvice c-parse-state (around dart-c-parse-state activate)
+ (if (not (c-major-mode-is 'dart-mode)) ad-do-it
+ ;; c-parse-state is a wrapper around c-parse-state-1 that does some
tricks
+ ;; to ensure that dangling brackets in preprocessor commands don't screw
up
+ ;; parse information for the real world. In Dart, all "preprocessor"
+ ;; directives have matched braces, so we don't need to worry about that.
The
+ ;; wrapper was also screwing up indentation in weird ways, so we just
ignore
+ ;; it.
+ (setq ad-return-value (c-parse-state-1)))))
;;; Additional fontification support
- [nongnu] elpa/dart-mode 4310054 038/192: Bump version to 0.6., (continued)
- [nongnu] elpa/dart-mode 4310054 038/192: Bump version to 0.6., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 464e07b 039/192: Get rid of a now-inapplicable known bug., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode cad31a5 040/192: Get basic ${} fontification working., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 8d83554 042/192: Properly indent lambdas., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 148f707 048/192: Add a couple known issues., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode f5fb993 049/192: Fix the case indentation., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 5c09eae 051/192: Add support for illusori's flymake-warn-line-regexp., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode b7dc54c 052/192: Bump version to 0.8., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode eca6432 058/192: Bump version to 0.10., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode a935c27 059/192: don't advise c-parse-state if c-parse-state-1 isn't defined., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 3b3992b 060/192: Merge pull request #8 from rginda/unadvise,
ELPA Syncer <=
- [nongnu] elpa/dart-mode 079ecc2 062/192: Add support for Dart analysis server., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 88920ee 066/192: Bump version to 0.13., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode c54f014 069/192: Merge pull request #18 from hterkelsen/no_pty, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode d6bb4e8 068/192: Document why we are using pipes rather than pty, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode e05c132 070/192: Add a README.md with installation instructions., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode bf82220 071/192: Merge pull request #19 from tonygentilcore/readme, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode d20d978 076/192: Bump version to 0.14., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 0c3d6d7 074/192: Fix an off-by-one bug in offset calculation., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode be9e422 077/192: Fix a bunch of byte-compilation warnings., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode e6635b3 084/192: Bump version to 0.15. (#38), ELPA Syncer, 2021/08/29