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

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

[elpa] externals/csharp-mode 2275dda 218/459: Properly document workarou


From: ELPA Syncer
Subject: [elpa] externals/csharp-mode 2275dda 218/459: Properly document workaround for syntax-properties
Date: Sun, 22 Aug 2021 13:59:30 -0400 (EDT)

branch: externals/csharp-mode
commit 2275ddab415bcd790f603ccfb6f613142c6144f1
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Jostein Kjønigsen <jostein@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

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