emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/csharp-mode 9c596c9 283/459: Advice to override only in


From: ELPA Syncer
Subject: [elpa] externals/csharp-mode 9c596c9 283/459: Advice to override only in csharp-mode
Date: Sun, 22 Aug 2021 13:59:45 -0400 (EDT)

branch: externals/csharp-mode
commit 9c596c92d43dff4ae190fb3034089df29889b133
Author: Ronnie Holm <mail@bugfree.dk>
Commit: Ronnie Holm <mail@bugfree.dk>

    Advice to override only in csharp-mode
---
 csharp-mode.el | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/csharp-mode.el b/csharp-mode.el
index 7048eb3..7224219 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -1146,9 +1146,6 @@ to work properly with code that includes attributes."
 (c-lang-defconst c-multiline-string-start-char
   csharp ?@)
 
-(defun c-clear-string-fences ()
-  "Function is made null because it breaks csharp-mode when quoting. See 
https://github.com/josteink/csharp-mode/issues/151";)
-
 (defun csharp-mode-syntax-propertize-function (beg end)
   "Apply syntax table properties to special constructs in region BEG to END.
 Currently handled:
@@ -2463,6 +2460,14 @@ are the string substitutions (see `format')."
     ad-do-it)
   )
 
+(defadvice c-clear-string-fences (around
+                                  csharp-mode-advice-3
+                                  compile activate)
+  "Disable because it breaks csharp-mode when quoting. See
+https://github.com/josteink/csharp-mode/issues/151";
+  (if (c-major-mode-is 'csharp-mode)
+      ()))
+
 ;; ==================================================================
 ;; end of C#-specific optimizations of cc-mode funcs
 ;; ==================================================================



reply via email to

[Prev in Thread] Current Thread [Next in Thread]