branch: externals/csharp-mode commit 9c596c92d43dff4ae190fb3034089df29889b133 Author: Ronnie Holm <m...@bugfree.dk> Commit: Ronnie Holm <m...@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 ;; ==================================================================