Subject: [PATCH] ; * lisp/cus-edit.el (custom-dirlocals-with-buffer): Use Custom-mode
From: Elijah Gabe Pérez <[email-masked]>
To: [email-masked]
Date: Sun, 23 Mar 2025 21:45:51 -0600
List-Id: <debbugs-submit.debbugs.gnu.org>

Tags: patch

Little patch for make =customize-dirlocals= use =Custom-mode= instead
=fundamental-mode=, Mostly intended for make this inherit and use
=Custom-mode-hook=.

I have tested it and at the moment it does not cause problems with the
configuration made.

From e3e488c4994db80a07f6efb49d57201f1468fecd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?El=C3=ADas=20Gabriel=20P=C3=A9rez?= <[email-masked]>
Date: Sun, 23 Mar 2025 21:26:26 -0600
Subject: [PATCH] ; * lisp/cus-edit.el (custom-dirlocals-with-buffer): Use
 Custom-mode

---
 lisp/cus-edit.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index ecfce03e490..52808aa8ee0 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -6070,6 +6070,7 @@ custom-dirlocals-with-buffer
      (let ((inhibit-read-only t))
        (erase-buffer))
      (remove-overlays)
+     (Custom-mode)
      (custom-dirlocals--set-widget-vars)
      ,@body
      (setq-local tool-bar-map
-- 
2.49.0

-- 
                                          - E.G via GNU Emacs and Org.