branch: externals/csharp-mode
commit 2275ddab415bcd790f603ccfb6f613142c6144f1
Author: Jostein Kjønigsen <jost...@kjonigsen.net>
Commit: Jostein Kjønigsen <jost...@kjonigsen.net>

    Properly document workaround for syntax-properties
---
 csharp-mode.el | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/csharp-mode.el b/csharp-mode.el
index 1093892..1a165c8 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -3001,6 +3001,18 @@ Key bindings:
 
   ;; required since Emacs git master
   ;; 
https://github.com/emacs-mirror/emacs/commit/edcdf64960a2ab4e8d9ce4419874e43b6d3ccee4
+  ;;
+  ;; Basically syntax-propertize-function is a construct which belongs
+  ;; to font-lock.  But correct indentation depends on
+  ;; syntax-properties of the text, and that should ideally be
+  ;; independent of font-lock being activated or not.
+  ;;
+  ;; For csharp-mode, this means that with font-lock disabled, we wont
+  ;; have our syntax-properties set correctly, and indentation will
+  ;; suffer.
+  ;;
+  ;; To patch our way around this, we issue a syntax-propertize call
+  ;; manually, font-lock enabled or not.
   (csharp-mode-syntax-propertize-function (point-min) (point-max)))
 
 (provide 'csharp-mode)

Reply via email to