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

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

[nongnu] elpa/editorconfig e6038c775f 1/2: Check mode-class property for


From: ELPA Syncer
Subject: [nongnu] elpa/editorconfig e6038c775f 1/2: Check mode-class property for special modes (#301)
Date: Sun, 7 May 2023 04:01:05 -0400 (EDT)

branch: elpa/editorconfig
commit e6038c775f969f607c66e14e8092511327c7898d
Author: 10sr <8.slashes@gmail.com>
Commit: GitHub <noreply@github.com>

    Check mode-class property for special modes (#301)
    
    In addition to checking parent mode
---
 editorconfig.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/editorconfig.el b/editorconfig.el
index 8ee91abe5f..831ca49474 100644
--- a/editorconfig.el
+++ b/editorconfig.el
@@ -404,6 +404,9 @@ Make a message by passing ARGS to `format-message'."
   "Return non-nil when Editorconfig is disabled for MAJORMODE."
   (cl-assert majormode)
   (or (provided-mode-derived-p majormode 'special-mode)
+      ;; Some special modes (like `archive-mode') are not derived from
+      ;; `special-mode'
+      (eq (get majormode 'mode-class) 'special)
       (memq majormode
             editorconfig-exclude-modes)))
 



reply via email to

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